]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | EFI_USB_HC_PROTOCOL as defined in EFI 1.10.\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation \r | |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
13 | Module Name: UsbHostController.h\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _USB_HOSTCONTROLLER_H_\r | |
18 | #define _USB_HOSTCONTROLLER_H_\r | |
19 | \r | |
20 | #define EFI_USB_HC_PROTOCOL_GUID \\r | |
21 | { \\r | |
22 | 0xf5089266, 0x1aa0, 0x4953, {0x97, 0xd8, 0x56, 0x2f, 0x8a, 0x73, 0xb5, 0x19 } \\r | |
23 | }\r | |
24 | \r | |
25 | //\r | |
26 | // Forward reference for pure ANSI compatability\r | |
27 | //\r | |
28 | typedef struct _EFI_USB_HC_PROTOCOL EFI_USB_HC_PROTOCOL;\r | |
29 | \r | |
30 | //\r | |
31 | // Protocol definitions\r | |
32 | //\r | |
33 | \r | |
34 | /** \r | |
35 | Provides software reset for the USB host controller.\r | |
36 | \r | |
37 | @param This A pointer to the EFI_USB_HC_PROTOCOL instance.\r | |
38 | @param Attributes A bit mask of the reset operation to perform.\r | |
39 | \r | |
40 | @retval EFI_SUCCESS The reset operation succeeded.\r | |
41 | @retval EFI_UNSUPPORTED The type of reset specified by Attributes is not currently supported\r | |
42 | by the host controller hardware. \r | |
43 | @retval EFI_INVALID_PARAMETER Attributes is not valid.\r | |
44 | @retval EFI_DEVICE_ERROR An error was encountered while attempting to perform the reset operation.\r | |
45 | \r | |
46 | **/\r | |
47 | typedef\r | |
48 | EFI_STATUS\r | |
49 | (EFIAPI *EFI_USB_HC_PROTOCOL_RESET) (\r | |
50 | IN EFI_USB_HC_PROTOCOL *This,\r | |
51 | IN UINT16 Attributes\r | |
52 | );\r | |
53 | \r | |
54 | /** \r | |
55 | Retrieves current state of the USB host controller.\r | |
56 | \r | |
57 | @param This A pointer to the EFI_USB_HC_PROTOCOL instance.\r | |
58 | @param State A pointer to the EFI_USB_HC_STATE data structure that\r | |
59 | indicates current state of the USB host controller. \r | |
60 | \r | |
61 | @retval EFI_SUCCESS The state information of the host controller was returned in State.\r | |
62 | @retval EFI_INVALID_PARAMETER State is NULL.\r | |
63 | Content-type: text/html ]>