From 8cf16b5c899a60ea5982c5d8dc042153daf6ac5b Mon Sep 17 00:00:00 2001 From: heqnx Date: Fri, 11 Jul 2025 21:50:55 +0300 Subject: added packer templates --- packer/files/drivers/amd64/w10/vioscsi.inf | 123 +++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100755 packer/files/drivers/amd64/w10/vioscsi.inf (limited to 'packer/files/drivers/amd64/w10/vioscsi.inf') diff --git a/packer/files/drivers/amd64/w10/vioscsi.inf b/packer/files/drivers/amd64/w10/vioscsi.inf new file mode 100755 index 0000000..8cd10c3 --- /dev/null +++ b/packer/files/drivers/amd64/w10/vioscsi.inf @@ -0,0 +1,123 @@ +;/*++ +; +;Copyright (c) 2012-2019 Red Hat Inc. +; +; +;Module Name: +; vioscsi.inf +; +;Abstract: +; +;Installation Notes: +; Using Devcon: Type "devcon install vioscsi.inf PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00" or +; "devcon install vioscsi.inf PCI\VEN_1AF4&DEV_1048&SUBSYS_11001AF4&REV_01" to install +; +;--*/ + +[Version] +Signature="$Windows NT$" +Class=SCSIAdapter +ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318} +Provider=%VENDOR% +DriverVer = 04/12/2019,100.77.104.17100 +CatalogFile=vioscsi.cat +DriverPackageType = PlugAndPlay +DriverPackageDisplayName = %VirtioScsi.DeviceDesc% + +; +; Source file information +; + +[SourceDisksNames] +1 = %DiskId1%,,,"" + +[SourceDisksFiles] +vioscsi.sys = 1,, + +[ControlFlags] +;ExcludeFromSelect = * + +[DestinationDirs] +DefaultDestDir = 10 +vioscsi_Files_Driver = 12 + +; +; Driver information +; + +[Manufacturer] +%VENDOR% = VirtioScsi,NTamd64.10.0 + +[VirtioScsi.NTamd64.10.0] +%VirtioScsi.DeviceDesc% = scsi_inst, PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00, PCI\VEN_1AF4&DEV_1004 +%VirtioScsi.DeviceDesc% = scsi_inst, PCI\VEN_1AF4&DEV_1048&SUBSYS_11001AF4&REV_01, PCI\VEN_1AF4&DEV_1048 + +; +; General installation section +; + +[vioscsi_Files_Driver] +vioscsi.sys,,,2 + +[scsi_inst] +CopyFiles=vioscsi_Files_Driver + +; +; Service Installation +; + +[scsi_inst.Services] +AddService = vioscsi, 0x00000002 , scsi_Service_Inst, scsi_EventLog_Inst + +[scsi_Service_Inst] +DisplayName = %VirtioScsi.SVCDESC% +ServiceType = %SERVICE_KERNEL_DRIVER% +StartType = %SERVICE_BOOT_START% +ErrorControl = %SERVICE_ERROR_NORMAL% +ServiceBinary = %12%\vioscsi.sys +LoadOrderGroup = SCSI miniport +AddReg = pnpsafe_pci_addreg + +[scsi_inst.HW] +AddReg = pnpsafe_pci_addreg_msix + +[scsi_EventLog_Inst] +AddReg = scsi_EventLog_AddReg + +[scsi_EventLog_AddReg] +HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll" +HKR,,TypesSupported,%REG_DWORD%,7 + + +[pnpsafe_pci_addreg] +HKR, "Parameters\PnpInterface", "5", %REG_DWORD%, 0x00000001 +HKR, "Parameters", "BusType", %REG_DWORD%, 0x0000000A + +[pnpsafe_pci_addreg_msix] +HKR, "Interrupt Management",, 0x00000010 +HKR, "Interrupt Management\MessageSignaledInterruptProperties",, 0x00000010 +HKR, "Interrupt Management\MessageSignaledInterruptProperties", MSISupported, 0x00010001, 1 +HKR, "Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 256 +HKR, "Interrupt Management\Affinity Policy",, 0x00000010 +HKR, "Interrupt Management\Affinity Policy", DevicePolicy, 0x00010001, 5 +HKR, "Interrupt Management\Affinity Policy", DevicePriority, 0x00010001, 3 + + +[Strings] +; +; Localizable Strings +; +VENDOR = "Red Hat, Inc." +diskId1 = "Red Hat VirtIO SCSI pass-through controller Installation Disk" +VirtioScsi.DeviceDesc = "Red Hat VirtIO SCSI pass-through controller" +VirtioScsi.SVCDESC = "Red Hat VirtIO SCSI pass-through Service" + +; +; Non-Localizable Strings +; + +REG_EXPAND_SZ = 0x00020000 +REG_DWORD = 0x00010001 +SERVICE_KERNEL_DRIVER = 1 +SERVICE_BOOT_START = 0 +SERVICE_ERROR_NORMAL = 1 -- cgit v1.2.3