#include <ndis.h>
#include <8390.h>
#include "debug.h"
Go to the source code of this file.
|
BOOLEAN | NICCheck (PNIC_ADAPTER Adapter) |
|
NDIS_STATUS | NICInitialize (PNIC_ADAPTER Adapter) |
|
NDIS_STATUS | NICSetup (PNIC_ADAPTER Adapter) |
|
NDIS_STATUS | NICStart (PNIC_ADAPTER Adapter) |
|
NDIS_STATUS | NICStop (PNIC_ADAPTER Adapter) |
|
NDIS_STATUS | NICReset (PNIC_ADAPTER Adapter) |
|
VOID | NICUpdateCounters (PNIC_ADAPTER Adapter) |
|
VOID | NICReadDataAlign (PNIC_ADAPTER Adapter, PUSHORT Target, ULONG_PTR Source, USHORT Length) |
|
VOID | NICWriteDataAlign (PNIC_ADAPTER Adapter, ULONG_PTR Target, PUSHORT Source, USHORT Length) |
|
VOID | NICReadData (PNIC_ADAPTER Adapter, PUCHAR Target, ULONG_PTR Source, USHORT Length) |
|
VOID | NICWriteData (PNIC_ADAPTER Adapter, ULONG_PTR Target, PUCHAR Source, USHORT Length) |
|
VOID | NICTransmit (PNIC_ADAPTER Adapter) |
|
◆ BUFFERS_PER_TX_BUF
◆ DRIVER_BLOCK_SIZE
◆ DRIVER_DEFAULT_INTERRUPT_MODE
◆ DRIVER_DEFAULT_INTERRUPT_NUMBER
#define DRIVER_DEFAULT_INTERRUPT_NUMBER 9 /* bochs default */ |
◆ DRIVER_DEFAULT_INTERRUPT_SHARED
◆ DRIVER_DEFAULT_IO_BASE_ADDRESS
#define DRIVER_DEFAULT_IO_BASE_ADDRESS 0x280 /* bochs default */ |
◆ DRIVER_DEFAULT_TX_BUFFER_COUNT
#define DRIVER_DEFAULT_TX_BUFFER_COUNT 12 |
◆ DRIVER_FRAME_SIZE
#define DRIVER_FRAME_SIZE 1514 /* Size of an ethernet frame */ |
◆ DRIVER_HEADER_SIZE
◆ DRIVER_INTERRUPT_MASK
◆ DRIVER_LENGTH_OF_ADDRESS
◆ DRIVER_MAX_MULTICAST_LIST_SIZE
#define DRIVER_MAX_MULTICAST_LIST_SIZE 8 |
◆ DRIVER_MAXIMUM_LOOKAHEAD
◆ DRIVER_NDIS_MAJOR_VERSION
#define DRIVER_NDIS_MAJOR_VERSION 3 |
◆ DRIVER_NDIS_MINOR_VERSION
#define DRIVER_NDIS_MINOR_VERSION 0 |
◆ DRIVER_VENDOR_DESCRIPTION
#define DRIVER_VENDOR_DESCRIPTION "Novell Eagle 2000 Adapter." |
◆ DRIVER_VENDOR_DRIVER_VERSION
#define DRIVER_VENDOR_DRIVER_VERSION 0x0100 /* 1.0 */ |
◆ INTERRUPT_LIMIT
◆ NDIS51_MINIPORT
◆ NDIS_LEGACY_MINIPORT
#define NDIS_LEGACY_MINIPORT 1 |
◆ NDIS_MINIPORT_DRIVER
#define NDIS_MINIPORT_DRIVER 1 |
◆ NIC_DATA
◆ NIC_RESET
#define NIC_RESET 0x1F /* Reset register */ |
◆ RESERVED
◆ DRIVER_HARDWARE_ADDRESS
◆ DRIVER_INFORMATION
◆ MINIPORT_RESERVED
◆ NIC_ADAPTER
◆ PDRIVER_INFORMATION
◆ PMINIPORT_RESERVED
◆ PNIC_ADAPTER
◆ NICCheck()
Definition at line 53 of file 8390.c.
62{
64
66
67
69 {
72 }
73
74
76 {
78 {
82 }
83 }
84
87}
ULONG_PTR ProbeAddressList[]
static BOOLEAN ProbeAddressForNIC(ULONG_PTR address)
#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
Referenced by MiniportInitialize().
◆ NICInitialize()
Definition at line 289 of file 8390.c.
300{
302
304
305
307
308
310
311
313
314
316
317
319
320
323
324
326
327
329
330
333
338
339
341
342
344
345
347
349}
static BOOLEAN NICTestRAM(PNIC_ADAPTER Adapter)
static BOOLEAN NICReadSAPROM(PNIC_ADAPTER Adapter)
#define NdisRawReadPortUchar(Port, Data)
#define NdisStallExecution
#define NDIS_STATUS_SUCCESS
#define NdisRawWritePortUchar(Port, Data)
#define NDIS_STATUS_ADAPTER_NOT_FOUND
DRIVER_HARDWARE_ADDRESS StationAddress
Referenced by MiniportInitialize().
◆ NICReadData()
Definition at line 791 of file 8390.c.
804{
806
807
809
815 }
816
818
823
824
827 } else
828
830}
VOID NICReadDataAlign(PNIC_ADAPTER Adapter, PUSHORT Target, ULONG_PTR Source, USHORT Length)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ ULONG _In_ ULONG _In_ ULONG Length
Referenced by MiniportTransferData(), NICIndicatePacket(), and NICReadPacket().
◆ NICReadDataAlign()
Definition at line 642 of file 8390.c.
655{
658
660
661
663
664
667
668
671
672
674
677 else
679
680
684 break;
685
687 }
688
689#if DBG
692#endif
693
694
696}
#define NdisRawReadPortBufferUshort(Port, Buffer, Length)
#define NdisRawReadPortBufferUchar(Port, Buffer, Length)
Referenced by NICReadData(), NICTestAddress(), and NICWriteData().
◆ NICReset()
Definition at line 500 of file 8390.c.
509{
511
513
514
516
517
519
520
522
523
525
526
528
530}
NDIS_STATUS NICStop(PNIC_ADAPTER Adapter)
NDIS_STATUS NICStart(PNIC_ADAPTER Adapter)
Referenced by MiniportReset().
◆ NICSetup()
Definition at line 352 of file 8390.c.
363{
365
367
369 } else {
370
372 }
373
374
377
378
380
381
383
384
386
387
389
390
392
393
395
396
398
399
401
402
404
405
407
408
410
411
413
414
416
422
424
426}
static VOID NICSetPhysicalAddress(PNIC_ADAPTER Adapter)
static VOID NICSetMulticastAddressMask(PNIC_ADAPTER Adapter)
Referenced by MiniportInitialize().
◆ NICStart()
◆ NICStop()
◆ NICTransmit()
Definition at line 1124 of file 8390.c.
1133{
1135
1137
1138
1139
1142 }
1143}
static BOOLEAN NICPrepareForTransmit(PNIC_ADAPTER Adapter)
static VOID NICStartTransmit(PNIC_ADAPTER Adapter)
Referenced by MiniportSend().
◆ NICUpdateCounters()
◆ NICWriteData()
Definition at line 833 of file 8390.c.
846{
848
849
851
853
854
855 Tmp = (Tmp & 0x00FF) | (*
Source << 8);
856
857
859
860
864 }
865
867
872
873
875
876
877 Tmp = (Tmp & 0xFF00) | (*
Source);
878
879
881 } else
882
884}
VOID NICWriteDataAlign(PNIC_ADAPTER Adapter, ULONG_PTR Target, PUSHORT Source, USHORT Length)
Referenced by NICWritePacket().
◆ NICWriteDataAlign()
Definition at line 699 of file 8390.c.
712{
715
716
718
719
720
721
724
725
728
729
731
732
734
735
739 break;
740
742 }
743
744#if DBG
747#endif
748
749
751
752
753
755
756
759
760
763
764
766
769 else
771
772
776 break;
777
779 }
780
781#if DBG
784#endif
785
786
788}
#define NdisRawReadPortUshort(Port, Data)
#define NdisRawWritePortBufferUchar(Port, Buffer, Length)
#define NdisRawWritePortBufferUshort(Port, Buffer, Length)
Referenced by NICTestAddress(), and NICWriteData().
◆ DriverInfo
◆ HighestAcceptableMax