;; NETRTS.INF (Windows 95 OSR2 INF for NDIS4 driver)
;;
;; Realtek RTL8139/810x Family PCI/Cardbus Fast Ethernet Network Interface Cards.
;;
;; Copyright 1997-2001, 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

[rtl8139.ndi]
AddReg      = rtl8139.ndi.reg, oncbs139.ndi.reg, pci139.ndi.reg, pci139.pci.reg

[rtl8138.ndi]
AddReg      = rtl8139.ndi.reg, oncbs138.ndi.reg, pci139.ndi.reg, pci139.pci.reg

;;****************************************************************************
;;    *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"

[oncbs139.ndi.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_10EC&DEV_8139"
HKR, , ChipOnCardbus, , 0

[oncbs138.ndi.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_10EC&DEV_8138"
HKR, , ChipOnCardbus, , 1

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

[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"

; 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"

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

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

[pci139.pci.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, 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"

;;****************************************************************************
;; 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.inf,,,2

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

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

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

[SourceDisksFiles]
rtl8139.sys     = 52, win95,        rtl8139.sys, 12345
netrts.inf      = 52, ,             netrts.inf,  1234

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

;;Manufacturers
Realtek="Realtek"

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