;/*++
;
;Copyright (c) 1984-2012 Sangoma Technologies All rights Reserved
;
;Module Name:
;   sprotocol.inf
;
;Author:
;	David Rokhvarg <davidr@sangoma.com>
;
;Description:
;   Inf File for installing Sangoma WAN Protocol driver on Windows XP/2003/2008/7.
;
;--*/

[Version]
Signature	= "$Windows NT$"
class		= SANGOMA_ADAPTER
classGUID	= {680D0063-63ED-4e66-A2CC-6F54CB331CF5}
Provider	= %V_Sangoma%
DriverVer   = 10/25/2016, 7.0.20.6

CatalogFile.ntx86=sprotocol.ntx86.cat
CatalogFile.NTamd64=sprotocol.ntX64.cat

[DestinationDirs]
DefaultDestDir	    = 12
Drivers_Dir         = 12 ;system32\drivers
system32.CopyFiles	= 11 ;system32

[ClassInstall32.ntx86]
Addreg=SangomaAdapterClassReg     

[ClassInstall32.ntamd64]
Addreg=SangomaAdapterClassReg     

[SangomaAdapterClassReg]
HKR,,,0,%ClassName%

[SourceDisksNames.x86]
1 = %DiskId1%,,,""
2 = %DiskId1%,,,\x86

[SourceDisksNames.amd64]
1 = %DiskId1%,,,""
2 = %DiskId1%,,,\x64

[SourceDisksFiles]
sprotocol.sys   = 2,,
sprotocol.dll   = 2,,
sprotocol.hlp	= 1,,

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%V_Sangoma%=Sangoma,NTx86,NTamd64

[Sangoma.NTx86]
%SangomaProtocolDrv.DeviceDesc%=SangomaProtocolDrv, SangomaAdapter\AFT_IFACE

[Sangoma.NTamd64]
%SangomaProtocolDrv.DeviceDesc%=SangomaProtocolDrv, SangomaAdapter\AFT_IFACE

[SangomaProtocolDrv.NT]
Characteristics	= 0x81 ; NCF_VIRTUAL | NCF_HAS_UI
AddReg		    = sang_virtual_if_enum.reg.Common
CopyFiles		= Drivers_Dir, system32.CopyFiles
BusType			= 15	; PNPBus

[SangomaProtocolDrv.NT.Services]
AddService = sprotocol, %SPSVCINST_ASSOCSERVICE%, sprotocol_Service_Inst

[sang_virtual_if_enum.reg.Common]
HKR, , DeviceName,		0,	"\Device\sprotocol"
HKR, , EnumPropPages32,	,	"sprotocol.dll,EnumPropPages"
HKR, , Icon,			,	"0"

;***************************************
; Global Driver default configuration
;
; Protocol. Used by sprotocol.dll for displaing default Protocol
HKR, , Protocol,		0, "10"	; WANCONFIG_NONE - Default is NO Protocol.
								; The "protocol.dll" will be used to change
								; it to one of other 'config_id' values in wanpipe_cfg.h.
								; Only LIP layer protocols supported by this driver,
								; all other (like HDLC and Bit Streaming) implemented
								; by Hardware Abstraction layer.

HKR, , LogErrors,  0, "1"      ; Log errors or not

HKR, , SerialNumbersRange,  0, "0"; For the first time start use, driver 
								  ; will change it when device starts.
								  ; Not configurable, internal use only


;**************************************************************************************
;CHDLC default values
;global protocol settings:
HKR, , chdlc_transmit_keepalive_timer,	0, "10"
HKR, , chdlc_keepalive_error_tolerance,	0, "5"
;per-interface settings:
;configuration of the one-and-only CHDLC interface:
HKR, , chdlc_usedby,					0, "0"; default mode is WANPIPE

;**************************************************************************************
;PPP default values
HKR, , ppp_ip_mode,			0, "0"	;WANOPT_PPP_STATIC	- the only one supported for now
HKR, , ppp_authentication,	0, "0"	; no authentication, 1 - PAP, 2 - CHAP
HKR, , ppp_user_id,			0, "user_id"
HKR, , ppp_password,		0, "password"
HKR, , ppp_system_name,		0, "system_name"
HKR, , ppp_transmit_keepalive_timer,	0, "5"
HKR, , ppp_keepalive_error_tolerance,	0, "5"
HKR, , ppp_pp_timer,					0, "10"	;timer used for PPP link establishment

;per-interface settings:
;configuration of the one-and-only PPP interface:
HKR, , ppp_usedby,		0, "0"; default mode is WANPIPE

;**************************************************************************************
;Frame Relay default values
;global protocol settings:
HKR, , fr_station,	     0, "0"		;CPE
HKR, , fr_signalling,    0, "1"		;ANSI signalling, 0-is Auto signalling - fix in sprotocol.dll!!!
HKR, , fr_t391,          0, "10"
HKR, , fr_t392,          0, "16"
HKR, , fr_n391,          0, "6"
HKR, , fr_n392,          0, "3"
HKR, , fr_n393,          0, "4"
HKR, , fr_auto_dlci,		0, "1"		;enable
HKR, , fr_number_of_dlcis,	0, "0"
;------------------------------------------------------------------------------
;per-interface settings:
;configuration of the 'auto' dlci:
HKR, , fr_dlci0,					0, "0";this is 'dlci number' (from 16 to 1022)
										  ;0 is reserved for the Auto dlci. 
										  	
HKR, , fr_usedby_dlci0,				0, "0"; default mode is WANPIPE

HKR, , fr_restrict_tx_data_rate_dlci0,			0, "0"	;not supported for now
HKR, , fr_cir_check_on_rx_frames_dlci0,			0, "0"	;not supported for now
HKR, , fr_reject_write_if_be_bc_exceeded_dlci0,	0, "0"	;not supported for now

HKR, , fr_cir_fwd_dlci0,0, "64"	;not supported for now
HKR, , fr_bc_fwd_dlci0,	0, "64"	;not supported for now
HKR, , fr_be_fwd_dlci0,	0,	"1"	;not supported for now

HKR, , fr_cir_bwd_dlci0,0, "64"	;not supported for now
HKR, , fr_bc_bwd_dlci0,	0, "64"	;not supported for now
HKR, , fr_be_bwd_dlci0,	0,	"1"	;not supported for now

;not supported for now:
HKR, , fr_fr_config_bits_dlci0, 0, "9"; no Tx CIR check, no BC_FWD and BE_FWD check
;end of configuration of the 'auto' dlci.
;------------------------------------------------------------------------------

;**************************************************************************************
;LAPD/LAPB default values

HKR, , lapb_station,	0, "0"	;WANOPT_DTE
HKR, , lapb_t1,			0, "2"
HKR, , lapb_t2,			0, "1"
HKR, , lapb_t3,			0, "6"
HKR, , lapb_t4,			0, "3"
HKR, , lapb_n2,			0, "5"
HKR, , lapb_mode,		0, "128"
HKR, , lapb_window,		0, "7"
HKR, , lapb_max_packet_size,	0, "1024"

;per-interface settings:
;configuration of the one-and-only LAPD/LAPB interface:
HKR, , lapb_usedby,		0, "1"; default mode is API
;**************************************************************************************

[sprotocol_Service_Inst]
DisplayName    = %sprotocol.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\sprotocol.sys
LoadOrderGroup = Extended Base

[Drivers_Dir]
sprotocol.sys

[system32.CopyFiles]
sprotocol.dll
sprotocol.hlp

[Strings]
SPSVCINST_ASSOCSERVICE	= 0x00000002
V_Sangoma				= "Sangoma Technologies"
DiskId1					= "Sangoma Installation Disk"
SangomaProtocolDrv.DeviceDesc  = "   Sangoma WAN Protocol Driver"
sprotocol.SVCDESC		= "Sangoma WAN Protocol Driver"
ClassName				= "Sangoma Communications Devices"
