; Copyright (c) 2007 by TRENDware Internal,Inc.
;

[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %TRENDnet%
DriverVer   = 02/08/2007,6.190.0208.2007
CatalogFile.NT = Netrtlx.cat

[Manufacturer]
%TRENDnet% = TRENDnet, NTamd64

[ControlFlags]
ExcludeFromSelect     = *

[TRENDnet.NTamd64]
%EthDriver.DeviceDesc% = EthDriver.ndi, PCI\VEN_10EC&DEV_8169&SUBSYS_816910EC

;
;
; Windows NT specific entry
[EthDriver.ndi.NT]
Characteristics = 0x84
BusType         = 5
AddReg          = Speed.reg, NetworkAddress.reg, flowctrl.reg, PriorityVlanTag.reg, InterruptModeration.reg, TxRxBuf.reg, Jumboframe.reg, Offload.reg, EthDriver.reg
CopyFiles       = EthDriver.CopyFiles
*IfType         = 6		; IF_TYPE_ETHERNET_CSMACD 
*MediaType      = 0		; NdisMedium802_3
*PhysicalMediaType = 0		; NdisPhysicalMediumUnspecified 



[EthDriver.ndi.NT.Services]
AddService = EthDriver, 2, EthDriver.Service, common.EventLog


;-----------------------------------------------------------------------------
; common base for 10/100/1000 Mb Adapters
;
[Speed.reg]
HKR,Ndi\params\*SpeedDuplex,       ParamDesc,  0, %SpeedDuplex%
HKR,Ndi\params\*SpeedDuplex,       default,    0, "0"
HKR,Ndi\params\*SpeedDuplex,       type,       0, "enum"
HKR,Ndi\params\*SpeedDuplex\enum,  "0",        0, %AutoDetect%
HKR,Ndi\params\*SpeedDuplex\enum,  "1",        0, %10Mb-Half-Duplex%
HKR,Ndi\params\*SpeedDuplex\enum,  "2",        0, %10Mb-Full-Duplex%
HKR,Ndi\params\*SpeedDuplex\enum,  "3",        0, %100Mb-Half-Duplex%
HKR,Ndi\params\*SpeedDuplex\enum,  "4",        0, %100Mb-Full-Duplex%
HKR,Ndi\params\*SpeedDuplex\enum,  "6",        0, %1000Mb-Full-Duplex%
HKR,,*SpeedDuplex,0,"0"

HKR,Ndi\params\AutoDisableGigabit,       ParamDesc,  0, %AutoDisableGigabit%
HKR,Ndi\params\AutoDisableGigabit,       default,    0, "0"
HKR,Ndi\params\AutoDisableGigabit,       type,       0, "enum"
HKR,Ndi\params\AutoDisableGigabit\enum,  "0",        0, %Disabled%
HKR,Ndi\params\AutoDisableGigabit\enum,  "1",        0, %Re-Link%
HKR,,AutoDisableGigabit,0,"0"



[NetworkAddress.reg]
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"

[flowctrl.reg]
HKR,Ndi\params\*FlowControl,	   ParamDesc,  0, %FlowControl%
HKR,Ndi\params\*FlowControl,	   default,    0, "0"
HKR,Ndi\params\*FlowControl,	   type,       0, "enum"
HKR,Ndi\params\*FlowControl\enum,  "0",        0, %Disabled%
HKR,Ndi\params\*FlowControl\enum,  "1",        0, %Enabled%
HKR,,*FlowControl,0,"0"


[PriorityVlanTag.reg]
HKR,Ndi\params\*PriorityVLANTag,	ParamDesc,  0, %PriorityVLAN%
HKR,Ndi\params\*PriorityVLANTag,	default,    0, "0"
HKR,Ndi\params\*PriorityVLANTag,	type,       0, "enum"
HKR,Ndi\params\*PriorityVLANTag\enum,	"0",        0, %PriorityVLANDisabled%
HKR,Ndi\params\*PriorityVLANTag\enum,	"3",        0, %PriorityVLANEnabled%
HKR,,*PriorityVLANTag,0,"3"

[InterruptModeration.reg]
HKR,Ndi\params\*InterruptModeration,	ParamDesc,  0, %InterruptModeration%
HKR,Ndi\params\*InterruptModeration,	default,    0, "1"
HKR,Ndi\params\*InterruptModeration,	type,       0, "enum"
HKR,Ndi\params\*InterruptModeration\enum,	"0",        0, %Disabled%
HKR,Ndi\params\*InterruptModeration\enum,	"1",        0, %Enabled%
HKR,,*InterruptModeration,0,"1"

[TxRxBuf.reg]
HKR,Ndi\Params\*ReceiveBuffers,       ParamDesc,  0, %ReceiveBuffers%
HKR,Ndi\Params\*ReceiveBuffers,       Type,       0, "int"
HKR,Ndi\Params\*ReceiveBuffers,       Default,    0, "256"
HKR,Ndi\Params\*ReceiveBuffers,       Min,        0, "1"
HKR,Ndi\Params\*ReceiveBuffers,       Max,        0, "512"
HKR,Ndi\Params\*ReceiveBuffers,       Step,       0, "1"
HKR,Ndi\Params\*ReceiveBuffers,       Base,       0, "10"
HKR,,*ReceiveBuffers,0,"256"

HKR,Ndi\Params\*TransmitBuffers,      ParamDesc,  0, %TransmitBuffers%
HKR,Ndi\Params\*TransmitBuffers,      Type,       0, "int"
HKR,Ndi\Params\*TransmitBuffers,      Default,    0, "64"
HKR,Ndi\Params\*TransmitBuffers,      Min,        0, "1"
HKR,Ndi\Params\*TransmitBuffers,      Max,        0, "64"
HKR,Ndi\Params\*TransmitBuffers,      Step,       0, "1"
HKR,Ndi\Params\*TransmitBuffers,      Base,       0, "10"
HKR,,*TransmitBuffers,0,"64"

[Jumboframe.reg]
HKR,Ndi\params\JumboFrame,        ParamDesc,  0, %JumboFrame%
HKR,Ndi\params\JumboFrame,        default,    0, "0"
HKR,Ndi\params\JumboFrame,        type,       0, "enum"
HKR,Ndi\params\JumboFrame\enum,   "0",        0, %Disabled%
HKR,Ndi\params\JumboFrame\enum,   "1",        0, %2KBMTU%
HKR,Ndi\params\JumboFrame\enum,   "2",        0, %3KBMTU%
HKR,Ndi\params\JumboFrame\enum,   "3",        0, %4KBMTU%
HKR,Ndi\params\JumboFrame\enum,   "4",        0, %5KBMTU%
HKR,Ndi\params\JumboFrame\enum,   "5",        0, %6KBMTU%
HKR,Ndi\params\JumboFrame\enum,   "6",        0, %7KBMTU%
HKR,,Jumboframe,0,"0"



[Offload.reg]
HKR,Ndi\params\*IPChecksumOffloadIPv4,        ParamDesc,  0, %IPChksumOffv4%
HKR,Ndi\params\*IPChecksumOffloadIPv4,        default,    0, "3"
HKR,Ndi\params\*IPChecksumOffloadIPv4,        type,       0, "enum"
HKR,Ndi\params\*IPChecksumOffloadIPv4\enum,   "0",        0, %Disabled%
HKR,Ndi\params\*IPChecksumOffloadIPv4\enum,   "1",        0, %TxEnabled%
HKR,Ndi\params\*IPChecksumOffloadIPv4\enum,   "2",        0, %RxEnabled%
HKR,Ndi\params\*IPChecksumOffloadIPv4\enum,   "3",        0, %RxTxEnabled%
HKR,,*IPChecksumOffloadIPv4,0,"3"

HKR,Ndi\params\*TCPChecksumOffloadIPv4,       ParamDesc,  0, %TCPChksumOffv4%
HKR,Ndi\params\*TCPChecksumOffloadIPv4,       default,    0, "3"
HKR,Ndi\params\*TCPChecksumOffloadIPv4,       type,       0, "enum"
HKR,Ndi\params\*TCPChecksumOffloadIPv4\enum,  "0",        0, %Disabled%
HKR,Ndi\params\*TCPChecksumOffloadIPv4\enum,  "1",        0, %TxEnabled%
HKR,Ndi\params\*TCPChecksumOffloadIPv4\enum,  "2",        0, %RxEnabled%
HKR,Ndi\params\*TCPChecksumOffloadIPv4\enum,  "3",        0, %RxTxEnabled%
HKR,,*TCPChecksumOffloadIPv4,0,"3"

HKR,Ndi\params\*UDPChecksumOffloadIPv4,       ParamDesc,  0, %UDPChksumOffv4%
HKR,Ndi\params\*UDPChecksumOffloadIPv4,       default,    0, "3"
HKR,Ndi\params\*UDPChecksumOffloadIPv4,       type,       0, "enum"
HKR,Ndi\params\*UDPChecksumOffloadIPv4\enum,  "0",        0, %Disabled%
HKR,Ndi\params\*UDPChecksumOffloadIPv4\enum,  "1",        0, %TxEnabled%
HKR,Ndi\params\*UDPChecksumOffloadIPv4\enum,  "2",        0, %RxEnabled%
HKR,Ndi\params\*UDPChecksumOffloadIPv4\enum,  "3",        0, %RxTxEnabled%
HKR,,*UDPChecksumOffloadIPv4,0,"3"

HKR,Ndi\params\*LsoV1IPv4,	ParamDesc,  0, %LSOv4%
HKR,Ndi\params\*LsoV1IPv4,	default,    0, "1"
HKR,Ndi\params\*LsoV1IPv4,	type,       0, "enum"
HKR,Ndi\params\*LsoV1IPv4\enum,  "0",        0, %Disabled%
HKR,Ndi\params\*LsoV1IPv4\enum,  "1",        0, %Enabled%
HKR,,*LsoV1IPv4,0,"1"


;-----------------------------------------------------------------------------
;

[EthDriver.reg]
HKR, Ndi,                       Service,    0, "TEGPCI"
; use ndis5 as the upper bound because NT supports it
HKR, Ndi\Interfaces,            UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces,            LowerRange, 0, "ethernet"


[EthDriver.Service]
DisplayName     = %EthDriver.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\TEGPCI.sys
LoadOrderGroup  = NDIS


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

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

;-----------------------------------------------------------------------------
; DestinationDirs
;
[EthDriver.CopyFiles]
TEGPCI.sys,,,2

[SourceDisksNames]
1 = %DiskDescription%,TEGPCI.sys,,


[SourceDisksFiles]
TEGPCI.sys = 1,, ; on distribution disk 1


[DestinationDirs]
EthDriver.CopyFiles  = 12
DefaultDestDir     = 11

[Strings]
TRENDnet = "TRENDnet"
AutoDetect               = "Auto Negotiation"
SpeedDuplex              = "Speed & Duplex"
10Mb-Half-Duplex         = "10 Mbps Half Duplex"
10Mb-Full-Duplex         = "10 Mbps Full Duplex"
100Mb-Half-Duplex        = "100 Mbps Half Duplex"
100Mb-Full-Duplex        = "100 Mbps Full Duplex"
1000Mb-Full-Duplex       = "1.0 Gbps Full Duplex"
NetworkAddress		 = "Network Address"
IPChksumOffv4            = "IPv4 Checksum Offload"
TCPChksumOffv4           = "TCP Checksum Offload (IPv4)"
UDPChksumOffv4           = "UDP Checksum Offload (IPv4)"
Enabled                  = "Enabled"
Disabled                 = "Disabled"
TxEnabled                = "Tx Enabled"
RxEnabled                = "Rx Enabled"
RxTxEnabled              = "Rx & Tx Enabled"
LSOv4                    = "Large Send Offload (IPv4)"
FlowControl              = "Flow Control"
PriorityVLAN             = "Priority & VLAN"
PriorityVLANDisabled     = "Priority & VLAN Disabled"
PriorityVLANEnabled      = "Priority & VLAN Enabled"
InterruptModeration      = "Interrupt Moderation"
ReceiveBuffers           = "Receive Buffers"
TransmitBuffers          = "Transmit Buffers"
AutoDisableGigabit       = "Auto Disable Gigabit (Battery)"
Re-Link                  = "Re-Link"
JumboFrame               = "Jumbo Frame"
2KBMTU                   = "2KB MTU"
3KBMTU                   = "3KB MTU"
4KBMTU                   = "4KB MTU"
5KBMTU                   = "5KB MTU"
6KBMTU                   = "6KB MTU"
7KBMTU                   = "7KB MTU"

EthDriver.DeviceDesc = "TEG-PCITXR Gigabit PCI Adapter"

EthDriver.Service.DispName = "TEG-PCITXR NDIS6 Driver       "

DiskDescription 	 = "EthDriver Driver Disk 1"



