116 return (
Data == Tmp);
142 if (
Base == 0x10000) {
151 for (;
Base < 0x10000;
Base += 0x0400) {
182 for (
i = 0;
i < 0x06;
i++)
207 for (
i = 0;
i < 0x08;
i++)
252 for (
i = 0;
i < 32;
i += 2) {
260 if (WordLength == 2) {
266 for (
i = 0;
i < 16;
i++)
474 for (
i = 0;
i < 4;
i++) {
855 Tmp = (Tmp & 0x00FF) | (*
Source << 8);
877 Tmp = (Tmp & 0xFF00) | (*
Source);
913 for (
i = 0;
i < (IndicateLength + 7) / 8;
i++) {
1032 DstSize = TXStop - DstData;
1036 BytesToCopy = (SrcSize < DstSize)? SrcSize : DstSize;
1091 if (BufferCount > Adapter->
TXFree) {
1093 Adapter->
TXFree, BufferCount));
1106 Adapter->
TXFree -= BufferCount;
1179 for (
i = 0;
i < 4;
i++) {
1239 if (PacketCount == 10) {
1286 Adapter->
TXFree += BufferCount;
1330 if (ISRValue != 0x00) {
static BOOLEAN NICTestRAM(PNIC_ADAPTER Adapter)
VOID NICReadDataAlign(PNIC_ADAPTER Adapter, PUSHORT Target, ULONG_PTR Source, USHORT Length)
static VOID NICWritePacket(PNIC_ADAPTER Adapter)
static BOOLEAN NICPrepareForTransmit(PNIC_ADAPTER Adapter)
static VOID HandleTransmit(PNIC_ADAPTER Adapter)
BOOLEAN NICCheck(PNIC_ADAPTER Adapter)
static VOID NICSetPhysicalAddress(PNIC_ADAPTER Adapter)
static VOID NICSetMulticastAddressMask(PNIC_ADAPTER Adapter)
static BOOLEAN NICReadSAPROM(PNIC_ADAPTER Adapter)
static VOID HandleReceive(PNIC_ADAPTER Adapter)
static VOID NICReadPacket(PNIC_ADAPTER Adapter)
VOID NICTransmit(PNIC_ADAPTER Adapter)
ULONG_PTR ProbeAddressList[]
NDIS_STATUS NICStop(PNIC_ADAPTER Adapter)
VOID NTAPI MiniportHandleInterrupt(IN NDIS_HANDLE MiniportAdapterContext)
VOID NICReadData(PNIC_ADAPTER Adapter, PUCHAR Target, ULONG_PTR Source, USHORT Length)
NDIS_STATUS NICSetup(PNIC_ADAPTER Adapter)
static BOOLEAN NICTestAddress(PNIC_ADAPTER Adapter, ULONG Address)
NDIS_STATUS NICReset(PNIC_ADAPTER Adapter)
static VOID NICIndicatePacket(PNIC_ADAPTER Adapter)
VOID NICUpdateCounters(PNIC_ADAPTER Adapter)
static VOID NICGetCurrentPage(PNIC_ADAPTER Adapter)
VOID NICWriteDataAlign(PNIC_ADAPTER Adapter, ULONG_PTR Target, PUSHORT Source, USHORT Length)
static VOID NICStartTransmit(PNIC_ADAPTER Adapter)
static BOOLEAN ProbeAddressForNIC(ULONG_PTR address)
NDIS_STATUS NICStart(PNIC_ADAPTER Adapter)
NDIS_STATUS NICInitialize(PNIC_ADAPTER Adapter)
VOID NICWriteData(PNIC_ADAPTER Adapter, ULONG_PTR Target, PUCHAR Source, USHORT Length)
static VOID NICSetBoundaryPage(PNIC_ADAPTER Adapter)
#define NICEnableInterrupts(Adapter)
#define NDIS_DbgPrint(_t_, _x_)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define NdisRawReadPortUshort(Port, Data)
#define NdisGetNextBuffer(CurrentBuffer, NextBuffer)
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
#define NdisMEthIndicateReceiveComplete(MiniportAdapterHandle)
#define NdisMEthIndicateReceive(MiniportAdapterHandle, MiniportReceiveContext, HeaderBuffer, HeaderBufferSize, LookaheadBuffer, LookaheadBufferSize, PacketSize)
static __inline VOID NdisQueryPacket(IN PNDIS_PACKET Packet, OUT PUINT PhysicalBufferCount OPTIONAL, OUT PUINT BufferCount OPTIONAL, OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, OUT PUINT TotalPacketLength OPTIONAL)
#define NdisRawWritePortBufferUchar(Port, Buffer, Length)
#define NdisRawReadPortUchar(Port, Data)
#define NdisStallExecution
_In_ UINT _In_ UINT BytesToCopy
#define NdisRawReadPortBufferUshort(Port, Buffer, Length)
#define NdisRawReadPortBufferUchar(Port, Buffer, Length)
#define NDIS_STATUS_SUCCESS
#define NdisQueryBuffer(_Buffer, _VirtualAddress, _Length)
#define NdisRawWritePortUchar(Port, Data)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
#define NDIS_STATUS_ADAPTER_NOT_FOUND
#define NdisMSendComplete(MiniportAdapterHandle, Packet, Status)
#define NdisMoveMemory(Destination, Source, Length)
#define NdisRawWritePortBufferUshort(Port, Buffer, Length)
#define DRIVER_HEADER_SIZE
struct _NIC_ADAPTER * PNIC_ADAPTER
#define BUFFERS_PER_TX_BUF
#define DRIVER_LENGTH_OF_ADDRESS
#define DRIVER_BLOCK_SIZE
_In_ ULONG _In_ ULONG _In_ ULONG Length
PACKET_HEADER PacketHeader
UCHAR MulticastAddressMask[8]
UCHAR Lookahead[DRIVER_MAXIMUM_LOOKAHEAD+DRIVER_HEADER_SIZE]
UINT TXSize[DRIVER_DEFAULT_TX_BUFFER_COUNT]
ULONG FrameAlignmentErrors
DRIVER_HARDWARE_ADDRESS PermanentAddress
NDIS_HANDLE MiniportAdapterHandle
DRIVER_HARDWARE_ADDRESS StationAddress