;---------------------------------------------------------------------------
; NETAHMV2.INF
;       CentreCOM (R) LA100-PCM-T V2 Fast Ethernet LAN Card.
;       for Windows 2000 & Windows98
;
; Copyright(c) 1999,2000, Allied Telesis K.K. All rights reserved.
;
; History:
;       2000/01/01 Ver 1.0 Pl 0 1st release.
;       2000/05/18 Ver 2.0 Pl 0 Supported H/W Rev.D1
;---------------------------------------------------------------------------

[Version]
;Layoutfile parameter is reserved for internal Microsoft use only
;LayoutFile  = layout.inf
Signature   = "$Chicago$"
Compatible  = 1
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %V_ATK%
;Provider    = %Msft%                     ;; for WHQL certified
;CatalogFile = NETAHMV2.cat               ;; for WHQL certified
DriverVer   = 05/18/2000,5.100.0209.2000

[Manufacturer]
%V_ATK% = ATKK

[ControlFlags]
; Hidden from list of installable device.
ExcludeFromSelect = PCMCIA\Allied_Telesis__K.K.-CentreCOM_LA100-PCM-T_V2_100/10M_LAN_PC_Card-7F6C,PCMCIA\Allied_Telesis_K.K.-LA100-PCM_V2-E4D6

[ATKK]
; DisplayName          Section        DeviceID
; -----------          -------        --------
; LA100-PCM-T V2 R1
%LAHPCM2.DeviceDesc% = LAHPCM2.ndi,   PCMCIA\Allied_Telesis__K.K.-CentreCOM_LA100-PCM-T_V2_100/10M_LAN_PC_Card-7F6C
; LA100-PCM-T V2 R2
%LAHPCM2.DeviceDesc% = LAHPCM2R2.ndi, PCMCIA\Allied_Telesis_K.K.-LA100-PCM_V2-E4D6

;***************************************************************************
; Win9x Section main
;***************************************************************************

[LAHPCM2.ndi]
AddReg     = LAHPCM2.ndi.reg, LAHPCM2.win.reg, WinDefault.reg, DefaultP.reg, BasicP.reg, DefaultF.reg
DeviceID   = "PCMCIA\Allied_Telesis__K.K.-CentreCOM_LA100-PCM-T_V2_100/10M_LAN_PC_Card-7F6C"
LogConfig  = LAHPCM2.LogConfig

[LAHPCM2R2.ndi]
AddReg     = LAHPCM2R2.ndi.reg, LAHPCM2.win.reg, WinDefaultR2.reg, DefaultP.reg, BasicPR2.reg, DefaultF.reg
DeviceID   = "PCMCIA\Allied_Telesis_K.K.-LA100-PCM_V2-E4D6"
LogConfig  = LAHPCM2.LogConfig

;***************************************************************************
; Win2000 Section main
;***************************************************************************

[LAHPCM2.ndi.NT]
Characteristics = 0x4
BusType         = 8
AddReg          = LAHPCM2.reg, DefaultP.reg, BasicP.reg
CopyFiles       = LAHPCM2.CopyFiles

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

[LAHPCM2R2.ndi.NT]
Characteristics = 0x4
BusType         = 8
AddReg          = LAHPCM2.reg, DefaultP.reg, BasicPR2.reg
CopyFiles       = LAHPCM2.CopyFiles

[LAHPCM2R2.ndi.NT.Services]
AddService = LAHPCM2, 2, LAHPCM2.Service, LAHPCM2.EventLog

;****************************************************************************
; Win9x id registory sections
;****************************************************************************
; These are not needed by NT
[LAHPCM2.ndi.reg]
HKR, Ndi, DeviceID, 0, "PCMCIA\Allied_Telesis__K.K.-CentreCOM_LA100-PCM-T_V2_100/10M_LAN_PC_Card-7F6C"
HKR, Ndi, CardType, 0, "PCMCIA"

[LAHPCM2R2.ndi.reg]
HKR, Ndi, DeviceID, 0, "PCMCIA\Allied_Telesis_K.K.-LA100-PCM_V2-E4D6"
HKR, Ndi, CardType, 0, "PCMCIA"

;****************************************************************************
; Win9x LogConfig sections
;****************************************************************************
; These are not needed by NT
[LAHPCM2.LogConfig]
ConfigPriority=HARDRECONFIG
IRQConfig=3,4,5,9,10,11,15
IOConfig=20@200-3FF%FFE0(3FF::)

;****************************************************************************
; Win9x Default & Override sections
;****************************************************************************
; Flags are not needed by NT
[WinDefault.reg]
HKR, ,InterruptNumber,                     1, 04, 00, 00, 00
HKR, ,IOBaseAddress,                       1, 02, 00, 00, 00
HKR, NDI\params\InterruptNumber,resc,      1, 04, 00, 00, 00
HKR, NDI\params\InterruptNumber,ParamDesc, 0, "Interrupt Level"
HKR, NDI\params\InterruptNumber,flag,      1, 60, 00, 00, 00
HKR, NDI\params\IOBaseAddress,resc,        1, 02, 00, 00, 00
HKR, NDI\params\IOBaseAddress,ParamDesc,   0, "I/O Base Address"
HKR, NDI\params\IOBaseAddress,flag,        1, 20, 00, 00, 00

;Override
HKR, Override,0000,1, \
00,04,00,00, \
;
; PRIORITY
;
00,00,00,00, \
;
; I/O Resource Descriptor 0: LAN port
;
24,00,00,00, \ ; Total length of I/O Resource Descriptor
02,00,00,00, \ ; ResType_IO = 0x00000002
01,00, \       ; IOD_Count;
0C,00, \       ; IOD_Type;         // IOType_Range = 0x000C
00,00, \       ; IOD_Alloc_Base;
00,00, \       ; IOD_Alloc_End;
00,00, \       ; IOD_DesFlags;
00, \          ; IOD_Alloc_Alias;
00, \          ; IOD_Alloc_Decode;
E0,FF, \       ; IOR_Align;        // Mask for base alignment E0/F0
20,00, \       ; IOR_nPorts;       // Number of ports, pony=10
00,02, \       ; IOR_Min;          // Min port address
FF,03, \       ; IOR_Max;          // Max port address
00,00, \       ; IOR_RangeFlags;   // Flags
00, \          ; IOR_Alias;        // Alias offset
00, \          ; IOR_Decode;       // Address specified
40,00,00,00, \ ; PCCARD flags, 0x40 = 16-bit port
;
; IRQ Resource Descriptor
;
14,00,00,00, \ ; Total length of IRQ Resource Descriptor
04,00,00,00, \ ; ResType_IRQ = 0x00000004
00,00, \       ; IRQD_Flags;
00,00, \       ; IRQD_Alloc_Num;   // Allocated IRQ number
FF,FF, \       ; IRQD_Req_Mask;    // Mask of possible IRQs
00,00, \       ; IRQD_Reserved;
20,00,00,00, \ ; PCCARD flags, 0x20 = Level mode interrupts
;
; REQUEST_CONFIG_PKT Descriptor
;
19,00,00,00, \ ; Total length of REQUEST_CONFIG_PKT Descriptor
7C,89,00,00, \ ; (ResType_Ignored_Bit + PCCARD_DEVICE_ID) = 0x897C
00,00, \       ; Socket;
02,00, \       ; Attributes;
32, \          ; Vcc;
32, \          ; Vpp1; 78
32, \          ; Vpp2; 78
02, \          ; IntType;
00,04,00,00, \ ; ConfigBase;
00, \          ; Status;
00, \          ; Pin;
00, \          ; Copy;
01, \          ; ConfigIndex;
03, \          ; Present;
;
; TERMINATOR
;
00,00,00,00

[WinDefaultR2.reg]
HKR, ,InterruptNumber,                     1, 04, 00, 00, 00
HKR, ,IOBaseAddress,                       1, 02, 00, 00, 00
HKR, NDI\params\InterruptNumber,resc,      1, 04, 00, 00, 00
HKR, NDI\params\InterruptNumber,ParamDesc, 0, "Interrupt Level"
HKR, NDI\params\InterruptNumber,flag,      1, 60, 00, 00, 00
HKR, NDI\params\IOBaseAddress,resc,        1, 02, 00, 00, 00
HKR, NDI\params\IOBaseAddress,ParamDesc,   0, "I/O Base Address"
HKR, NDI\params\IOBaseAddress,flag,        1, 20, 00, 00, 00

;Override
HKR, Override,0000,1, \
00,04,00,00, \
;
; PRIORITY
;
00,00,00,00, \
;
; I/O Resource Descriptor 0: LAN port
;
24,00,00,00, \ ; Total length of I/O Resource Descriptor
02,00,00,00, \ ; ResType_IO = 0x00000002
01,00, \       ; IOD_Count;
0C,00, \       ; IOD_Type;         // IOType_Range = 0x000C
00,00, \       ; IOD_Alloc_Base;
00,00, \       ; IOD_Alloc_End;
00,00, \       ; IOD_DesFlags;
00, \          ; IOD_Alloc_Alias;
00, \          ; IOD_Alloc_Decode;
E0,FF, \       ; IOR_Align;        // Mask for base alignment E0/F0
20,00, \       ; IOR_nPorts;       // Number of ports, pony=10
00,01, \       ; IOR_Min;          // Min port address
FF,03, \       ; IOR_Max;          // Max port address
00,00, \       ; IOR_RangeFlags;   // Flags
00, \          ; IOR_Alias;        // Alias offset
00, \          ; IOR_Decode;       // Address specified
40,00,00,00, \ ; PCCARD flags, 0x40 = 16-bit port
;
; IRQ Resource Descriptor
;
14,00,00,00, \ ; Total length of IRQ Resource Descriptor
04,00,00,00, \ ; ResType_IRQ = 0x00000004
00,00, \       ; IRQD_Flags;
00,00, \       ; IRQD_Alloc_Num;   // Allocated IRQ number
FF,FF, \       ; IRQD_Req_Mask;    // Mask of possible IRQs
00,00, \       ; IRQD_Reserved;
20,00,00,00, \ ; PCCARD flags, 0x20 = Level mode interrupts
;
; REQUEST_CONFIG_PKT Descriptor
;
19,00,00,00, \ ; Total length of REQUEST_CONFIG_PKT Descriptor
7C,89,00,00, \ ; (ResType_Ignored_Bit + PCCARD_DEVICE_ID) = 0x897C
00,00, \       ; Socket;
02,00, \       ; Attributes;
32, \          ; Vcc;
32, \          ; Vpp1; 78
32, \          ; Vpp2; 78
02, \          ; IntType;
00,04,00,00, \ ; ConfigBase;
00, \          ; Status;
00, \          ; Pin;
00, \          ; Copy;
01, \          ; ConfigIndex;
03, \          ; Present;
;
; TERMINATOR
;
00,00,00,00

;****************************************************************************
; Common parameters
;****************************************************************************
; LA100-PCM-T V2 common params section
[DefaultP.reg]
HKR, ,              DelayTime,          0, 3000
HKR, ,              TransmitCounter,    0, 50

[BasicP.reg]
HKR, Ndi\params\ConnectionType,ParamDesc,    0, %ConType%
HKR, Ndi\params\ConnectionType,  default,    0, "5"
HKR, Ndi\params\ConnectionType,     type,    0, enum
HKR, Ndi\params\ConnectionType\enum, "5",    0, %Auto%
HKR, Ndi\params\ConnectionType\enum, "4",    0, %100HD%
HKR, Ndi\params\ConnectionType\enum, "2",    0, %10FD%
HKR, Ndi\params\ConnectionType\enum, "0",    0, %10HD%

;HKR, Ndi\params\NetworkAddress, ParamDesc,   0, %NETADDR%
;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

[BasicPR2.reg]
HKR, Ndi\params\ConnectionType,ParamDesc,    0, %ConType%
HKR, Ndi\params\ConnectionType,  default,    0, "5"
HKR, Ndi\params\ConnectionType,     type,    0, enum
HKR, Ndi\params\ConnectionType\enum, "5",    0, %Auto%
HKR, Ndi\params\ConnectionType\enum, "6",    0, %100FD%
HKR, Ndi\params\ConnectionType\enum, "4",    0, %100HD%
HKR, Ndi\params\ConnectionType\enum, "2",    0, %10FD%
HKR, Ndi\params\ConnectionType\enum, "0",    0, %10HD%

;HKR, Ndi\params\NetworkAddress, ParamDesc,   0, %NETADDR%
;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

;****************************************************************************
; Win9x flags sections
;****************************************************************************
; Flags are not needed by NT
[DefaultF.reg]
HKR, NDI\params\ConnectionType,   flag, 1, 20, 00, 00, 00
;HKR, NDI\Params\NetworkAddress,   flag, 1, 30, 00, 00, 00

;****************************************************************************
; Win2000 specific
;****************************************************************************

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

[LAHPCM2.Service]
DisplayName     =  %LAHPCM2.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   =  %12%\LAHPCM25.sys
LoadOrderGroup  =  NDIS
AddReg          =  TextModeFlags.reg

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

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

[TextModeFlags.reg]
HKR, , TextModeFlags, 0x00010001, 0x0001

;****************************************************************************
; Win9x specific
;****************************************************************************

[LAHPCM2.win.reg]
; key,subkey,valuname,type,value
HKR, ,              DevLoader,          0, "*ndis"
HKR, ,              DeviceVxDs,         0, "LAHPCM25.sys"
HKR, ,              EnumPropPages,      0, "netdi.dll,EnumPropPages"

; params
HKR, ,              AdapterType,        0, "2"

; Interfaces
; memphis appears to not support the ndis5 upper range, so use ndis3
HKR, Ndi\Interfaces,DefUpper,           0, "ndis3"
HKR, Ndi\Interfaces,DefLower,           0, "ethernet"
HKR, Ndi\Interfaces,UpperRange,         0, "ndis3"
HKR, Ndi\Interfaces,LowerRange,         0, "ethernet"

; NDIS Info
HKR, NDIS,          LogDriverName,      0, "LAHPCM25"
HKR, NDIS,          MajorNdisVersion,   1, 03
HKR, NDIS,          MinorNdisVersion,   1, 0A

; Install sections
HKR, Ndi\Install,   ndis3,              0, "LAHPCM2.install"

[LAHPCM2.install]
CopyFiles = LAHPCM2.win.CopyFiles, LAHPCM2.inf.CopyFiles
DelFiles  = LAHPCM2.win.DelFiles

;****************************************************************************
; Source Files (Win9x & Win2000)
;****************************************************************************

[LAHPCM2.CopyFiles]
LAHPCM25.sys,,,2

[LAHPCM2.win.CopyFiles]
LAHPCM25.sys,,,2

[LAHPCM2.inf.CopyFiles]
NETAHMV2.inf,,,2

[LAHPCM2.win.DelFiles]
NETAHMV2.inf,,,1

[SourceDisksNames]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1 = %DiskName%,,,

[SourceDisksFiles]
; filename_on_source = diskID[, [subdir][, size]]
LAHPCM25.sys = 1,, ; on distribution disk 1
NETAHMV2.inf = 1,, ;

[DestinationDirs]
LAHPCM2.CopyFiles      = 12
LAHPCM2.win.CopyFiles  = 11
LAHPCM2.inf.CopyFiles  = 17  ; INF
LAHPCM2.win.DelFiles   = 17
DefaultDestDir         = 11  ; LDID_SYS

;****************************************************************************
; Localizable Strings (Win9x & Win2000)
;****************************************************************************

[Strings]
Msft                     = "Microsoft"
V_ATK                    = "Allied Telesis"

; Source disk name
DiskName                 = "CentreCOM LA100-PCM-T V2 Driver Disk"

ConType                  = "Connection Type"
Auto                     = "Auto Sense"
100HD                    = "100BaseTx Half Duplex"
100FD                    = "100BaseTx Full Duplex"
10HD                     = "10BaseT Half Duplex"
10FD                     = "10BaseT Full Duplex"
;NETADDR                  = "Network Address"

LAHPCM2.DeviceDesc       = "Allied Telesis LA100-PCM-T V2 LAN Card"
LAHPCM2.Service.DispName = "Allied Telesis LA100-PCM-T V2 LAN Card Driver"
