;;/*********************************************************************
;;
;;  (c) Copyright 2004
;;
;;  MosChip 7830 HighSpeed USB-Ethernet Adapter Ndis-Wdm Driver
;;
;;  USBMAC64.inf: Windows-64bit (AMD) INF file for MosChip 7830 
;;  HighSpeed USB-Ethernet Adapter Driver
;;
;;*********************************************************************/

[Version]
Signature="$CHICAGO$"
Compatible=1
Class=Net
Provider=%ProviderName%
ClassGUID={4D36E972-E325-11CE-BFC1-08002BE10318}
CatalogFile=USBMAC_64.cat
DriverVer = 08/03/2009,1.44.0.0

[Manufacturer]
%MfgName%=MosChip,NTamd64  

[SourceDisksNames]
50=%DisketteDesc%,,0

[SourceDisksFiles]
USBMAC64.SYS = 50
MacUnInstAmd64.exe = 50

[DestinationDirs]
ndis5.CopyFiles   = 12

;****************************************************************************
; Exclude from select the USB device -- it should be auto-detected!
;****************************************************************************

[ControlFlags]
ExcludeFromSelect     = USB\VID_9710&PID_7830
ExcludeFromSelect     = USB\VID_9710&PID_7730

[MosChip]
%USB\VID_9710&PID_7830.DeviceDesc% = MosUsbEth, USB\VID_9710&PID_7830
%USB\VID_9710&PID_7730.DeviceDesc% = MosUsbEth, USB\VID_9710&PID_7730

[MosChip.NTamd64]
%USB\VID_9710&PID_7830.DeviceDesc% = MosUsbEth, USB\VID_9710&PID_7830
%USB\VID_9710&PID_7730.DeviceDesc% = MosUsbEth, USB\VID_9710&PID_7730


;;;;;;;;;;;;;;;;
; NT SECTION
;;;;;;;;;;;;;;;;

[MOSUsbEth.NT]
AddReg=MOSUMAC.ndi,MOSUMAC_parms.reg
Characteristics=0x84; NCF_PHYSICAL, NCF_HAS_UI
BusType=15 ;USB
CopyFiles=ndis5.CopyFiles

[MOSUsbEth.NT.Services]
AddService=MOSUMAC,2,MOSUMAC.ServiceDesc,MOSUMAC.EventLog

[ndis5.CopyFiles]
USBMAC64.SYS,,,0x2

[MOSUMAC.EventLog]
AddReg=MOSUMAC.AddEventLog

[MOSUMAC.AddEventLog]
HKR, ,EventMessageFile,  0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, ,TypeSupported,     0x00010001, 7

[MOSUMAC.ServiceDesc]
DisplayName      = %MOSUMAC.DriverDesc%
ServiceType      = 1
StartType        = 3
ErrorControl     = 1
ServiceBinary    = %12%\USBMAC64.SYS
LoadOrderGroup   = NDIS,NTKERN,NDIS

[MOSUMAC.ndi]
HKR,Ndi,                Service,         0,  "MOSUMAC"
HKR,Ndi\Interfaces,     UpperRange,      0,  "ndis5"
HKR,Ndi\Interfaces,     LowerRange,      0,  "ethernet"
HKR,,                   PlatformType,    0,  "1"

;****************************************************************************
; Device Parameters
;****************************************************************************

[MOSUMAC_parms.reg]

;Flow Control
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, %AutoMode%
HKR, Ndi\params\DuplexMode\enum, 1,         0, %10HalfMode%
HKR, Ndi\params\DuplexMode\enum, 2,         0, %10FullMode%
HKR, Ndi\params\DuplexMode\enum, 3,         0, %100HalfMode%
HKR, Ndi\params\DuplexMode\enum, 4,         0, %100FullMode%

;FPGA 
HKR, Ndi\params\FPGA,  		ParamDesc, 	0, %Version%
HKR, Ndi\params\FPGA,  		type, 		0, "enum"
HKR, Ndi\params\FPGA,   	default, 	0, "0"
HKR, Ndi\params\FPGA\enum,   	0, 		0, %ASIC%
HKR, Ndi\params\FPGA\enum,   	1, 		0, %FPGA%

;NetworkAddress
HKR, NDI\params\NetworkAddress,       ParamDesc,       0, %NetworkAddress%
HKR, NDI\params\NetworkAddress,       type,            0, "edit"
HKR, NDI\params\NetworkAddress,       LimitText,       0, "12"
HKR, NDI\params\NetworkAddress,       UpperCase,       0, "1"
HKR, NDI\params\NetworkAddress,       default,         0, " "
HKR, NDI\params\NetworkAddress,       optional,        0, "1"

;PauseFrame Enable/Disable
HKR, Ndi\params\PauseFrames,  	ParamDesc, 	0, %PauseFrames%
HKR, Ndi\params\PauseFrames,  	type, 	0, "enum"
HKR, Ndi\params\PauseFrames,   	default, 	0, "0"
HKR, Ndi\params\PauseFrames\enum,   0, 		0, %Enable%
HKR, Ndi\params\PauseFrames\enum,   1, 		0, %Disable%

;PauseThreshold Values
HKR, Ndi\params\PauseThreshold,  ParamDesc, 0, %PauseThreshold%
HKR, Ndi\params\PauseThreshold,  type,	  0, "enum"
HKR, Ndi\params\PauseThreshold,  default,   0, "0"
HKR, Ndi\params\PauseThreshold\enum,  0,   0, %1516 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  1,   0, %758 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  2,   0, %1000 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  3,   0, %1600 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  4,   0, %1650 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  5,   0, %1700 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  6,   0, %1800 WORDS%
HKR, Ndi\params\PauseThreshold\enum,  7,   0, %2000 WORDS%

;Threshold Difference Values
HKR, Ndi\params\ThresholdDifference, ParamDesc, 0, %Threshold Difference%
HKR, Ndi\params\ThresholdDifference,  type,	0, "enum"
HKR, Ndi\params\ThresholdDifference,  default,  0, "0"
HKR, Ndi\params\ThresholdDifference\enum,   0,  0, %0 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   1,  0, %128 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   2,  0, %256 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   3,  0, %384 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   4,  0, %512 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   5,  0, %640 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   6,  0, %700 WORDS%
HKR, Ndi\params\ThresholdDifference\enum,   7,  0, %758 WORDS%

;PauseTime
;HKR,Ndi\Params\PauseTime,  ParamDesc,  0, "PauseTime"
;HKR,Ndi\Params\PauseTime,  Type,       0, "int"
;HKR,Ndi\Params\PauseTime,  Default,    0, "-1"
;HKR,Ndi\Params\PauseTime,  Min,        0, "0"
;HKR,Ndi\Params\PauseTime,  Max,        0, "255"
;HKR,Ndi\Params\PauseTime,  Step,       0, "10"
;HKR,Ndi\Params\PauseTime,  Base,       0, "10"

;SetPowerDelay
HKR,Ndi\Params\SetPowerDelayInMilliSec,  ParamDesc,  0, %SetPowerDelay in MilliSec%
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Type,       0, "int"
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Default,    0, "2000"
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Min,        0, "2000"
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Max,        0, "5000"
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Step,       0, "500"
HKR,Ndi\Params\SetPowerDelayInMilliSec,  Base,       0, "10"


;TCBS
HKR,Ndi\Params\TCBS,  ParamDesc,  0, %TCBS%
HKR,Ndi\Params\TCBS,  Type,       0, "int"
HKR,Ndi\Params\TCBS,  Default,    0, "32"
HKR,Ndi\Params\TCBS,  Min,        0, "1"
HKR,Ndi\Params\TCBS,  Max,        0, "256"
HKR,Ndi\Params\TCBS,  Step,       0, "1"
HKR,Ndi\Params\TCBS,  Base,       0, "10"
HKR,Ndi\Params\TCBS,  LimitText,  0, 3


;RCBS
HKR,Ndi\Params\RCBS,  ParamDesc,  0, %RCBS%
HKR,Ndi\Params\RCBS,  Type,       0, "int"
HKR,Ndi\Params\RCBS,  Default,    0, "32"
HKR,Ndi\Params\RCBS,  Min,        0, "1"
HKR,Ndi\Params\RCBS,  Max,        0, "256"
HKR,Ndi\Params\RCBS,  Step,       0, "1"
HKR,Ndi\Params\RCBS,  Base,       0, "10"
HKR,Ndi\Params\RCBS,  LimitText,  0, 3

;MultipleIrpIn2_0 
HKR, Ndi\params\MultipleIrpIn2_0,  	ParamDesc, 	0, %MultipleIrpIn2_0%
HKR, Ndi\params\MultipleIrpIn2_0,  	type, 		0, "enum"
HKR, Ndi\params\MultipleIrpIn2_0,   	default, 	0, "1"
HKR, Ndi\params\MultipleIrpIn2_0\enum,  1,	 		0, %TRUE%
HKR, Ndi\params\MultipleIrpIn2_0\enum,  0, 			0, %FALSE%

;IPG
HKR,Ndi\Params\IPG,  ParamDesc,  0, %IPG%
HKR,Ndi\Params\IPG,  Type,       0, "int"
HKR,Ndi\Params\IPG,  Default,    0, "24"
HKR,Ndi\Params\IPG,  Min,        0, "1"
HKR,Ndi\Params\IPG,  Max,        0, "128"
HKR,Ndi\Params\IPG,  Step,       0, "1"
HKR,Ndi\Params\IPG,  Base,       0, "10"
HKR,Ndi\Params\IPG,  LimitText,  0, 3


;IPG1
HKR,Ndi\Params\IPG1,  ParamDesc,  0, %IPG1%
HKR,Ndi\Params\IPG1,  Type,       0, "int"
HKR,Ndi\Params\IPG1,  Default,    0, "16"
HKR,Ndi\Params\IPG1,  Min,        0, "1"
HKR,Ndi\Params\IPG1,  Max,        0, "128"
HKR,Ndi\Params\IPG1,  Step,       0, "1"
HKR,Ndi\Params\IPG1,  Base,       0, "10"
HKR,Ndi\Params\IPG1,  LimitText,  0,  3


;MII Mode 
HKR, Ndi\params\PHYMode,  		ParamDesc, 	0, %PHYMode%
HKR, Ndi\params\PHYMode,  		type, 		0, "enum"
HKR, Ndi\params\PHYMode,   		default, 	0, "1"
HKR, Ndi\params\PHYMode\enum,   	1, 		0, %PHY%
HKR, Ndi\params\PHYMode\enum,   	0, 		0, %MII%

;SafeRemovalIcon 
HKR, Ndi\params\SafeRemovalIcon,  		ParamDesc, 	0, %SafeRemovalIcon%
HKR, Ndi\params\SafeRemovalIcon,  		type, 		0, "enum"
HKR, Ndi\params\SafeRemovalIcon,   		default, 	0, "1"
HKR, Ndi\params\SafeRemovalIcon\enum,   	1, 		0, %SafeRemovalNeeded%
HKR, Ndi\params\SafeRemovalIcon\enum,   	0, 		0, %SafeRemovalNotNeeded%


[strings]
; Manufacturer and Provider strings
ProviderName="MosChip"
MfgName="MosChip"

; Diskette Names
DisketteDesc="USB-Ethernet Device Drivers: Windows 2000/XP"

; Devices
USB\VID_9710&PID_7830.DeviceDesc = "HighSpeed USB-Ethernet Adapter"
USB\VID_9710&PID_7730.DeviceDesc = "FullSpeed USB-Ethernet Adapter"

; Parameter Names
DebugLevel="Level for debug msgs"
DuplexMode="Link Speed/Duplex Mode"
AutoMode="AutoNegotiation"
10HalfMode="Force 10Mbps Half-Duplex"
10FullMode="Force 10Mbps Full-Duplex"
100HalfMode="Force 100Mbps Half-Duplex"
100FullMode="Force 100Mbps Full-Duplex"
MOSUMAC.DriverDesc="USB-Ethernet Driver"
MosUsbMac.DevName="USB-Ethernet Adapter Device"
Version="Version"
ASIC="ASIC"
FPGA="FPGA"
NetworkAddress="NetworkAddress"
PauseFrames="PauseFrames"
Enable="Enable"
Disable="Disable"
PauseThreshold="PauseThreshold"
1516 WORDS="1516 WORDS"
758 WORDS="758 WORDS"
1000 WORDS="1000 WORDS"
1600 WORDS="1600 WORDS"
1650 WORDS="1650 WORDS"
1700 WORDS="1700 WORDS"
1800 WORDS="1800 WORDS"
2000 WORDS="2000 WORDS"
Threshold Difference="Threshold Difference"
0 WORDS="0 WORDS"
128 WORDS="128 WORDS"
256 WORDS="256 WORDS"
384 WORDS="384 WORDS"
512 WORDS="512 WORDS"
640 WORDS="640 WORDS"
700 WORDS="700 WORDS"
SetPowerDelay in MilliSec="SetPowerDelay in MilliSec"
TCBS="TCBS"
RCBS="RCBS"
MultipleIrpIn2_0="MultipleIrpIn2_0"
TRUE="TRUE"
FALSE="FALSE"
IPG="IPG"
IPG1="IPG1"
PHYMode="PHYMode"
PHY="PHY"
MII="MII"
SafeRemovalIcon="SafeRemovalIcon"
SafeRemovalNotNeeded="SafeRemovalNotNeeded"
SafeRemovalNeeded="SafeRemovalNeeded"