;; NETRTS5.INF (NT 5.0 & Win98 combined inf for NDIS5 driver)
;;
;; Realtek RTL8139/810x Family PCI/Cardbus Fast Ethernet Network Interface Cards.
;;
;; Copyright 1996-2001, Realtek Semiconductor Corporation

[version]
Signature   = "$Chicago$"
Compatible  = 1
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Realtek%                                 ;;
;CatalogFile = netrts5.cat                               ;; for WHQL certified
;CatalogFile.NT = netrtsn.cat
DriverVer   = 08/23/2001,5.397.0823.2001

[Manufacturer]
%Realtek%   = Realtek

[ControlFlags]
;ExcludeFromSelect     = PCI\VEN_10EC&DEV_8139
;ExcludeFromSelect     = PCI\VEN_10EC&DEV_8138
;ExcludeFromSelect     = PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC
;ExcludeFromSelect     = PCI\VEN_10EC&DEV_8138&SUBSYS_813810EC

[Realtek]
%RTL8139.DeviceDesc%  = RTL8139.ndi, PCI\VEN_10EC&DEV_8139
%RTL8138.DeviceDesc%  = RTL8138.ndi, PCI\VEN_10EC&DEV_8138
%RTL8139_A.DeviceDesc%  = RTL8139_A.ndi, PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC
%RTL8138_A.DeviceDesc%  = RTL8138_A.ndi, PCI\VEN_10EC&DEV_8138&SUBSYS_813810EC

;;****************************************************************************
;; Windows 9x
;;****************************************************************************
[rtl8139.ndi]
DriverVer       = 08/23/2001,397
AddReg          = rtl8139.id.reg, RTL8139.common.reg, RTL8139.win.reg, RTL8139.oncbs.reg
DeviceID        = "PCI\VEN_10EC&DEV_8139"
LogConfig       = DefaultConfig

[rtl8138.ndi]
DriverVer       = 08/23/2001,397
AddReg          = rtl8138.id.reg, RTL8139.common.reg, RTL8139.win.reg, RTL8138.oncbs.reg
DeviceID        = "PCI\VEN_10EC&DEV_8138"
LogConfig       = DefaultConfig

[rtl8139_A.ndi]
DriverVer       = 08/23/2001,397
AddReg          = rtl8139.id.reg, RTL8139.common.reg, RTL8139.win.reg, RTL8139.oncbs.reg
DeviceID        = "PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC"
LogConfig       = DefaultConfig

[rtl8138_A.ndi]
DriverVer       = 08/23/2001,397
AddReg          = rtl8138.id.reg, RTL8139.common.reg, RTL8139.win.reg, RTL8138.oncbs.reg
DeviceID        = "PCI\VEN_10EC&DEV_8138&SUBSYS_813810EC"
LogConfig       = DefaultConfig

;;****************************************************************************
;; NT 5.0
;;****************************************************************************
[RTL8139.ndi.NT]
DriverVer       = 08/23/2001,397
AddReg          = RTL8139.common.reg, RTL8139.reg, RTL8139.oncbs.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = RTL8139.CopyFiles

[RTL8139.ndi.NT.Services]
AddService = rtl8139, 2, rtsnt.Service, RTL8139.EventLog

[RTL8138.ndi.NT]
DriverVer       = 08/23/2001,397
AddReg          = RTL8139.common.reg, RTL8139.reg, RTL8138.oncbs.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = RTL8139.CopyFiles

[RTL8138.ndi.NT.Services]
AddService = rtl8139, 2, rtsnt.Service, RTL8139.EventLog

[RTL8139_A.ndi.NT]
DriverVer       = 08/23/2001,397
AddReg          = RTL8139.common.reg, RTL8139.reg, RTL8139.oncbs.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = RTL8139.CopyFiles

[RTL8139_A.ndi.NT.Services]
AddService = rtl8139, 2, rtsnt.Service, RTL8139.EventLog

[RTL8138_A.ndi.NT]
DriverVer       = 08/23/2001,397
AddReg          = RTL8139.common.reg, RTL8139.reg, RTL8138.oncbs.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = RTL8139.CopyFiles

[RTL8138_A.ndi.NT.Services]
AddService = rtl8139, 2, rtsnt.Service, RTL8139.EventLog

[RTL8139.CopyFiles]
RTL8139.sys,,,2

;;----------------------------------------------------------------------------
;; RTL8139 Parameters
;;----------------------------------------------------------------------------
;;***************************************************************************
;; Windows 9x parameters
;;***************************************************************************
[rtl8139.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_10EC&DEV_8139"

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
HKR, NDI\Params\WakeUpFrame,            flag,   1,      30, 00, 00, 00

[rtl8138.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_10EC&DEV_8138"

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
HKR, NDI\Params\WakeUpFrame,            flag,   1,      30, 00, 00, 00

[rtl8139_A.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC"

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
HKR, NDI\Params\WakeUpFrame,            flag,   1,      30, 00, 00, 00

[rtl8138_A.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_10EC&DEV_8138&SUBSYS_813810EC"

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
HKR, NDI\Params\WakeUpFrame,            flag,   1,      30, 00, 00, 00


[RTL8139.win.reg]
;; key,subkey,valuname,type,value
HKR, ,  DriverDesc,     0,      "Realtek RTL8139/810x Family PCI/Cardbus Fast Ethernet NIC"
HKR, ,  DevLoader,      0,      *ndis
HKR, ,  DeviceVxDs,     0,      rtl8139.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,      "RTL8139"
HKR, NDIS\NDIS2,        DriverName,             0,      "RTSND$"
HKR, NDIS\NDIS2,        FileName,               0,      "rtsnd.dos"
HKR, NDIS\ODI,          DriverName,             0,      "rtsodi"
HKR, NDIS\ODI,          FileName,               0,      "rtsodi.com"

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

;; Install sections
HKR, Ndi\Install,       ndis3,                  0,      "rtl139.ndis5"
HKR, Ndi\Install,       ndis2,                  0,      "rtl139.ndis2"
HKR, Ndi\Install,       odi,                    0,      "rtl139.odi"

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

[rtl139.ndis5.CopyFiles]
rtl8139.sys,,,2

[rtl139.inf.CopyFiles]
netrts5.inf,,,2

[rtl139.DelFiles]
netrts5.inf,,,1
netrts.inf,,,1
netrts_a.inf,,,1
other\realte~1.inf,,,1
drvidx.bin,,,1
drvdata.bin,,,1

;; Install NDIS2
[rtl139.ndis2]
CopyFiles = rtl139.ndis2.CopyFiles

[rtl139.ndis2.CopyFiles]
rtsnd.dos,,,2

;; Install ODI
[rtl139.odi]
CopyFiles = rtl139.odi.CopyFiles

[rtl139.odi.CopyFiles]
rtsodi.com,,,2

;;****************************************************************************
;; RTL8139 common parameters
;;****************************************************************************
[RTL8139.oncbs.reg]
HKR,,ChipOnCardbus,,0

[RTL8138.oncbs.reg]
HKR,,ChipOnCardbus,,1

[RTL8139.common.reg]
HKR, Ndi\params\DuplexMode,      ParamDesc, 0, %DuplexMode%
HKR, Ndi\params\DuplexMode,      type,      0, "enum"
;HKR, Ndi\params\DuplexMode,      default,   0, "0"
;HKR, Ndi\params\DuplexMode\enum, 0,         0, %dmDefault%
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, "15"
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"

;HKR, Ndi\params\WakeOnLan,         ParamDesc,  0, "Smart Power Saving"
;HKR, Ndi\params\WakeOnLan,         default,    0, "0"  
;HKR, Ndi\params\WakeOnLan,         type,       0, "enum"
;HKR, Ndi\params\WakeOnLan\enum,    "0",        0, "Disable"
;HKR, Ndi\params\WakeOnLan\enum,    "1",        0, "Enable (No WakeUp)"

HKR,Ndi\params\RxBufLen,           ParamDesc,  0, "Receive Buffer Size"
HKR,Ndi\params\RxBufLen,           type,       0, "enum"
HKR,Ndi\params\RxBufLen,           default,    0, "3"
HKR,Ndi\params\RxBufLen\enum,      "0",        0, "8K bytes"
HKR,Ndi\params\RxBufLen\enum,      "1",        0, "16K bytes"
HKR,Ndi\params\RxBufLen\enum,      "2",        0, "32K bytes"
HKR,Ndi\params\RxBufLen\enum,      "3",        0, "64K bytes"

HKR, Ndi\params\LinkUp,            ParamDesc,  0, "WakeUp on Link Change"
HKR, Ndi\params\LinkUp,            default,    0, "0"
HKR, Ndi\params\LinkUp,            type,       0, "enum"
HKR, Ndi\params\LinkUp\enum,       "1",        0, "Enable"
HKR, Ndi\params\LinkUp\enum,       "0",        0, "Disable"

HKR, Ndi\params\WakeUpFrame,       ParamDesc,  0, "WakeUp on ARP/PING"
HKR, Ndi\params\WakeUpFrame,       default,    0, "0"
HKR, Ndi\params\WakeUpFrame,       type,       0, "enum"
HKR, Ndi\params\WakeUpFrame\enum,  "0",        0, "Enable"
HKR, Ndi\params\WakeUpFrame\enum,  "1",        0, "Disable"

HKR, Ndi\params\PME,               ParamDesc,  0, "WakeUp using APM Mode"
HKR, Ndi\params\PME,               default,    0, "1"
HKR, Ndi\params\PME,               type,       0, "enum"
HKR, Ndi\params\PME\enum,          "0",        0, "Enable"
HKR, Ndi\params\PME\enum,          "1",        0, "Disable"

HKR, Ndi\params\EnableLDPS,        ParamDesc,  0, "Link Down Power Saving"
HKR, Ndi\params\EnableLDPS,        default,    0, "0"
HKR, Ndi\params\EnableLDPS,        type,       0, "enum"
HKR, Ndi\params\EnableLDPS\enum,   "0",        0, "Disable"
HKR, Ndi\params\EnableLDPS\enum,   "1",        0, "Enable"

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

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

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

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

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

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

DefaultDestDir              = 11        ; LDID_SYS
rtl139.ndis5.CopyFiles      = 11
rtl139.ndis2.CopyFiles      = 26
rtl139.odi.CopyFiles        = 26
rtl139.inf.CopyFiles        = 17        ; INF
rtl139.DelFiles             = 17

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

[SourceDisksFiles]
rtl8139.sys     = 1, win98,        rtl8139.sys, 12345
netrts5.inf     = 1, ,             netrts5.inf, 1234
;netrts5.cat     = 1, win98,        netrts5.cat, 1234
;netrtsn.cat     = 1, win2000,      netrtsn.cat, 1234
rtsnd.dos       = 1, ndis2dos,     rtsnd.dos,   12345
rtsodi.com      = 1, nwclient\dos, rtsodi.com,  12345

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

;;Source disk name
DISKNAME = " Realtek RTL8139 Family 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"

RTL8139.DeviceDesc        = "Realtek RTL8139/810x Family PCI Fast Ethernet NIC"
RTL8139.Service.DispName  = "Realtek RTL8139/810x Family PCI Fast Ethernet NIC NT Driver"
RTL8138.DeviceDesc        = "Realtek RTL8139/810x Family OEM Cardbus Fast Ethernet NIC (NDIS5/Win98 driver)"
RTL8138.Service.DispName  = "Realtek RTL8139/810x Family OEM Cardbus Fast Ethernet NIC NT Driver"
RTL8139_A.DeviceDesc        = "Realtek RTL8139/810x Family PCI Fast Ethernet NIC (NDIS5/Win98 driver)"
RTL8139_A.Service.DispName  = "Realtek RTL8139/810x Family PCI Fast Ethernet NIC NT Driver"
RTL8138_A.DeviceDesc        = "Realtek RTL8139/810x Family Cardbus Fast Ethernet NIC (NDIS5/Win98 driver)"
RTL8138_A.Service.DispName  = "Realtek RTL8139/810x Family Cardbus Fast Ethernet NIC NT Driver"
