Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1900)

Unified Diff: tools/usb_gadget/usb_gadget.inf

Issue 803723002: Add a Windows INF file for the non-standard USB gadget devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/usb_gadget/usb_gadget.inf
diff --git a/tools/usb_gadget/usb_gadget.inf b/tools/usb_gadget/usb_gadget.inf
new file mode 100644
index 0000000000000000000000000000000000000000..ce5d0b46c8ff78c274c2b505f7594fc41d51c356
--- /dev/null
+++ b/tools/usb_gadget/usb_gadget.inf
@@ -0,0 +1,64 @@
+;
+; This INF file instructs Windows to load winusb.sys against the USB devices
+; implemented by the test gadget that don't implement a standard USB class.
+;
+
+[Version]
+Signature = "$Windows NT$"
+Class = USBDevice
+ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
+Provider = %ManufacturerName%
+CatalogFile = WinUSBInstallation.cat
+DriverVer = 09/04/2012,13.54.20.543
+
+; ========== Manufacturer/Models sections ===========
+
+[Manufacturer]
+%ManufacturerName% = Standard,NTx86,NTia64,NTamd64
+
+[Standard.NTx86]
+%USB\DefaultDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F0
+%USB\EchoDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F4
+
+[Standard.NTia64]
+%USB\DefaultDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F0
+%USB\EchoDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F4
+
+[Standard.NTamd64]
+%USB\DefaultDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F0
+%USB\EchoDevice.DeviceDesc% = USB_Install,USB\VID_18D1&PID_58F4
+
+; ========== Class definition ===========
+
+[ClassInstall32]
+AddReg = ClassInstall_AddReg
+
+[ClassInstall_AddReg]
+HKR,,,,%ClassName%
+HKR,,NoInstallClass,,1
+HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
+HKR,,LowerLogoVersion,,5.2
+
+; =================== Installation ===================
+
+[USB_Install]
+Include = winusb.inf
+Needs = WINUSB.NT
+
+[USB_Install.Services]
+Include = winusb.inf
+Needs = WINUSB.NT.Services
+
+[USB_Install.HW]
+AddReg = Dev_AddReg
+
+[Dev_AddReg]
+HKR,,DeviceInterfaceGUIDs,0x10000,"{9f543223-cede-4fa3-b376-a25ce9a30e74}"
+
+; =================== Strings ===================
+
+[Strings]
+ManufacturerName = "Google, Inc."
+ClassName = "USB Test Devices"
+USB\DefaultDevice.DeviceDesc = "Test Gadget"
+USB\EchoDevice.DeviceDesc = "Echo Gadget"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698