;; NETRTS_A.INF (Windows 95 & Windows 95A INF for NDIS3 driver)
;;
;; Realtek RTL8139/810x Family PCI/Cardbus Fast Ethernet Network Interface Cards.
;;
;; Copyright 1997-2000, Realtek Semiconductor Corporation

[Version]
Signature   = "$CHICAGO$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Realtek%

[Manufacturer]
%Realtek% = Realtek

[Realtek]
%rtl8139.DeviceDesc%   = rtl8139.ndi, PCI\VEN_10EC&DEV_8139
%rtl8138.DeviceDesc%   = rtl8138.ndi, PCI\VEN_10EC&DEV_8138
%rtl8138ml.DeviceDesc% = rtl8138ml.ndi, *rtl8139

[rtl8139.ndi]
AddReg      = rtl8139.ndi.reg, notoncbs.ndi.reg, rtl8139.pci.reg, pci139.ndi.reg, pci139.pcires.reg

[rtl8138.ndi]
AddReg      = rtl8139.ndi.reg, oncbs.ndi.reg, rtl8139.cardbus.reg, pci139.ndi.reg, pci139.pcires.reg

[rtl8138ml.ndi]
AddReg      = rtl8139.ndi.reg, oncbs.ndi.reg, rtl8139ml.cardbus.reg, pci139.ndi.reg, pci139.pcires.reg
LogConfig   = rtl8139ml.LogConfig

;;****************************************************************************
;;    *RTL8139   Realtek RTL8139
;;****************************************************************************

[rtl8139.ndi.reg]
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\TxMaxDMABurst,    flag, 1, 30, 00, 00, 00
;HKR, NDI\Params\RxMaxDMABurst,    flag, 1, 30, 00, 00, 00
;HKR, NDI\Params\EarlyRxThreshold, flag, 1, 30, 00, 00, 00
;HKR, NDI\Params\TxInterFrameGap,  flag, 1, 30, 00, 00, 00

HKR, Ndi\params\DuplexMode, ParamDesc, 0, "Link Speed/Duplex Mode"
HKR, Ndi\params\DuplexMode, type,      0, enum
HKR, Ndi\params\DuplexMode, default,   0, 1
;HKR, Ndi\params\DuplexMode\enum, 0, 0, "Default"
HKR, Ndi\params\DuplexMode\enum, 1, 0, "Auto Mode "
HKR, Ndi\params\DuplexMode\enum, 2, 0, "10 Half Mode"
HKR, Ndi\params\DuplexMode\enum, 3, 0, "10 Full Mode"
HKR, Ndi\params\DuplexMode\enum, 4, 0, "100 Half Mode"
HKR, Ndi\params\DuplexMode\enum, 5, 0, "100 Full Mode"

HKR, Ndi\Params\EarlyTxThreshold, ParamDesc, 0, "Early Tx Threshold"
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, "Network Address"
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, 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, 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, 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, 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"

[rtl8139.pci.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_10EC&DEV_8139"

[rtl8139.cardbus.reg]
HKR, Ndi, DeviceID,     0, "PCI\VEN_10EC&DEV_8138"
HKR, Ndi, CardType,     ,  "PCI"
HKR, ,    AdapterCFID,  ,  813810EC

[rtl8139ml.cardbus.reg]
HKR, Ndi, DeviceID,    , "Realtek CardBus Fast Ethernet"
HKR, Ndi, CardType,    , "LEGACY"
HKR, ,    AdapterCFID, , 813810EC

[notoncbs.ndi.reg]
HKR, , ChipOnCardbus, , 0

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

[rtl8139ml.LogConfig]
ConfigPriority = HARDRECONFIG
IOConfig       = 100@f000-f7ff%FF00(3FF::)
IRQConfig      = 3,4,5,6,7,8,9,10,11,12,13,14,15
MemConfig      = 4000@C0000-EFFFF%FFFFC000

;;****************************************************************************
;;
;;****************************************************************************

[pci139.ndi.reg]
; key,subkey,valuname,type,value
HKR, , DriverDesc,    0, "Realtek RTL8139/810x PCI Fast Ethernet Controller"
HKR, , DevLoader,     0, *ndis
HKR, , DeviceVxDs,    0, rtl8139.sys
HKR, , EnumPropPages, 0, netdi.dll, EnumPropPages

; 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,   0, "ethernet"
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
HKR, Ndi\Interfaces, DefUpper,   0, "ndis3"
HKR, Ndi\Interfaces, UpperRange, 0, "ndis3,ndis2,odi"

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

;;****************************************************************************
;; PCI common parameters
;;****************************************************************************

[pci139.pcires.reg]
;;params
HKR, , MediaType,   0, 1
HKR, , AdapterType, 0, 5
HKR, , BusType,     0, 5

;; Resources
HKR, , InterruptNumber,   1, 04, 00, 00, 00
HKR, , IOBaseAddress,     1, 02, 00, 00, 00
HKR, , MemoryBaseAddress, 1, 01, 00, 00, 00

HKR, NDI\params\InterruptNumber, flag,      1, 20, 00, 00, 00
HKR, NDI\params\InterruptNumber, resc,      1, 04, 00, 00, 00
HKR, Ndi\params\interruptNumber, ParamDesc, 0, "Interrupt Level"
HKR, NDI\params\IOBaseAddress,   flag,      1, 20, 00, 00, 00
HKR, NDI\params\IOBaseAddress,   resc,      1, 02, 00, 00, 00
HKR, NDI\params\IOBaseAddress,   ParamDesc, 0, "I/O Base Address"

;;ndis2
HKR, NDI\params\Interrupt, flag, 1, 10, 00, 00, 00
HKR, NDI\params\Interrupt, resc, 1, 04, 00, 00, 00
HKR, Ndi\params\interrupt, ParamDesc, 0, "Interrupt Level"
HKR, NDI\params\IOBase, flag, 1, 10, 00, 00, 00
HKR, NDI\params\IOBase, resc, 1, 02, 00, 00, 00
HKR, NDI\params\IOBase, ParamDesc, 0, "I/O Base Address"

;;****************************************************************************
;; Drivers
;;****************************************************************************

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

[net139.ndis3.CopyFiles]
rtl8139.sys,,,2

[net139.inf.CopyFiles]
netrts_a.inf,,,2

[net139.DelFiles]
netrts_a.inf,,,1
netrts.inf,,,1
drvidx.bin,,,1
drvdata.bin,,,1

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

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

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

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

;;****************************************************************************
;; Destination Directories
;;****************************************************************************
[DestinationDirs]
DefaultDestDir              =11 ; LDID_SYS
net139.ndis3.CopyFiles      =11
net139.ndis2.CopyFiles      =26
net139.odi.CopyFiles        =26
net139.inf.CopyFiles        =17 ; INF
rtl8139.DelFiles            =17

[SourceDisksNames]
52 = "Realtek Fast Ethernet RTL8139/810x Adapter Driver Disk",,0000-0000

[SourceDisksFiles]
rtl8139.sys     = 52, win95a,       rtl8139.sys,  12345
netrts_a.inf    = 52, ,             netrts_a.inf, 1234
rtsnd.dos       = 52, ndis2dos,     rtsnd.dos,    12345
rtsodi.com      = 52, nwclient\dos, rtsodi.com,   12345

;;****************************************************************************
;; Localizable Strings
;;****************************************************************************
[strings]
;;Provider
V_MS="Microsoft"

;;Manufacturers
Realtek="Realtek"

;;PCI Realtek Devices
rtl8139.DeviceDesc="Realtek RTL8139/810x Family PCI Fast Ethernet (NDIS3/Win9x driver)"
rtl8138.DeviceDesc="Realtek RTL8139/810x Family CardBus Fast Ethernet (NDIS3/Win95_OSR2 driver)"
rtl8138ml.DeviceDesc="Realtek RTL8139/810x Family CardBus Fast Ethernet (NDIS3/Win95A driver)"
