;; netrtf5.INF (NT 5.0 & Win98 combined inf for NDIS5 driver)
;;
;; Realtek RTL8129 PCI Fast Ethernet Network Interface Cards.
;;
;; Copyright 1996-1999, Realtek Semiconductor Corporation

[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Realtek%                                 ;;
;Provider    = %Msft%                                    ;; for WHQL certified
;CatalogFile = netrtf5.cat                               ;; for WHQL certified
;LayoutFile  = layout.inf                                ;; for put-on-list

[Manufacturer]
%Realtek%   = Realtek

[ControlFlags]
;ExcludeFromSelect     = PCI\VEN_10EC&DEV_8129

[Realtek]
%RTL8129.DeviceDesc%  = RTL8129.ndi, PCI\VEN_10EC&DEV_8129

;;****************************************************************************
;; Windows 9x
;;****************************************************************************
[rtl8129.ndi]
DriverVer       = 8/12/1999
AddReg          = rtl8129.id.reg, RTL8129.common.reg, RTL8129.win.reg, RTL8129.oncbs.reg
DeviceID        = "PCI\VEN_10EC&DEV_8129"
LogConfig       = DefaultConfig


;;****************************************************************************
;; NT 5.0
;;****************************************************************************
[RTL8129.ndi.NT]
DriverVer       = 7/15/1999
AddReg          = RTL8129.common.reg, RTL8129.reg, RTL8129.oncbs.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = RTL8129.CopyFiles

[RTL8129.ndi.NT.Services]
AddService = rtl8129, 2, rtsnt.Service, RTL8129.EventLog


[RTL8129.CopyFiles]
RTL8129.sys,,,2

;;----------------------------------------------------------------------------
;; RTL8129 Parameters
;;----------------------------------------------------------------------------
;;***************************************************************************
;; Windows 9x parameters
;;***************************************************************************
[rtl8129.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_10EC&DEV_8129"

HKR, Ndi\Install,                       ,       0,      rtsnt.install
HKR, NDI\Params\DuplexMode,             flag,   1,      30, 00, 00, 00
HKR, Ndi\Params\EarlyTxThreshold,       flag,   1,      20, 00, 00, 00
HKR, NDI\Params\NetworkAddress,         flag,   1,      30, 00, 00, 00



[RTL8129.win.reg]
;; key,subkey,valuname,type,value
HKR, ,  DriverDesc,     0,      "Realtek RTL8129(A/B/C/8130) PCI/Cardbus Fast Ethernet NIC"
HKR, ,  DevLoader,      0,      *ndis
HKR, ,  DeviceVxDs,     0,      rtl8129.sys
HKR, ,  EnumPropPages,  0,      netdi.dll,      EnumPropPages

;;params
HKR, ,  MediaType,      0,      1
HKR, ,  AdapterType,    0,      5
HKR, ,  BusType,        0,      5

;; NDIS Info
HKR, NDIS,              MajorNdisVersion,       1,      03
HKR, NDIS,              MinorNdisVersion,       1,      0a
HKR, NDIS,              LogDriverName,          0,      "RTL8129"

;; Interfaces
HKR, Ndi\Interfaces,    DefLower,               ,       "ethernet"
HKR, Ndi\Interfaces,    LowerRange,             ,       "ethernet"
HKR, Ndi\Interfaces,    DefUpper,               ,       "ndis3"
HKR, Ndi\Interfaces,    UpperRange,             ,       "ndis3"

;; Install sections
HKR, Ndi\Install,       ndis3,                  0,      "rtl129.ndis5"

;; Install NDIS3
[rtl129.ndis5]
CopyFiles       = rtl129.ndis5.CopyFiles, rtl129.inf.CopyFiles
DelFiles        = rtl129.DelFiles

[rtl129.ndis5.CopyFiles]
rtl8129.sys,,,2

[rtl129.DelFiles]
drvidx.bin,,,1
drvdata.bin,,,1

;;****************************************************************************
;; RTL8129 common parameters
;;****************************************************************************

[RTL8129.common.reg]
;HKR, Ndi\params\DuplexMode,      ParamDesc, 0, %DuplexMode%
;HKR, Ndi\params\DuplexMode,      type,      0, "enum"
;HKR, Ndi\params\DuplexMode,      default,   0, "1"
;HKR, Ndi\params\DuplexMode\enum, 1,         0, %dmAutoMode%
;HKR, Ndi\params\DuplexMode\enum, 2,         0, %dm10HalfMode%
;HKR, Ndi\params\DuplexMode\enum, 3,         0, %dm10FullMode%
;HKR, Ndi\params\DuplexMode\enum, 4,         0, %dm100HalfMode%
;HKR, Ndi\params\DuplexMode\enum, 5,         0, %dm100FullMode%

HKR,Ndi\Params\EarlyTxThreshold, ParamDesc, 0, %EarlyTxThreshold%
HKR,Ndi\Params\EarlyTxThreshold, Type,      0, "int"
HKR,Ndi\Params\EarlyTxThreshold, Default,   0, "38"
HKR,Ndi\Params\EarlyTxThreshold, Min,       0, "0
HKR,Ndi\Params\EarlyTxThreshold, Max,       0, "63"
HKR,Ndi\Params\EarlyTxThreshold, Step,      0, "1"
HKR,Ndi\Params\EarlyTxThreshold, Base,      0, "10"

HKR,Ndi\params\NetworkAddress,   ParamDesc, 0, %NetworkAddress%
HKR,Ndi\params\NetworkAddress,   type,      0, edit
HKR,Ndi\params\NetworkAddress,   default,   0, "000000000000"
HKR,Ndi\params\NetworkAddress,   LimitText, 0, 12
HKR,Ndi\params\NetworkAddress,   UpperCase, 0, 1
HKR,Ndi\params\NetworkAddress,   Optional,  0, 1

;HKR,NDI\Params\TxMaxDMABurst,flag,1,30,00,00,00
;HKR,Ndi\params\TxMaxDMABurst,ParamDesc,0,"Transmit DMA burst size"
;HKR,Ndi\params\TxMaxDMABurst,type,0,enum
;HKR,Ndi\params\TxMaxDMABurst,default,0,6
;HKR,Ndi\params\TxMaxDMABurst\enum,0,0,"0:16 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,1,0,"1:32 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,2,0,"2:64 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,3,0,"3:128 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,4,0,"4:256 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,5,0,"5:512 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,6,0,"6:1024 bytes"
;HKR,Ndi\params\TxMaxDMABurst\enum,7,0,"7:2048 bytes"

;HKR,NDI\Params\RxMaxDMABurst,flag,1,30,00,00,00
;HKR,Ndi\params\RxMaxDMABurst,ParamDesc,0,"Receive DMA burst size"
;HKR,Ndi\params\RxMaxDMABurst,type,0,enum
;HKR,Ndi\params\RxMaxDMABurst,default,0,6
;HKR,Ndi\params\RxMaxDMABurst\enum,0,0,"0:16 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,1,0,"1:32 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,2,0,"2:64 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,3,0,"3:128 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,4,0,"4:256 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,5,0,"5:512 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,6,0,"6:1024 bytes"
;HKR,Ndi\params\RxMaxDMABurst\enum,7,0,"7:unlimitted"

;HKR,NDI\Params\EarlyRxThreshold,flag,1,30,00,00,00
;HKR,Ndi\params\EarlyRxThreshold,ParamDesc,0,"Receive FIFO threshold"
;HKR,Ndi\params\EarlyRxThreshold,type,0,enum
;HKR,Ndi\params\EarlyRxThreshold,default,0,2
;HKR,Ndi\params\EarlyRxThreshold\enum,0,0,"0:16 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,1,0,"1:32 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,2,0,"2:64 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,3,0,"3:128 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,4,0,"4:256 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,5,0,"5:512 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,6,0,"6:1024 bytes"
;HKR,Ndi\params\EarlyRxThreshold\enum,7,0,"7:No threshold"

;HKR,NDI\Params\TxInterFrameGap,flag,1,30,00,00,00
;HKR,Ndi\params\TxInterFrameGap,ParamDesc,0,"Tx IFG(10M/100M)"
;HKR,Ndi\params\TxInterFrameGap,type,0,enum
;HKR,Ndi\params\TxInterFrameGap,default,0,3
;HKR,Ndi\params\TxInterFrameGap\enum,0,0,"8.4us/840ns"
;HKR,Ndi\params\TxInterFrameGap\enum,1,0,"8.8us/880ns"
;HKR,Ndi\params\TxInterFrameGap\enum,2,0,"9.2us/920ns"
;HKR,Ndi\params\TxInterFrameGap\enum,3,0,"9.6us/960ns"

;;****************************************************************************
;; NT 5.0 parameters
;;****************************************************************************
[RTL8129.reg]
HKR, Ndi\Interfaces,            UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces,            LowerRange, 0, "ethernet"
HKR, Ndi,                       Service,    0, "RTL8129"

[rtsnt.Service]
DisplayName     = %RTL8129.Service.DispName%
ServiceType     = 1                             ; %SERVICE_KERNEL_DRIVER%
StartType       = 3                             ; %SERVICE_DEMAND_START%
ErrorControl    = 1                             ; %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\RTL8129.SYS
LoadOrderGroup  = NDIS

[RTL8129.EventLog]
Addreg = RTL8129.AddEventLog.reg

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

;;****************************************************************************
;; Destination Directory
;;****************************************************************************
[DestinationDirs]
RTL8129.CopyFiles           = 12

DefaultDestDir              = 11        ; LDID_SYS
rtl129.ndis5.CopyFiles      = 11
rtl129.inf.CopyFiles        = 17        ; INF
rtl129.DelFiles             = 17

;;****************************************************************************
;; Source Files
;;****************************************************************************
[SourceDisksNames]
1=%DISKNAME%,,0000-0000

[SourceDisksFiles]
rtl8129.sys

;;****************************************************************************
;; Strings
;;****************************************************************************
[Strings]
Msft                      = "Microsoft"
Realtek                   = "Realtek"

;;Source disk name
DISKNAME = " Realtek RTL8129 PCI/Cardbus Fast Ethernet NIC Driver Disk "

NetworkAddress            = "Network Address"
EarlyTxThreshold          = "Early Tx Threshold"
DuplexMode                = "Link Speed/Duplex Mode"
dmDefault                 = "Default"
dmAutoMode                = "Auto Mode"
dm10HalfMode              = "10 Half Mode"
dm10FullMode              = "10 Full Mode"
dm100HalfMode             = "100 Half Mode"
dm100FullMode             = "100 Full Mode"

RTL8129.DeviceDesc        = "Realtek RTL8129 PCI Fast Ethernet NIC"
RTL8129.Service.DispName  = "Realtek RTL8129 PCI Fast Ethernet NIC NT Driver"
