]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT 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 | |
30 | BOOLEAN\r | |
31 | IsPortConnect (\r | |
32 | IN UINT16 PortStatus\r | |
33 | );\r | |
34 | \r | |
35 | BOOLEAN\r | |
36 | IsPortEnable (\r | |
37 | IN UINT16 PortStatus\r | |
38 | );\r | |
39 | \r | |
40 | BOOLEAN\r | |
41 | IsPortInReset (\r | |
42 | IN UINT16 PortStatus\r | |
43 | );\r | |
44 | \r | |
45 | BOOLEAN\r | |
46 | IsPortPowerApplied (\r | |
47 | IN UINT16 PortStatus\r | |
48 | );\r | |
49 | \r | |
50 | BOOLEAN\r | |
51 | IsPortLowSpeedDeviceAttached (\r | |
52 | IN UINT16 PortStatus\r | |
53 | );\r | |
54 | \r | |
55 | BOOLEAN\r | |
56 | IsPortSuspend (\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 | |
63 | BOOLEAN\r | |
64 | IsPortConnectChange (\r | |
65 | IN UINT16 PortChangeStatus\r | |
66 | );\r | |
67 | \r | |
68 | BOOLEAN\r | |
69 | IsPortEnableDisableChange (\r | |
70 | IN UINT16 PortChangeStatus\r | |
71 | );\r | |
72 | \r | |
73 | BOOLEAN\r | |
74 | IsPortResetChange (\r | |
75 | IN UINT16 PortChangeStatus\r | |
76 | );\r | |
77 | \r | |
78 | BOOLEAN\r | |
79 | IsPortSuspendChange (\r | |
80 | IN UINT16 PortChangeStatus\r | |
81 | );\r | |
82 | \r | |
83 | //\r | |
84 | // Set device address;\r | |
85 | //\r | |
86 | EFI_STATUS\r | |
87 | UsbSetDeviceAddress (\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 |