qemupciserial.inf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ; qemupciserial.inf for QEMU, based on MSPORTS.INF
  2. ; The driver itself is shipped with Windows (serial.sys). This is
  3. ; just a inf file to tell windows which pci id the serial pci card
  4. ; emulated by qemu has, and to apply a name tag to it which windows
  5. ; will show in the device manager.
  6. ; Installing the driver: Go to device manager. You should find a "pci
  7. ; serial card" tagged with a yellow question mark. Open properties.
  8. ; Pick "update driver". Then "select driver manually". Pick "Ports
  9. ; (Com+Lpt)" from the list. Click "Have a disk". Select this file.
  10. ; Procedure may vary a bit depending on the windows version.
  11. ; FIXME: This file covers the single port version only.
  12. [Version]
  13. Signature="$CHICAGO$"
  14. Class=Ports
  15. ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
  16. Provider=%QEMU%
  17. DriverVer=09/24/2012,1.3.0
  18. [SourceDisksNames]
  19. 3426=windows cd
  20. [SourceDisksFiles]
  21. serial.sys = 3426
  22. serenum.sys = 3426
  23. [DestinationDirs]
  24. DefaultDestDir = 11 ;LDID_SYS
  25. ComPort.NT.Copy = 12 ;DIRID_DRIVERS
  26. SerialEnumerator.NT.Copy=12 ;DIRID_DRIVERS
  27. ; Drivers
  28. ;----------------------------------------------------------
  29. [Manufacturer]
  30. %QEMU%=QEMU,NTx86
  31. [QEMU.NTx86]
  32. %QEMU-PCI_SERIAL.DeviceDesc% = ComPort, "PCI\VEN_1b36&DEV_0002&CC_0700"
  33. ; COM sections
  34. ;----------------------------------------------------------
  35. [ComPort.AddReg]
  36. HKR,,PortSubClass,1,01
  37. [ComPort.NT]
  38. AddReg=ComPort.AddReg, ComPort.NT.AddReg
  39. LogConfig=caa
  40. SyssetupPnPFlags = 1
  41. [ComPort.NT.HW]
  42. AddReg=ComPort.NT.HW.AddReg
  43. [ComPort.NT.AddReg]
  44. HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
  45. [ComPort.NT.HW.AddReg]
  46. HKR,,"UpperFilters",0x00010000,"serenum"
  47. ;-------------- Service installation
  48. ; Port Driver (function driver for this device)
  49. [ComPort.NT.Services]
  50. AddService = Serial, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
  51. AddService = Serenum,,Serenum_Service_Inst
  52. ; -------------- Serial Port Driver install sections
  53. [Serial_Service_Inst]
  54. DisplayName = %Serial.SVCDESC%
  55. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  56. StartType = 1 ; SERVICE_SYSTEM_START (this driver may do detection)
  57. ErrorControl = 0 ; SERVICE_ERROR_IGNORE
  58. ServiceBinary = %12%\serial.sys
  59. LoadOrderGroup = Extended base
  60. ; -------------- Serenum Driver install section
  61. [Serenum_Service_Inst]
  62. DisplayName = %Serenum.SVCDESC%
  63. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  64. StartType = 3 ; SERVICE_DEMAND_START
  65. ErrorControl = 1 ; SERVICE_ERROR_NORMAL
  66. ServiceBinary = %12%\serenum.sys
  67. LoadOrderGroup = PNP Filter
  68. [Serial_EventLog_Inst]
  69. AddReg = Serial_EventLog_AddReg
  70. [Serial_EventLog_AddReg]
  71. HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\serial.sys"
  72. HKR,,TypesSupported,0x00010001,7
  73. ; The following sections are COM port resource configs.
  74. ; Section name format means:
  75. ; Char 1 = c (COM port)
  76. ; Char 2 = I/O config: 1 (3f8), 2 (2f8), 3 (3e8), 4 (2e8), a (any)
  77. ; Char 3 = IRQ config: #, a (any)
  78. [caa] ; Any base, any IRQ
  79. ConfigPriority=HARDRECONFIG
  80. IOConfig=8@100-ffff%fff8(3ff::)
  81. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  82. [Strings]
  83. QEMU="QEMU"
  84. QEMU-PCI_SERIAL.DeviceDesc="QEMU Serial PCI Card"
  85. Serial.SVCDESC = "Serial port driver"
  86. Serenum.SVCDESC = "Serenum Filter Driver"