]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Bus/Usb/UsbBus/Dxe/usbutil.h
changed EdkModulePkg GUID from the original B6EC423C-21D2-490D-85C6-DD5864EAA674...
[mirror_edk2.git] / EdkModulePkg / Bus / Usb / UsbBus / Dxe / usbutil.h
CommitLineData
878ddf1f 1/*++\r
2 \r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12 Module Name:\r
13 usbutil.h\r
14 \r
15 Abstract:\r
16 \r
17 Helper functions for USB\r
18 \r
19 Revision History\r
20 \r
21 \r
22--*/\r
23\r
24#ifndef _USB_UTIL_H\r
25#define _USB_UTIL_H\r
26\r
27//\r
28// Following APIs are used to query Port Status\r
29//\r
30BOOLEAN\r
31IsPortConnect (\r
32 IN UINT16 PortStatus\r
33 );\r
34\r
35BOOLEAN\r
36IsPortEnable (\r
37 IN UINT16 PortStatus\r
38 );\r
39\r
40BOOLEAN\r
41IsPortInReset (\r
42 IN UINT16 PortStatus\r
43 );\r
44\r
45BOOLEAN\r
46IsPortPowerApplied (\r
47 IN UINT16 PortStatus\r
48 );\r
49\r
50BOOLEAN\r
51IsPortLowSpeedDeviceAttached (\r
52 IN UINT16 PortStatus\r
53 );\r
54\r
55BOOLEAN\r
56IsPortSuspend (\r
57 IN UINT16 PortStatus\r
58 );\r
59\r
60//\r
61// Following APIs are used to query Port Change Status\r
62//\r
63BOOLEAN\r
64IsPortConnectChange (\r
65 IN UINT16 PortChangeStatus\r
66 );\r
67\r
68BOOLEAN\r
69IsPortEnableDisableChange (\r
70 IN UINT16 PortChangeStatus\r
71 );\r
72\r
73BOOLEAN\r
74IsPortResetChange (\r
75 IN UINT16 PortChangeStatus\r
76 );\r
77\r
78BOOLEAN\r
79IsPortSuspendChange (\r
80 IN UINT16 PortChangeStatus\r
81 );\r
82\r
83//\r
84// Set device address;\r
85//\r
86EFI_STATUS\r
87UsbSetDeviceAddress (\r
88 IN EFI_USB_IO_PROTOCOL *UsbIo,\r
89 IN UINT16 AddressValue,\r
90 OUT UINT32 *Status\r
91 );\r
92\r
93\r
94#endif\r