阅读:1454回复:2
究竟这个INF有什么问题?居然得不到中断号!
我们公司有一块PCMCIA的卡,在WIN2K下,安装INF文件正常,系统要求重新启动,重启后发现可以得到COM口,就是没有分配到资源,得不到中断号。
[Version] Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%elan% DriverVer=11/11/2003,1.17.0.0 ;CatalogFile=ElanPorts.cat [Manufacturer] %elan%=elan_comport_cards [ControlFlags] ExcludeFromSelect = * [elan_comport_cards] ;single port RS232 compact flash %Elan-CF232.DeviceDesc% = ComPort, "PCMCIAELAN_DIGITAL_SYSTEMS_LTD__C2000.-SERIAL_CARD:_CF232-FA4E", "PCMCIAELAN_DIGITAL_SYSTEMS_LTD__C2000.-SERIAL_CARD:_CF232-015D-4C45" ;rev1.00 %Elan-CF232.DeviceDesc% = ComPort, "PCMCIAELAN_DIGITAL_SYSTEMS_LTD__C2000.-SERIAL_CARD:_CF232-79A4", "PCMCIAELAN_DIGITAL_SYSTEMS_LTD__C2000.-SERIAL_CARD:_CF232-015D-4C45" ;rev2.00 %Elan-CF232.DeviceDesc% = ComPort, "PCMCIAELAN-SERIAL_PORT:_CF232-C340", "ELAN-SERIAL_PORT:_CF232-015D-4C45" ;rev2.00 with shorter name for CE %IOData-RSACF1.DeviceDesc% = ComPort, "PCMCIAIO_DATA-RSACF1-A11B", "IO_DATA-RSACF1-015D-4C45" ;custom devices %Mitutoyo-MUX-AM_PCMCIA.DeviceDesc% = ComPort, "PCMCIAMITUTOYO-MUX-AM_PCMCIA-C113","PCMCIAMITUTOYO-015D-4C45" ; Install class "Ports" ;---------------------------------------------------------- [ClassInstall] AddReg=PortsClass.AddReg [PortsClass.AddReg] HKR,,,,%PortsClassName% [ClassInstall32] AddReg=PortsClass.NT.AddReg [PortsClass.NT.AddReg] HKR,,,,%PortsClassName% HKR,,Icon,,"-23" HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller" [ComPort.NT] ;CopyFiles=ComPort.NT.Copy ;RenFiles=PortRenfiles ;DelFiles=PortDelfiles AddReg=ComPort.AddReg, ComPort.NT.AddReg SyssetupPnPFlags = 1 [ComPort.NT.HW] AddReg=ComPort.NT.HW.AddReg [ChildComPort.NT] ;CopyFiles=ComPort.NT.Copy ;RenFiles=PortRenfiles ;DelFiles=PortDelfiles AddReg=ComPort.AddReg, ComPort.NT.AddReg SyssetupPnPFlags = 1 [ChildComPort.NT.HW] AddReg=ComPort.NT.HW.AddReg [ComPort.NT.Copy] serial.sys serenum.sys [ComPort.NT.AddReg] HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" [ComPort.NT.HW.AddReg] HKR,,"UpperFilters",0x00010000,"serenum" HKR,,ForceFifoEnable,0x00010003,0x00000001 HKR,,"EnablePowerManagement",0x00010003,0x00000000 ;HKR,,ClockRate, 0x10003, 1843200 HKLM,"SystemCurrentControlSetServicesPCMCIAParameters", DisableIsaToPciRouting, %FLG_ADDREG_TYPE_DWORD%, 1 [ComPort.NT.Services] AddService = Serial, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst AddService = Serenum,,Serenum_Service_Inst [ComPort.NT.LogConfigOverride] LogConfig=ComPortConfigurationOverride [ComPortConfigurationOverride] ConfigPriority=NORMAL IOConfig = 8@0-FFFF%FFF8 IRQConfig = 3,4,5,6,7,9,10,11,12,13,14,15 PcCardConfig=45 [ChildComPort.NT.Services] AddService = Serial, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst AddService = Serenum,,Serenum_Service_Inst [Serial_Service_Inst] DisplayName = %Serial.SVCDESC% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_SYSTEM_START% ;StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_IGNORE% ServiceBinary = %12%serial.sys LoadOrderGroup = Extended base [Serenum_Service_Inst] DisplayName = %Serenum.SVCDESC% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_NORMAL% ServiceBinary = %12%serenum.sys LoadOrderGroup = PNP Filter [Serial_EventLog_Inst] AddReg = Serial_EventLog_AddReg [Serial_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%System32IoLogMsg.dll;%%SystemRoot%%System32driv ersserial.sys" HKR,,TypesSupported,0x00010001,7 [ChildLptPort.NT] ;CopyFiles=LptPort.NT.Copy ;RenFiles=PortRenfiles ;DelFiles=PortDelfiles AddReg=LptPort.NT.AddReg [LptPort.NT.Copy] parport.sys ;lptenm.sys [LptPort.NT.AddReg] HKR,,PortSubClass,1,00 HKR,,ECPDevice,1,00 HKR,,EnumPropPages32,,"MsPorts.dll,ParallelPortPropPageProvider" [ChildLptPort.NT.Services] AddService = Parport, 0x00000002, Lpt_Service_Inst, Lpt_EventLog_Inst ;AddService = lptenm, 0x00000002, Lptenm_Service_Inst [Lpt_Service_Inst] DisplayName = %Parport.SVCDESC% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_SYSTEM_START% ;StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_IGNORE% ServiceBinary = %12%parport.sys LoadOrderGroup = Parallel arbitrator ;[Lptenm_Service_Inst] ;DisplayName = "LptEnm" ;ServiceType = %SERVICE_KERNEL_DRIVER% ;StartType = %SERVICE_BOOT_START% ;ErrorControl = %SERVICE_ERROR_IGNORE% ;ServiceBinary = %12%lptenm.sys ;LoadOrderGroup = System Bus Extender [Lpt_EventLog_Inst] AddReg = Lpt_EventLog_AddReg [Lpt_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%System32IoLogMsg.dll;%%SystemRoot%%System32driv ersparport.sys" HKR,,TypesSupported,0x00010001,7 [SourceDisksNames] 1 = %WIN9XDISK%,,, [SourceDisksNames.x86] 1 = %WINNTDISK%,,, [SourceDisksFiles] lpt.vxd = 1 lptenum.vxd = 1 lptenm.vxd = 1 serial.vxd = 1 serialui.dll = 1 [SourceDisksFiles.x86] parport.sys = 1 ;lptenm.sys = 1 serial.sys = 1 serenum.sys = 1 ;[PortRenfiles] ;mf.inf, mf.old ;[PortDelfiles] ;mf.pnf [DestinationDirs] DefaultDestDir=12 ;PortRenfiles=17 ;PortDelfiles=17 LptPort.NT.Copy=12 ComPort.NT.Copy=12 LptPort.W95.Copy=11 ComPort.W95.Copy=11 [Strings] WIN9XDISK = "Navigate to the c:windowssystem folder" WINNTDISK = "Navigate to the <windir>system32drivers folder" SPSVCINST_TAGTOFRONT = 0x00000001 SPSVCINST_ASSOCSERVICE= 0x00000002 FLG_ADDREG_TYPE_DWORD = 0x00010001 SERVICE_KERNEL_DRIVER = 1 SERVICE_BOOT_START = 0 SERVICE_SYSTEM_START = 1 SERVICE_DEMAND_START = 3 SERVICE_ERROR_IGNORE = 0 SERVICE_ERROR_NORMAL = 1 elan = "Elan Digital Systems Ltd" Serial.SVCDESC = "Serial port driver" Serenum.SVCDESC = "Serenum port driver" Parport.SVCDESC = "Parallel port driver" Elan-CF232.DeviceDesc="Elan CF232 CF+ Card (RS232 Serial Port)" Mitutoyo-MUX-AM_PCMCIA.DeviceDesc="Mitutoyo MUX-AM PCMCIA" IOData-RSACF1.DeviceDesc="IO DATA RSACF1" |
|
沙发#
发布于:2004-03-26 17:11
即插即用的卡是硬件请求资源的,会不会是卡本来就没用中断。其他的资源怎样?
|
|
|
板凳#
发布于:2004-03-26 17:33
设备管理器里,该设备异常,在属性的资源设置:
因为该设备有问题,设备没有使用任何资源。 点“手动配置”,看到输入/输出范围和中断请求都是?。 可以手动为其配置。 配置后,设备管理器显示正常。 |
|