www.pudn.com > MPC8241BSP.rar
To Read all the content
[file head]:
/* rtl81x9End.c - RealTek RTL81x9 Fast Ethernet interface header */
/* Copyright 1984-2000 Wind River Systems, Inc. */
/*
modification history
--------------------
01c,28jan00,dgy Updated comments that refered to the wrong files.
01b,28jan00,dgy Changed ryl81x9CsrReadByte to use the correct SYS_IN
macro.
01a,29oct99,dgy created
*/
/*
Theory of Operation
I. Board Compatibility
This device driver is designed for the RealTek RTL81x9, the RealTek Fast
Ethernet controllers for PCI. This chip is used on a few clone boards.
II. Board-specific settings
PCI bus devices are configured by the system at boot time, so no jumpers
need to be set on the board. The system BIOS will assign the
PCI INTA signal to a (preferably otherwise unused) system IRQ line.
III. Driver operation
IIIa. Rx Ring buffers
The receive unit uses a single linear ring buffer rather than the more
common (and more efficient) descriptor-based architecture. Incoming fram
... ...
[file tail]:
... ...
ounter. */
END_ERR_ADD (&amt;pDrvCtrl->end, MIB2_OUT_UCAST, +1);
END_TX_SEM_GIVE (&amt;pDrvCtrl->end);
/* rtl81x9CsrWriteWord (pDrvCtrl, RTL_REGS_INTR_MASK, RTL_VALID_INTERRUPTS, NONE); */ /* mask by zoutl for test 2003-4-3 18:55 */
/*DRV_LOG (DRV_DEBUG_TX, "Leave send no error\n", 1, 2, 3, 4, 5, 6); */
return (OK);
}
/*******************************************************************************
*
* rtl8139MuxSend - routine to send a packet.
*
* add by liuliping 2005-6-22
*/
void rtl8139MuxSend(UCHAR *pcBuf,USHORT wLength)
{
rtl81x9Send_byCallFT(pgDrvCtrl, pcBuf, (int)wLength);
}
/********************************************************
*
*
*
**********************************************************/
void ReceveFuncInit(unsigned char (* receivefunc)())
{
FTreceivefunc = receivefunc;
if(NULL == FTreceivefunc )
logMsg("ERROR,funcInit!\n",1,2,3,4,5,6);
/*logMsg("ok,funcInit!\n",1,2,3,4,5,6);*/
}