; /////////////////////////////////////////////////////////////////////////////
; UBFWNET.INF
;
; 1394 Emulation Adapter
;
; (c) Copyright 2000-2011, Unibrain
;
; Inf for 2000/XP/2003
;
;
; /////////////////////////////////////////////////////////////////////////////

[version]
Signature   = "$Chicago$"
Compatible  = 1
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Unibrain%
DriverVer=08/24/2011,5.80

[Manufacturer]
%Unibrain% = Unibrain

; All enumerated adapters must be excluded from select
[ControlFlags]


[Unibrain]
; DisplayName		Section       	DeviceID
; -----------           -------       	--------
;%UBFWNET.DeviceDesc%	= UBFWNET.ndi,	UB_FIRENET
%UBFWNET.DeviceDesc%	= UBFWNET.ndi,	UB1394\Unibrain&1394_PC


; /////////////////////////////////////////////////////////////////////////////
; NT main sections
; 
; These sections are in the form of <base section name>.NT
; They will only be processed if we are installing on NT
; Once this section is found by the class installer, the
; <base section name> section (w/o .NT) will not be processed.
; This allows us to keep Win9x specific install sections as 
; <base section name>
;

; Unibrain 1394 FireNet Adapter 
;
[UBFWNET.ndi.NT]
AddReg          = ubfwnet.nt.reg, ubfwnet.reg
BusType         = 0	; No Bus
Characteristics = 0x84  ; NCF_HAS_UI | NCF_PHYSICAL
CopyFiles 	= ubfwnet.CopyFiles

; /////////////////////////////////////////////////////////////////////////////
; Win9x main sections
;
[UBFWNET.ndi]
AddReg    = ubfwnet.id.reg, ubfwnet.reg, ubfwnet.win.reg, UBFWNetFlags.reg, ubfwnetdrv.win.reg
DeviceID  = "UB_FIRENET"


; /////////////////////////////////////////////////////////////////////////////
; Win9x id registry sections
;
[ubfwnet.id.reg]
HKR, Ndi, DeviceID, 0, "UB_FIRENET"


; /////////////////////////////////////////////////////////////////////////////
; Win9x flags section
;
; NT do not need these Flags, so they are Win9x specific
;
[UBFWNetFlags.reg]
HKR, Ndi\params\Speed,		flag, 1, 30,00,00,00
HKR, Ndi\params\Emulation,	flag, 1, 30,00,00,00
HKR, Ndi\params\MultipleTx,	flag, 1, 30,00,00,00
HKR, Ndi\params\Retries,	flag, 1, 30,00,00,00
HKR, Ndi\params\MaxPayload,	flag, 1, 30,00,00,00


; /////////////////////////////////////////////////////////////////////////////
; UBFWNet common
;
; Common registry settings, used by both WinNT and Win9x
;
[ubfwnet.reg]
; Emulation settings
HKR, Ndi\params\Emulation,		ParamDesc, 	0,	"%Emulation%"
HKR, Ndi\params\Emulation,		default,	0,	"Ethernet"
HKR, Ndi\params\Emulation,		type,		0,	"enum"
HKR, Ndi\params\Emulation\enum,		0,		0,	"Ethernet"
;HKR, Ndi\params\Emulation\enum, 	1,		0,	"IPv4 over 1394"

; MaxPayload settings
HKR, Ndi\params\MaxPayload,		ParamDesc,	0,	"%MaxPayload%"
HKR, Ndi\params\MaxPayload,		default,	0,	"0"
HKR, Ndi\params\MaxPayload,		type,		0, 	"enum"
HKR, Ndi\params\MaxPayload\enum,	0,		0,	"%Automatic%"
HKR, Ndi\params\MaxPayload\enum,	1,		0,	"%EthernetPktSize%"
HKR, Ndi\params\MaxPayload\enum,	100,		0,	"256 bytes"
HKR, Ndi\params\MaxPayload\enum,	200,		0,	"512 bytes"
HKR, Ndi\params\MaxPayload\enum,	300,		0,	"768 bytes"
HKR, Ndi\params\MaxPayload\enum,	400,		0,	"1024 bytes"
HKR, Ndi\params\MaxPayload\enum,	500,		0,	"1280 bytes"
HKR, Ndi\params\MaxPayload\enum,	600,		0,	"1536 bytes"
HKR, Ndi\params\MaxPayload\enum,	700,		0,	"1792 bytes"
HKR, Ndi\params\MaxPayload\enum,	800,		0,	"2048 bytes"
HKR, Ndi\params\MaxPayload\enum,	C00,		0,	"3072 bytes"
HKR, Ndi\params\MaxPayload\enum,	1000,		0,	"4096 bytes"

; Speed settings
HKR, Ndi\params\Speed,			ParamDesc,	0,	"%Speed%"
HKR, Ndi\params\Speed,			default,	0,	"0"
HKR, Ndi\params\Speed,			type,		0, 	"enum"
HKR, Ndi\params\Speed\enum,		0,		0,	"%Automatic%"
HKR, Ndi\params\Speed\enum,		1,		0,	"100 Mb/sec"
HKR, Ndi\params\Speed\enum,		2,		0,	"200 Mb/sec"
HKR, Ndi\params\Speed\enum,		4,		0,	"400 Mb/sec"
HKR, Ndi\params\Speed\enum,		8,		0,	"800 Mb/sec"
HKR, Ndi\params\Speed\enum,		10,		0,	"1600 Mb/sec"
HKR, Ndi\params\Speed\enum,		20,		0,	"3200 Mb/sec"

; MultipleTx settings
HKR, Ndi\params\MultipleTx,		ParamDesc,	0,	"%MultipleTx%"
HKR, Ndi\params\MultipleTx,		default,	0,	"1"
HKR, Ndi\params\MultipleTx,		type,		0, 	"enum"
HKR, Ndi\params\MultipleTx\enum,	0,		0,	"%Disable%"
HKR, Ndi\params\MultipleTx\enum,	1,		0,	"%Enable%"

; Retries settings
HKR, Ndi\params\Retries,		ParamDesc,	0,	"%Retries%"
HKR, Ndi\params\Retries,		default,	0,	"0"
HKR, Ndi\params\Retries,		type,		0, 	"int"
HKR, Ndi\params\Retries,		min,		0,	"0"
HKR, Ndi\params\Retries,		max,		0,	"16"
HKR, Ndi\params\Retries,		step,		0,	"1"
HKR, Ndi\params\Retries,		base,		0,	"10"


; /////////////////////////////////////////////////////////////////////////////
; UBFWNet Win9x specific
;
[ubfwnet.win.reg]
HKR, Ndi\Interfaces,            DefUpper,   0, "ndis3"
HKR, Ndi\Interfaces,            DefLower,   0, "ethernet"
HKR, Ndi\Interfaces,            UpperRange, 0, "ndis3"
HKR, Ndi\Interfaces,            LowerRange, 0, "ethernet"


; /////////////////////////////////////////////////////////////////////////////
; UBFWNet NT specific
;
[ubfwnet.nt.reg]
HKR, Ndi,                       Service,    0, "UBFWNet"
;HKR, ,                          BusType,    0, "0"
HKR, Ndi\Interfaces,            DefUpper,   0, "ndis5"
HKR, Ndi\Interfaces,            DefLower,   0, "ethernet"
HKR, Ndi\Interfaces,            UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces,            LowerRange, 0, "ethernet"



; The services section name is based on the install
; section name found. "ubfwnet.Install" is listed but
; since "ubfwnet.Install.NT" will be found on NT, the
; Services section must be based on the new name
; "ubfwnet.Install.NT".
;
[ubfwnet.ndi.NT.Services]
AddService = UBFWNet, 2, ubfwnet.Service, common.EventLog

[ubfwnet.CopyFiles]
ubfwnet.sys,,,2 ; Do not allow the user to skip this file!

[ubfwnet.Service]
DisplayName     = %ubfwnet.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ubfwnet.sys
LoadOrderGroup  = NDIS
Dependencies	= "+UB1394 Miniport"

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

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


; /////////////////////////////////////////////////////////////////////////////
; ubfwnet Driver Win9x specific
;
[ubfwnetdrv.win.reg]
HKR, ,              DevLoader,          0, "*ndis"
HKR, ,              DeviceVxDs,         0, "ubfwnet.sys"
HKR, ,              EnumPropPages,      0, "netdi.dll,EnumPropPages"

HKR, NDIS,          LogDriverName,      0, "UBFWNet"
HKR, NDIS,          MajorNdisVersion,   1, 03
HKR, NDIS,          MinorNdisVersion,   1, 0A

HKR, Ndi\Install,   ndis3,              0, "ubfwnet.ndis3.install"


[ubfwnet.ndis3.install]
CopyFiles = ubfwnet.ndis3.CopyFiles

[ubfwnet.ndis3.CopyFiles]
ubfwnet.sys,,,2  ; Do not allow the user to skip this file!



; /////////////////////////////////////////////////////////////////////////////
; DestinationDirs
;
[DestinationDirs]
ubfwnet.CopyFiles  = 12
ubfwnet.ndis3.CopyFiles = 11

[SourceDisksNames]
1=%DiskID%,"UBFWNet.sys",0

[SourceDisksFiles]
UBFWNet.sys = 1

[Strings]
Unibrain  = "Unibrain"

Speed = "Speed"
Automatic = "Automatic"
Emulation = "Emulation"
MultipleTx = "MultipleTX"
Enable = "Enable"
Disable = "Disable"
Retries = "Retries"
MaxPayload = "Maximum Payload"
EthernetPktSize = "Ethernet Packet Size"

UBFWNet.DeviceDesc = "Unibrain 1394 FireNet Adapter"
ubfwnet.Service.DispName  = "Unibrain 1394 FireNet Adapter NT Driver"
DiskID = "Unibrain FireNet Install Disk"
