;; (Combined inf for NDIS3/4/5 driver)
;;
;; This INF file is for DigitalChina DCN-530TX Fast Ethernet Adapter
;;
;; Copyright (C) 2002 Digitalchina Networks Limited

[version]
Signature   = "$CHICAGO$"
Compatible  = 1
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %DCN%                                ;; for WHQL certified
CatalogFile = netdc530.cat                            ;; for WHQL certified
DriverVer   = 04/29/2002, 1.00.0429.2002

[Manufacturer]
%DCN%    = DCN

[ControlFlags]
ExcludeFromSelect     = PCI\VEN_1113&DEV_1216&SUBSYS_00011113

[DCN]
%DCN530T.DeviceDesc%  = DCN530T.ndi, PCI\VEN_1113&DEV_1216&SUBSYS_00011113

;;****************************************************************************
;; Windows 9x
;;****************************************************************************
[DCN530T.ndi]
DriverVer       = 04/29/2002, 1.00.0429.2002
AddReg          = DCN530T.id.reg, DCN530.common.reg, DCN530.win.reg, DCN530.pci.reg
CopyFiles       = DCN530.CopyFiles9x
;DeviceID        = "PCI\VEN_1113&DEV_1216&SUBSYS_00011113"
;LogConfig       = DefaultConfig


;;****************************************************************************
;; NT 5.0
;;****************************************************************************
[DCN530T.ndi.NT]
DriverVer       = 04/29/2002, 1.00.0429.2002
AddReg          = DCN530.common.reg, DCN530.reg, DCN530.pci.reg
Characteristics = 0x84
BusType         = 5
CopyFiles       = DCN530.CopyFiles

[DCN530T.ndi.NT.Services]
AddService      = DCN530, 2, DCN530.Service, DCN530.EventLog


[DCN530.CopyFiles9x]
DCN530N5.sys,,,2

[DCN530.CopyFiles]
DCN530N5.sys,,,2

;;----------------------------------------------------------------------------
;; DCN530 Parameters
;;----------------------------------------------------------------------------
;;****************************************************************************
;; Windows 9x parameters
;;****************************************************************************
[DCN530T.id.reg]
HKR, Ndi,       DeviceID,       0,      "PCI\VEN_1113&DEV_1216&SUBSYS_00011113"


[DCN530.pci.reg]
HKR, ,                                      AdapterType,    0, "5"
HKR,,TxPacketDesc,,"160"      ; 0xa0
HKR,,RxPacketDesc,,"120"      ; 0x78
HKR,,TxDmaDesc,,"320"         ; 0x140
HKR,,RxDmaDesc,,"40"          ; 0x28
HKR,,PacketsPerTxInt,,"10"    ; 0x0a
HKR,,PacketsPerRxInd,,"10"    ; 0x0a
HKR,,BurstLength,,"0"         ; 0 (Unlimited), 1 DW, 2 DW, 3 DW, ...

[DCN530.win.reg]
;; key,subkey,valuname,type,value
HKR, ,  AdapterCFID,     ,      12161113
HKR, ,  DriverDesc,     0,      "DigitalChina DCN-530TX Fast Ethernet Adapter"
HKR, ,  DevLoader,      0,      *ndis
HKR, ,  DeviceVxDs,     0,      DCN530N5.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,      "DCN530N5"

;; 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,       "DCN530.ndis5"

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

;[DCN530.ndis5.CopyFiles]
;DCN530N5.sys,,,2

;[DCN530.inf.CopyFiles]
;NETDC530.INF,,,2

;[DCN530.DelFiles]
;drvidx.bin,,,1
;drvdata.bin,,,1

;;****************************************************************************
;; DCN530 common parameters
;;****************************************************************************
[DCN530.common.reg]
HKR, Ndi\Params\MediaType,          ParamDesc, , "Media Type"
HKR, Ndi\Params\MediaType,          default,   , "0"
HKR, Ndi\Params\MediaType,          type,      , "enum"
HKR, Ndi\Params\MediaType\enum,     0,         , "AutoSense"
HKR, Ndi\Params\MediaType\enum,     1,         , "10BaseT"
HKR, Ndi\Params\MediaType\enum,     2,         , "10BaseT Full_Duplex"
HKR, Ndi\Params\MediaType\enum,     3,         , "100BaseTX"
HKR, Ndi\Params\MediaType\enum,     4,         , "100BaseTX Full_Duplex"
HKR, Ndi\Params\MediaType,          flag,     1, "20","00","00","00"

;HKR, Ndi\Params\WakeOnLAN,          ParamDesc, , "Wake On LAN"
;HKR, Ndi\Params\WakeOnLAN,          default,   , "1"
;HKR, Ndi\Params\WakeOnLAN,          type,      , "enum"
;HKR, Ndi\Params\WakeOnLAN\enum,     0,         , "Disabled"
;HKR, Ndi\Params\WakeOnLAN\enum,     1,         , "Enabled"
;HKR, Ndi\Params\WakeOnLAN,          flag,     1, "20","00","00","00"

;HKR, Ndi\Params\APMModeWakeup,      ParamDesc, , "APM Mode Wakeup"
;HKR, Ndi\Params\APMModeWakeup,      default,   , "0"
;HKR, Ndi\Params\APMModeWakeup,      type,      , "enum"
;HKR, Ndi\Params\APMModeWakeup\enum, 0,         , "Disabled"
;HKR, Ndi\Params\APMModeWakeup\enum, 1,         , "Enabled"
;HKR, Ndi\Params\APMModeWakeup,      flag,     1, "20","00","00","00"

HKR, Ndi\Params\LinkOnChange,       ParamDesc, , "Link Wakeup(Off->On)"
HKR, Ndi\Params\LinkOnChange,       default,   , "1"
HKR, Ndi\Params\LinkOnChange,       type,      , "enum"
HKR, Ndi\Params\LinkOnChange\enum,  0,         , "Disabled"
HKR, Ndi\Params\LinkOnChange\enum,  1,         , "Enabled"
HKR, Ndi\Params\LinkOnChange,       flag,     1, "20","00","00","00"

HKR, Ndi\Params\LinkOffChange,      ParamDesc, , "Link Wakeup(On->Off)"
HKR, Ndi\Params\LinkOffChange,      default,   , "0"
HKR, Ndi\Params\LinkOffChange,      type,      , "enum"
HKR, Ndi\Params\LinkOffChange\enum, 0,         , "Disabled"
HKR, Ndi\Params\LinkOffChange\enum, 1,         , "Enabled"
HKR, Ndi\Params\LinkOffChange,      flag,     1, "20","00","00","00"

HKR, Ndi\Params\MagicPacket,        ParamDesc, , "Magic Packet Wakeup"
HKR, Ndi\Params\MagicPacket,        default,   , "1"
HKR, Ndi\Params\MagicPacket,        type,      , "enum"
HKR, Ndi\Params\MagicPacket\enum,   0,         , "Disabled"
HKR, Ndi\Params\MagicPacket\enum,   1,         , "Enabled"
HKR, Ndi\Params\MagicPacket,        flag,     1, "20","00","00","00"

HKR, Ndi\Params\FlowControl,        ParamDesc, , "Flow Control"
HKR, Ndi\Params\FlowControl,        default,   , "1"
HKR, Ndi\Params\FlowControl,        type,      , "enum"
HKR, Ndi\Params\FlowControl\enum,   0,         , "Disabled"
HKR, Ndi\Params\FlowControl\enum,   1,         , "Enabled"
HKR, Ndi\Params\FlowControl,        flag,     1, "20","00","00","00"

HKR,,WakeOnLAN,,"1"
HKR,,APMModeWakeup,,"1"

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

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


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

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

;;****************************************************************************
;; Destination Directory
;;****************************************************************************
[DestinationDirs]
DCN530.CopyFiles9x          = 11
DCN530.CopyFiles            = 12
DefaultDestDir              = 11        ; LDID_SYS
;DCN530.ndis5.CopyFiles      = 11
;DCN530.inf.CopyFiles        = 17        ; INF
;DCN530.DelFiles             = 17

;;****************************************************************************
;; Source Files
;;****************************************************************************
[SourceDisksNames]
;52="DigitalChina DCN-530TX Fast Ethernet Adapter Driver Diskette","",0
1=%DISKNAME%,,,

[SourceDisksFiles]
DCN530N5.sys=1
NETDC530.INF=1
;ACC5251.dll=1

;;****************************************************************************
;; Strings
;;****************************************************************************
[Strings]
;Msft                      = "Microsoft"
DCN                    = "Digitalchina Networks Limited"

DISKNAME = "DigitalChina DCN-530TX Fast Ethernet Adapter Driver Diskette"

DCN530T.DeviceDesc      = "DigitalChina DCN-530TX Fast Ethernet Adapter"
DCN530.Service.DispName = "DigitalChina DCN-530TX Fast Ethernet Adapter Windows Driver"
