; NETACCP.INF
;
; Copyright 1997 Accton Technology Corporation
; Copyright 1993-1996, Microsoft Corporation
;
;       Simon C. Cheng  Apr.29.98       Pre-release
;


[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Msft%
LayoutFile  = layout.inf

[Manufacturer]
%Accton% = Accton

[ControlFlags]
ExcludeFromSelect = PCI\VEN_1011&DEV_0002, PCI\VEN_1011&DEV_0009, PCI\VEN_1011&DEV_0019
                    PCI\VEN_1011&DEV_0009&SUBSYS_12071113,  PCI\VEN_1011&DEV_0019&SUBSYS_12071113


[Accton]
%1203.DeviceDesc%    = 1203.ndi,     PCI\VEN_1011&DEV_0002    ;Accton EN1203 Series
%1207.DeviceDesc%    = 1207.ndi,     PCI\VEN_1011&DEV_0009    ;Accton EN1207 Series
%1207BTX.DeviceDesc% = 1207BTX.ndi,    PCI\VEN_1011&DEV_0019&SUBSYS_12071113  ;Accton EN1207B-TX 21143 based


[1203.ndi.NT]
Characteristics = 0x84
BusType         = 5
AddReg          = 1203.ndi.reg, accpci.ndi.reg, accpci.pci.reg, 1203.con.reg
CopyFiles       = accpci.Install.CopyFiles, netaccp.Install.CopyFiles
Renfiles        = sys.Install.Rename, inf.Install.Rename

[1207.ndi.NT]
Characteristics = 0x84
BusType         = 5
AddReg          = 1207.ndi.reg, 1207x.ndi.reg, accpci.ndi.reg, accpci.pci.reg, 1207.con.reg
CopyFiles       = accpci.Install.CopyFiles, netaccp.Install.CopyFiles
Renfiles        = sys.Install.Rename, inf.Install.Rename


[1207BTX.ndi.NT]
Characteristics = 0x84
BusType         = 5
AddReg          = 1207BTX.ndi.reg, 1207x.ndi.reg, accpci.ndi.reg, accpci.pci.reg, 1207BTX.con.reg
CopyFiles       = accpci.Install.CopyFiles, netaccp.Install.CopyFiles
Renfiles        = sys.Install.Rename, inf.Install.Rename


;-----------------------------------------------------------------------------
; 1203 specific
;
[1203.ndi.reg]
HKR, ,                                      AdapterCFID,    0, "00021011"

HKR, Ndi\params\BurstLength,                ParamDesc,  0, %BurstLength% 
HKR, Ndi\params\BurstLength,                default,    0, "10"
HKR, Ndi\params\BurstLength,                type,       0, "enum"
HKR, Ndi\params\BurstLength\enum,           "1",        0, "1 DWORD"
HKR, Ndi\params\BurstLength\enum,           "2",        0, "2 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "4",        0, "4 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "8",        0, "8 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "10",       0, "16 DWORDS"

HKR, Ndi\params\TransmitThreshold,          ParamDesc,  0, %TransmitThreshold% 
HKR, Ndi\params\TransmitThreshold,          default,    0, "60"
HKR, Ndi\params\TransmitThreshold,          type,       0, "enum"
HKR, Ndi\params\TransmitThreshold\enum,     "48",       0, "  72 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "60",       0, "  96 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "80",       0, " 128 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "A0",       0, " 160 bytes"
;-----------------------------------------------------------------------------
; 1207 specific
;
[1207.ndi.reg]
HKR, ,                                      AdapterCFID,    0, "00091011"

;-----------------------------------------------------------------------------
; 1207BTX specific
;
[1207BTX.ndi.reg]
HKR, ,                                      AdapterCFID,    0, "00191011"

;-----------------------------------------------------------------------------
; accpci common driver parameters
;
[accpci.ndi.reg]
HKR, Ndi,                                   Service,        0, "ACCPCI"
HKR, Ndi\Interfaces,                        LowerRange,     0, "ethernet"
HKR, Ndi\Interfaces,                        UpperRange,     0, "ndis5"
HKR, ,                                      MediaType,      0, "1"


;-----------------------------------------------------------------------------
; PCI common parameters
;
[accpci.pci.reg]
HKR, ,                                      AdapterType,    0, "5"
HKR, Ndi\params\ReceiveBuffers,             ParamDesc,      0, %ReceiveBuffers% 
HKR, Ndi\params\ReceiveBuffers,             default,        0, "10"
HKR, Ndi\params\ReceiveBuffers,             type,           0, "enum"
HKR, Ndi\params\ReceiveBuffers\enum,        "8",            0, " 8"
HKR, Ndi\params\ReceiveBuffers\enum,        "10",           0, "16"
HKR, Ndi\params\ReceiveBuffers\enum,        "20",           0, "32"
HKR, Ndi\params\ReceiveBuffers\enum,        "30",           0, "48"
HKR, Ndi\params\ReceiveBuffers\enum,        "40",           0, "64"

HKR, Ndi\params\UnderrunRetry,              ParamDesc,      0, %UnderrunRetry% 
HKR, Ndi\params\UnderrunRetry,              default,        0, "2"
HKR, Ndi\params\UnderrunRetry,              type,           0, "enum"
HKR, Ndi\params\UnderrunRetry\enum,         "2",            0, " 2"
HKR, Ndi\params\UnderrunRetry\enum,         "4",            0, " 4"
HKR, Ndi\params\UnderrunRetry\enum,         "6",            0, " 6"
HKR, Ndi\params\UnderrunRetry\enum,         "8",            0, " 8"

HKR, Ndi\params\ExtraReceiveBuffers,        ParamDesc,      0, %ExtraReceiveBuffers% 
HKR, Ndi\params\ExtraReceiveBuffers,        default,        0, "10"
HKR, Ndi\params\ExtraReceiveBuffers,        type,           0, "enum"
HKR, Ndi\params\ExtraReceiveBuffers\enum,   "0",            0, "  0"
HKR, Ndi\params\ExtraReceiveBuffers\enum,   "10",           0, " 16"
HKR, Ndi\params\ExtraReceiveBuffers\enum,   "20",           0, " 32"
HKR, Ndi\params\ExtraReceiveBuffers\enum,   "40",           0, " 64"
HKR, Ndi\params\ExtraReceiveBuffers\enum,   "80",           0, "128"

HKR, Ndi\params\ExtraReceivePackets,        ParamDesc,      0, %ExtraReceivePackets% 
HKR, Ndi\params\ExtraReceivePackets,        default,        0, "64"
HKR, Ndi\params\ExtraReceivePackets,        type,           0, "enum"
HKR, Ndi\params\ExtraReceivePackets\enum,   "10",           0, "16"
HKR, Ndi\params\ExtraReceivePackets\enum,   "20",           0, "32"
HKR, Ndi\params\ExtraReceivePackets\enum,   "40",           0, "64"
HKR, Ndi\params\ExtraReceivePackets\enum,   "64",           0, "100"
HKR, Ndi\params\ExtraReceivePackets\enum,   "128",          0, "200"



[1207x.ndi.reg]
HKR, Ndi\params\InterruptMitigation,        ParamDesc,      0, %InterruptMitigation%
HKR, Ndi\params\InterruptMitigation,        default,        0, "0"
HKR, Ndi\params\InterruptMitigation,        type,           0, "enum"
HKR, Ndi\params\InterruptMitigation\enum,   "0",            0, %Disabled%
HKR, Ndi\params\InterruptMitigation\enum,   "1",            0, %Enabled%

HKR, Ndi\params\BurstLength,                ParamDesc,  0, %BurstLength%
HKR, Ndi\params\BurstLength,                default,    0, "10"
HKR, Ndi\params\BurstLength,                type,       0, "enum"
HKR, Ndi\params\BurstLength\enum,           "1",        0, "1 DWORD"
HKR, Ndi\params\BurstLength\enum,           "2",        0, "2 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "4",        0, "4 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "8",        0, "8 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "10",       0, "16 DWORDS"
HKR, Ndi\params\BurstLength\enum,           "20",       0, "32 DWORDS"

HKR, Ndi\params\TransmitThreshold100,       ParamDesc,  0, %TransmitThreshold100% 
HKR, Ndi\params\TransmitThreshold100,       default,    0, "200"
HKR, Ndi\params\TransmitThreshold100,       type,       0, "enum"
HKR, Ndi\params\TransmitThreshold100\enum,  "80",       0, " 128 bytes"
HKR, Ndi\params\TransmitThreshold100\enum,  "100",      0, " 256 bytes"
HKR, Ndi\params\TransmitThreshold100\enum,  "200",      0, " 512 bytes"
HKR, Ndi\params\TransmitThreshold100\enum,  "400",      0, "1024 bytes"

HKR, Ndi\params\TransmitThreshold,          ParamDesc,  0, %TransmitThreshold% 
HKR, Ndi\params\TransmitThreshold,          default,    0, "60"
HKR, Ndi\params\TransmitThreshold,          type,       0, "enum"
HKR, Ndi\params\TransmitThreshold\enum,     "48",       0, "  72 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "60",       0, "  96 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "80",       0, " 128 bytes"
HKR, Ndi\params\TransmitThreshold\enum,     "A0",       0, " 160 bytes"

HKR, Ndi\params\UnderrunThreshold,          ParamDesc,  0, %UnderrunThreshold% 
HKR, Ndi\params\UnderrunThreshold,          default,    0, "0A"
HKR, Ndi\params\UnderrunThreshold,          type,       0, "enum"
HKR, Ndi\params\UnderrunThreshold\enum,     "0A",       0, " 10"
HKR, Ndi\params\UnderrunThreshold\enum,     "14",       0, " 20"
HKR, Ndi\params\UnderrunThreshold\enum,     "32",       0, " 50"
HKR, Ndi\params\UnderrunThreshold\enum,     "64",       0, "100"

HKR, Ndi\params\StoreAndForward,            ParamDesc,  0, %StoreAndForward% 
HKR, Ndi\params\StoreAndForward,            default,    0, "0"
HKR, Ndi\params\StoreAndForward,            type,       0, "enum"
HKR, Ndi\params\StoreAndForward\enum,       "0",        0, %Disabled%
HKR, Ndi\params\StoreAndForward\enum,       "1",        0, %Enabled%

HKR, Ndi\params\MemoryReadMultiple,         ParamDesc,  0, %MemoryReadMultiple% 
HKR, Ndi\params\MemoryReadMultiple,         default,    0, "0"
HKR, Ndi\params\MemoryReadMultiple,         type,       0, "enum"
HKR, Ndi\params\MemoryReadMultiple\enum,    "0",        0, %Disabled%
HKR, Ndi\params\MemoryReadMultiple\enum,    "1",        0, %Enabled%



[1203.con.reg]
HKR, Ndi\params\ConnectionType,             ParamDesc,  0, %ConnectionType% 
HKR, Ndi\params\ConnectionType,             default,    0, "0"
HKR, Ndi\params\ConnectionType,             type,       0, "enum"
HKR, Ndi\params\ConnectionType\enum,        "0",        0, %AutoDetect%
HKR, Ndi\params\ConnectionType\enum,        "2",        0, %10BaseT%
HKR, Ndi\params\ConnectionType\enum,        "3",        0, %10BaseTFull_Duplex%
HKR, Ndi\params\ConnectionType\enum,        "4",        0, %10BaseTNo_Link_Test%
HKR, Ndi\params\ConnectionType\enum,        "1",        0, %10Base2(BNC)%
HKR, Ndi\params\ConnectionType\enum,        "5",        0, %10Base5(AUI)%


[1207.con.reg]
HKR, Ndi\params\ConnectionType,             ParamDesc,  0, %ConnectionType%
HKR, Ndi\params\ConnectionType,             default,    0, "0"
HKR, Ndi\params\ConnectionType,             type,       0, "enum"
HKR, Ndi\params\ConnectionType\enum,        "0",        0, %AutoSense%
HKR, Ndi\params\ConnectionType\enum,        "6",        0, %AutoSenseNo_Nway%
HKR, Ndi\params\ConnectionType\enum,        "8",        0, %100BaseTx%
HKR, Ndi\params\ConnectionType\enum,        "9",        0, %100BaseTxFull_Duplex%
HKR, Ndi\params\ConnectionType\enum,        "2",        0, %10BaseT%
HKR, Ndi\params\ConnectionType\enum,        "3",        0, %10BaseTFull_Duplex%


[1207BTX.con.reg]
HKR, Ndi\params\ConnectionType,             ParamDesc,  0, %ConnectionType%
HKR, Ndi\params\ConnectionType,             default,    0, "0"
HKR, Ndi\params\ConnectionType,             type,       0, "enum"
HKR, Ndi\params\ConnectionType\enum,        "0",        0, %AutoSense%
HKR, Ndi\params\ConnectionType\enum,        "8",        0, %100BaseTx%
HKR, Ndi\params\ConnectionType\enum,        "9",        0, %100BaseTxFull_Duplex%
HKR, Ndi\params\ConnectionType\enum,        "2",        0, %10BaseT%
HKR, Ndi\params\ConnectionType\enum,        "3",        0, %10BaseTFull_Duplex%


[SourceDisksNames]
50="Accton EN1203, EN1207 Series Driver Diskette ",,0

[SourceDisksFiles]
accpci.sys=50,,accpci.sys,10000
netaccp.inf=50,,netaccp.inf,10000
dc21x4.sys=50
net21x4.inf=50
net21x4.pnf=50

[accpci.Install.CopyFiles]
accpci.sys,,,2

[netaccp.Install.CopyFiles]
netaccp.inf,,,2

[inf.Install.Rename]
net21x4.in_,net21x4.inf
net21x4.pn_,net21x4.pnf

[sys.Install.Rename]
dc21x4.sy_,dc21x4.sys

[1203.ndi.NT.Services]
AddService = ACCPCI, 2, accpci.Service, accpci.EventLog

[1207.ndi.NT.Services]
AddService = ACCPCI, 2, accpci.Service, accpci.EventLog

[1207BTX.ndi.NT.Services]
AddService = ACCPCI, 2, accpci.Service, accpci.EventLog


[accpci.Service]
DisplayName     = %accpci.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\accpci.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.reg

[accpci.EventLog]
AddReg = accpci.AddEventLog.reg

[accpci.AddEventLog.reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

[TextModeFlags.reg]
HKR, , TextModeFlags, 0x00010001, 0x0001


;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
accpci.Install.CopyFiles         = 12
netaccp.Install.CopyFiles        = 17
inf.Install.Rename               = 12
sys.Install.Rename               = 17

[Strings]
Msft    = "Microsoft"
Accton="Accton"

SnoozeMode      = "Snooze Mode"
Disabled        = "Disabled"
Enabled         = "Enabled"
InterruptMitigation = "Interrupt Mitigation"
ReceiveBuffers  = "Receive Buffers"
UnderrunRetry   = "Underrun Max Retries"
ExtraReceiveBuffers = "Extra Receive Buffers"
ExtraReceivePackets = "Extra Receive Packets"
BurstLength     = "Burst Length"
TransmitThreshold   = "Transmit Threshold"
TransmitThreshold100 = "Transmit Threshold 100Mbps"
TransmitThreshold   =  "Transmit Threshold 10Mbps"
UnderrunThreshold   = "Underrun Threshold"
StoreAndForward     = "Store And Forward"
MemoryReadMultiple  = "Memory Read Multiple"
ConnectionType      = "Connection Type"
AutoDetect      = "Auto Detect"
10BaseT = "10BaseT (Twisted_Pair)"
10BaseTFull_Duplex    = "10BaseT Full_Duplex"
10BaseTNo_Link_Test   = "10BaseT No_Link_Test"
10Base2(BNC)          = "10Base2(BNC)"
10Base5(AUI)          = "10Base5(AUI)"
AutoSense             = "AutoSense"
AutoSenseNo_Nway      = "AutoSense No_Nway"
100BaseTx             = "100BaseTx"
100BaseTxFull_Duplex  = "100BaseTx Full_Duplex"
100BaseT4             = "100BaseT4"
100BaseFx             = "100BaseFx"
100BaseFxFull_Duplex  = "100BaseFx Full_Duplex"
10BaseTFull_Duplex    = "10BaseT Full_Duplex"



1203.DeviceDesc         = "Accton EN1203 Series PCI Fast Ethernet Adapter"
1207.DeviceDesc         = "Accton EN1207(-TX/B-TX) PCI Fast Ethernet Adapter (21140 Based)"
1207BTX.DeviceDesc      = "Accton EN1207B-TX/B-TX PCI Fast Ethernet Adapter (21143 Based)"

accpci.Service.DispName = "Accton EN120x Network Adapter"
