iPXE
UsbHostController.h
Go to the documentation of this file.
1 #ifndef _IPXE_EFI_USBHOSTCONTROLLER_H
2 #define _IPXE_EFI_USBHOSTCONTROLLER_H
3 
4 /** @file
5  EFI_USB_HC_PROTOCOL as defined in EFI 1.10.
6 
7  The USB Host Controller Protocol is used by code, typically USB bus drivers,
8  running in the EFI boot services environment, to perform data transactions
9  over a USB bus. In addition, it provides an abstraction for the root hub of the USB bus.
10 
11  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
12  SPDX-License-Identifier: BSD-2-Clause-Patent
13 
14 **/
15 
16 #ifndef _USB_HOSTCONTROLLER_H_
17 #define _USB_HOSTCONTROLLER_H_
18 
19 FILE_LICENCE ( BSD2_PATENT );
20 
22 
23 #define EFI_USB_HC_PROTOCOL_GUID \
24  { \
25  0xf5089266, 0x1aa0, 0x4953, {0x97, 0xd8, 0x56, 0x2f, 0x8a, 0x73, 0xb5, 0x19 } \
26  }
27 
28 ///
29 /// Forward reference for pure ANSI compatability
30 ///
32 
33 //
34 // Protocol definitions
35 //
36 
37 /**
38  Provides software reset for the USB host controller.
39 
40  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
41  @param Attributes A bit mask of the reset operation to perform.
42 
43  @retval EFI_SUCCESS The reset operation succeeded.
44  @retval EFI_UNSUPPORTED The type of reset specified by Attributes is not currently supported
45  by the host controller hardware.
46  @retval EFI_INVALID_PARAMETER Attributes is not valid.
47  @retval EFI_DEVICE_ERROR An error was encountered while attempting to perform the reset operation.
48 
49 **/
50 typedef
53  IN EFI_USB_HC_PROTOCOL *This,
54  IN UINT16 Attributes
55  );
56 
57 /**
58  Retrieves current state of the USB host controller.
59 
60  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
61  @param State A pointer to the EFI_USB_HC_STATE data structure that
62  indicates current state of the USB host controller.
63 
64  @retval EFI_SUCCESS The state information of the host controller was returned in State.
65  @retval EFI_INVALID_PARAMETER State is NULL.
66  @retval EFI_DEVICE_ERROR An error was encountered while attempting to retrieve the host controller's
67  current state.
68 
69 **/
70 typedef
73  IN EFI_USB_HC_PROTOCOL *This,
74  OUT EFI_USB_HC_STATE *State
75  );
76 
77 /**
78  Sets the USB host controller to a specific state.
79 
80  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
81  @param State Indicates the state of the host controller that will be set.
82 
83  @retval EFI_SUCCESS The USB host controller was successfully placed in the state specified by
84  State.
85  @retval EFI_INVALID_PARAMETER State is NULL.
86  @retval EFI_DEVICE_ERROR Failed to set the state specified by State due to device error.
87 
88 **/
89 typedef
92  IN EFI_USB_HC_PROTOCOL *This,
93  IN EFI_USB_HC_STATE State
94  );
95 
96 /**
97  Submits control transfer to a target USB device.
98 
99  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
100  @param DeviceAddress Represents the address of the target device on the USB, which is
101  assigned during USB enumeration.
102  @param IsSlowDevice Indicates whether the target device is slow device or full-speed
103  device.
104  @param MaximumPacketLength Indicates the maximum packet size that the default control
105  transfer endpoint is capable of sending or receiving.
106  @param Request A pointer to the USB device request that will be sent to the USB
107  device.
108  @param TransferDirection Specifies the data direction for the transfer. There are three
109  values available, EfiUsbDataIn, EfiUsbDataOut and EfiUsbNoData.
110  @param Data A pointer to the buffer of data that will be transmitted to USB
111  device or received from USB device.
112  @param DataLength On input, indicates the size, in bytes, of the data buffer specified
113  by Data. On output, indicates the amount of data actually
114  transferred.
115  @param TimeOut Indicates the maximum time, in milliseconds, which the transfer
116  is allowed to complete.
117  @param TransferResult A pointer to the detailed result information generated by this
118  control transfer.
119 
120  @retval EFI_SUCCESS The control transfer was completed successfully.
121  @retval EFI_OUT_OF_RESOURCES The control transfer could not be completed due to a lack of resources.
122  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
123  @retval EFI_TIMEOUT The control transfer failed due to timeout.
124  @retval EFI_DEVICE_ERROR The control transfer failed due to host controller or device error.
125 
126 **/
127 typedef
130  IN EFI_USB_HC_PROTOCOL *This,
131  IN UINT8 DeviceAddress,
132  IN BOOLEAN IsSlowDevice,
133  IN UINT8 MaximumPacketLength,
134  IN EFI_USB_DEVICE_REQUEST *Request,
135  IN EFI_USB_DATA_DIRECTION TransferDirection,
136  IN OUT VOID *Data OPTIONAL,
138  IN UINTN TimeOut,
139  OUT UINT32 *TransferResult
140  );
141 
142 /**
143  Submits bulk transfer to a bulk endpoint of a USB device.
144 
145  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
146  @param DeviceAddress Represents the address of the target device on the USB, which is
147  assigned during USB enumeration.
148  @param EndPointAddress The combination of an endpoint number and an endpoint
149  direction of the target USB device. Each endpoint address
150  supports data transfer in one direction except the control
151  endpoint (whose default endpoint address is 0). It is the
152  caller's responsibility to make sure that the EndPointAddress
153  represents a bulk endpoint.
154  @param MaximumPacketLength Indicates the maximum packet size that the default control
155  transfer endpoint is capable of sending or receiving.
156  @param Data A pointer to the buffer of data that will be transmitted to USB
157  device or received from USB device.
158  @param DataLength On input, indicates the size, in bytes, of the data buffer specified
159  by Data. On output, indicates the amount of data actually
160  transferred.
161  @param DataToggle A pointer to the data toggle value.
162  @param TimeOut Indicates the maximum time, in milliseconds, which the transfer
163  is allowed to complete.
164  @param TransferResult A pointer to the detailed result information of the bulk transfer.
165 
166  @retval EFI_SUCCESS The bulk transfer was completed successfully.
167  @retval EFI_OUT_OF_RESOURCES The bulk transfer could not be completed due to a lack of resources.
168  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
169  @retval EFI_TIMEOUT The bulk transfer failed due to timeout.
170  @retval EFI_DEVICE_ERROR The bulk transfer failed due to host controller or device error.
171 
172 **/
173 typedef
176  IN EFI_USB_HC_PROTOCOL *This,
177  IN UINT8 DeviceAddress,
178  IN UINT8 EndPointAddress,
179  IN UINT8 MaximumPacketLength,
180  IN OUT VOID *Data,
182  IN OUT UINT8 *DataToggle,
183  IN UINTN TimeOut,
184  OUT UINT32 *TransferResult
185  );
186 
187 /**
188  Submits an asynchronous interrupt transfer to an interrupt endpoint of a USB device.
189 
190  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
191  @param DeviceAddress Represents the address of the target device on the USB, which is
192  assigned during USB enumeration.
193  @param EndPointAddress The combination of an endpoint number and an endpoint
194  direction of the target USB device. Each endpoint address
195  supports data transfer in one direction except the control
196  endpoint (whose default endpoint address is zero). It is the
197  caller's responsibility to make sure that the
198  EndPointAddress represents an interrupt endpoint.
199  @param IsSlowDevice Indicates whether the target device is slow device or full-speed
200  device.
201  @param MaximumPacketLength Indicates the maximum packet size that the default control
202  transfer endpoint is capable of sending or receiving.
203  @param IsNewTransfer If TRUE, an asynchronous interrupt pipe is built between the host
204  and the target interrupt endpoint. If FALSE, the specified asynchronous
205  interrupt pipe is canceled. If TRUE, and an interrupt transfer exists
206  for the target end point, then EFI_INVALID_PARAMETER is returned.
207  @param DataToggle A pointer to the data toggle value. On input, it is valid when
208  IsNewTransfer is TRUE, and it indicates the initial data toggle
209  value the asynchronous interrupt transfer should adopt. On output,
210  it is valid when IsNewTransfer is FALSE, and it is updated to indicate
211  the data toggle value of the subsequent asynchronous interrupt transfer.
212  @param PollingInterval Indicates the interval, in milliseconds, that the asynchronous
213  interrupt transfer is polled.
214  @param DataLength Indicates the length of data to be received at the rate specified by
215  PollingInterval from the target asynchronous interrupt
216  endpoint. This parameter is only required when IsNewTransfer is TRUE.
217  @param CallBackFunction The Callback function. This function is called at the rate specified by
218  PollingInterval. This parameter is only required when IsNewTransfer is TRUE.
219  @param Context The context that is passed to the CallBackFunction.
220 
221  @retval EFI_SUCCESS The asynchronous interrupt transfer request has been successfully
222  submitted or canceled.
223  @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
224  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
225  @retval EFI_TIMEOUT The bulk transfer failed due to timeout.
226  @retval EFI_DEVICE_ERROR The bulk transfer failed due to host controller or device error.
227 
228 **/
229 typedef
232  IN EFI_USB_HC_PROTOCOL *This,
233  IN UINT8 DeviceAddress,
234  IN UINT8 EndPointAddress,
235  IN BOOLEAN IsSlowDevice,
236  IN UINT8 MaxiumPacketLength,
237  IN BOOLEAN IsNewTransfer,
238  IN OUT UINT8 *DataToggle,
239  IN UINTN PollingInterval OPTIONAL,
242  IN VOID *Context OPTIONAL
243  );
244 
245 /**
246  Submits synchronous interrupt transfer to an interrupt endpoint of a USB device.
247 
248  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
249  @param DeviceAddress Represents the address of the target device on the USB, which is
250  assigned during USB enumeration.
251  @param EndPointAddress The combination of an endpoint number and an endpoint
252  direction of the target USB device. Each endpoint address
253  supports data transfer in one direction except the control
254  endpoint (whose default endpoint address is zero). It is the
255  caller's responsibility to make sure that the
256  EndPointAddress represents an interrupt endpoint.
257  @param IsSlowDevice Indicates whether the target device is slow device or full-speed
258  device.
259  @param MaximumPacketLength Indicates the maximum packet size that the default control
260  transfer endpoint is capable of sending or receiving.
261  @param Data A pointer to the buffer of data that will be transmitted to USB
262  device or received from USB device. asynchronous interrupt pipe is canceled.
263  @param DataLength On input, the size, in bytes, of the data buffer specified by Data.
264  On output, the number of bytes transferred.
265  @param DataToggle A pointer to the data toggle value. On input, it indicates the initial
266  data toggle value the synchronous interrupt transfer should adopt;
267  on output, it is updated to indicate the data toggle value of the
268  subsequent synchronous interrupt transfer.
269  @param TimeOut Indicates the maximum time, in milliseconds, which the transfer
270  is allowed to complete.
271  @param TransferResult A pointer to the detailed result information from the synchronous
272  interrupt transfer.
273 
274  @retval EFI_SUCCESS The synchronous interrupt transfer was completed successfully.
275  @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
276  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
277  @retval EFI_TIMEOUT The synchronous interrupt transfer failed due to timeout.
278  @retval EFI_DEVICE_ERROR The synchronous interrupt transfer failed due to host controller or device error.
279 
280 **/
281 typedef
284  IN EFI_USB_HC_PROTOCOL *This,
285  IN UINT8 DeviceAddress,
286  IN UINT8 EndPointAddress,
287  IN BOOLEAN IsSlowDevice,
288  IN UINT8 MaximumPacketLength,
289  IN OUT VOID *Data,
291  IN OUT UINT8 *DataToggle,
292  IN UINTN TimeOut,
293  OUT UINT32 *TransferResult
294  );
295 
296 /**
297  Submits isochronous transfer to an isochronous endpoint of a USB device.
298 
299  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
300  @param DeviceAddress Represents the address of the target device on the USB, which is
301  assigned during USB enumeration.
302  @param EndPointAddress The combination of an endpoint number and an endpoint
303  direction of the target USB device. Each endpoint address
304  supports data transfer in one direction except the control
305  endpoint (whose default endpoint address is 0). It is the caller's
306  responsibility to make sure that the EndPointAddress
307  represents an isochronous endpoint.
308  @param MaximumPacketLength Indicates the maximum packet size that the default control
309  transfer endpoint is capable of sending or receiving.
310  @param Data A pointer to the buffer of data that will be transmitted to USB
311  device or received from USB device. asynchronous interrupt pipe is canceled.
312  @param DataLength Specifies the length, in bytes, of the data to be sent to or received
313  from the USB device.
314  @param TransferResult A pointer to the detailed result information from the isochronous
315  transfer.
316 
317  @retval EFI_SUCCESS The isochronous transfer was completed successfully.
318  @retval EFI_OUT_OF_RESOURCES The isochronous could not be completed due to a lack of resources.
319  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
320  @retval EFI_TIMEOUT The isochronous transfer failed due to timeout.
321  @retval EFI_DEVICE_ERROR The isochronous transfer failed due to host controller or device error.
322 
323 **/
324 typedef
327  IN EFI_USB_HC_PROTOCOL *This,
328  IN UINT8 DeviceAddress,
329  IN UINT8 EndPointAddress,
330  IN UINT8 MaximumPacketLength,
331  IN OUT VOID *Data,
333  OUT UINT32 *TransferResult
334  );
335 
336 /**
337  Submits nonblocking isochronous transfer to an isochronous endpoint of a USB device.
338 
339  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
340  @param DeviceAddress Represents the address of the target device on the USB, which is
341  assigned during USB enumeration.
342  @param EndPointAddress The combination of an endpoint number and an endpoint
343  direction of the target USB device. Each endpoint address
344  supports data transfer in one direction except the control
345  endpoint (whose default endpoint address is zero). It is the
346  caller's responsibility to make sure that the
347  EndPointAddress represents an isochronous endpoint.
348  @param MaximumPacketLength Indicates the maximum packet size that the default control
349  transfer endpoint is capable of sending or receiving. For isochronous
350  endpoints, this value is used to reserve the bus time in the schedule,
351  required for the perframe data payloads. The pipe may, on an ongoing basis,
352  actually use less bandwidth than that reserved.
353  @param Data A pointer to the buffer of data that will be transmitted to USB
354  device or received from USB device. asynchronous interrupt pipe is canceled.
355  @param DataLength Specifies the length, in bytes, of the data to be sent to or received
356  from the USB device.
357  @param IsochronousCallback The Callback function.This function is called if the requested
358  isochronous transfer is completed.
359  @param Context Data passed to the IsochronousCallback function. This is
360  an optional parameter and may be NULL.
361 
362  @retval EFI_SUCCESS The asynchronous isochronous transfer was completed successfully.
363  @retval EFI_OUT_OF_RESOURCES The asynchronous isochronous could not be completed due to a lack of resources.
364  @retval EFI_INVALID_PARAMETER Some parameters are invalid.
365 
366 **/
367 typedef
370  IN EFI_USB_HC_PROTOCOL *This,
371  IN UINT8 DeviceAddress,
372  IN UINT8 EndPointAddress,
373  IN UINT8 MaximumPacketLength,
374  IN OUT VOID *Data,
376  IN EFI_ASYNC_USB_TRANSFER_CALLBACK IsochronousCallBack,
377  IN VOID *Context OPTIONAL
378  );
379 
380 /**
381  Retrieves the number of root hub ports.
382 
383  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
384  @param PortNumber A pointer to the number of the root hub ports.
385 
386  @retval EFI_SUCCESS The port number was retrieved successfully.
387  @retval EFI_DEVICE_ERROR An error was encountered while attempting to retrieve the port number.
388  @retval EFI_INVALID_PARAMETER PortNumber is NULL.
389 
390 **/
391 typedef
394  IN EFI_USB_HC_PROTOCOL *This,
395  OUT UINT8 *PortNumber
396  );
397 
398 /**
399  Retrieves the current status of a USB root hub port.
400 
401  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
402  @param PortNumber Specifies the root hub port from which the status is to be retrieved.
403  This value is zero based. For example, if a root hub has two ports,
404  then the first port is numbered 0, and the second port is
405  numbered 1.
406  @param PortStatus A pointer to the current port status bits and port status change bits.
407 
408  @retval EFI_SUCCESS The status of the USB root hub port specified by PortNumber
409  was returned in PortStatus.
410  @retval EFI_INVALID_PARAMETER PortNumber is invalid.
411 
412 **/
413 typedef
416  IN EFI_USB_HC_PROTOCOL *This,
417  IN UINT8 PortNumber,
418  OUT EFI_USB_PORT_STATUS *PortStatus
419  );
420 
421 /**
422  Sets a feature for the specified root hub port.
423 
424  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
425  @param PortNumber Specifies the root hub port from which the status is to be retrieved.
426  This value is zero based. For example, if a root hub has two ports,
427  then the first port is numbered 0, and the second port is
428  numbered 1.
429  @param PortFeature Indicates the feature selector associated with the feature set
430  request.
431 
432  @retval EFI_SUCCESS The feature specified by PortFeature was set for the USB
433  root hub port specified by PortNumber.
434  @retval EFI_INVALID_PARAMETER PortNumber is invalid or PortFeature is invalid for this function.
435 
436 **/
437 typedef
440  IN EFI_USB_HC_PROTOCOL *This,
441  IN UINT8 PortNumber,
442  IN EFI_USB_PORT_FEATURE PortFeature
443  );
444 
445 /**
446  Clears a feature for the specified root hub port.
447 
448  @param This A pointer to the EFI_USB_HC_PROTOCOL instance.
449  @param PortNumber Specifies the root hub port from which the status is to be retrieved.
450  This value is zero based. For example, if a root hub has two ports,
451  then the first port is numbered 0, and the second port is
452  numbered 1.
453  @param PortFeature Indicates the feature selector associated with the feature clear
454  request.
455 
456  @retval EFI_SUCCESS The feature specified by PortFeature was cleared for the USB
457  root hub port specified by PortNumber.
458  @retval EFI_INVALID_PARAMETER PortNumber is invalid or PortFeature is invalid for this function.
459 
460 **/
461 typedef
464  IN EFI_USB_HC_PROTOCOL *This,
465  IN UINT8 PortNumber,
466  IN EFI_USB_PORT_FEATURE PortFeature
467  );
468 
469 ///
470 /// The EFI_USB_HC_PROTOCOL provides USB host controller management, basic data transactions
471 /// over a USB bus, and USB root hub access. A device driver that wishes to manage a USB bus in a
472 /// system retrieves the EFI_USB_HC_PROTOCOL instance that is associated with the USB bus to be
473 /// managed. A device handle for a USB host controller will minimally contain an
474 /// EFI_DEVICE_PATH_PROTOCOL instance, and an EFI_USB_HC_PROTOCOL instance.
475 ///
490  ///
491  /// The major revision number of the USB host controller. The revision information
492  /// indicates the release of the Universal Serial Bus Specification with which the
493  /// host controller is compliant.
494  ///
496  ///
497  /// The minor revision number of the USB host controller. The revision information
498  /// indicates the release of the Universal Serial Bus Specification with which the
499  /// host controller is compliant.
500  ///
502 };
503 
505 
506 #endif
507 
508 #endif /* _IPXE_EFI_USBHOSTCONTROLLER_H */
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition: Base.h:292
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_GET_STATE)(IN EFI_USB_HC_PROTOCOL *This, OUT EFI_USB_HC_STATE *State)
Retrieves current state of the USB host controller.
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_ISOCHRONOUS_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN UINT8 EndPointAddress, IN UINT8 MaximumPacketLength, IN OUT VOID *Data, IN UINTN DataLength, OUT UINT32 *TransferResult)
Submits isochronous transfer to an isochronous endpoint of a USB device.
EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS GetRootHubPortStatus
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_NUMBER)(IN EFI_USB_HC_PROTOCOL *This, OUT UINT8 *PortNumber)
Retrieves the number of root hub ports.
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
EFI_USB_HC_PROTOCOL_BULK_TRANSFER BulkTransfer
unsigned char BOOLEAN
unsigned int UINT32
Definition: ProcessorBind.h:98
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN UINT8 EndPointAddress, IN BOOLEAN IsSlowDevice, IN UINT8 MaximumPacketLength, IN OUT VOID *Data, IN OUT UINTN *DataLength, IN OUT UINT8 *DataToggle, IN UINTN TimeOut, OUT UINT32 *TransferResult)
Submits synchronous interrupt transfer to an interrupt endpoint of a USB device.
UINT16 MajorRevision
The major revision number of the USB host controller.
EFI_USB_DATA_DIRECTION
USB data transfer direction.
Definition: UsbIo.h:46
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_SET_STATE)(IN EFI_USB_HC_PROTOCOL *This, IN EFI_USB_HC_STATE State)
Sets the USB host controller to a specific state.
unsigned char UINT8
EFI_USB_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE ClearRootHubPortFeature
The EFI_USB_HC_PROTOCOL provides USB host controller management, basic data transactions over a USB b...
EFI_USB_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER AsyncInterruptTransfer
EFI_USB_HC_PROTOCOL_CONTROL_TRANSFER ControlTransfer
#define OUT
Definition: mlx_utils.h:29
Format of Setup Data for USB Device Requests USB 2.0 spec, Section 9.3.
Definition: Usb.h:94
EFI_USB_HC_PROTOCOL_SET_STATE SetState
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_BULK_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN UINT8 EndPointAddress, IN UINT8 MaximumPacketLength, IN OUT VOID *Data, IN OUT UINTN *DataLength, IN OUT UINT8 *DataToggle, IN UINTN TimeOut, OUT UINT32 *TransferResult)
Submits bulk transfer to a bulk endpoint of a USB device.
EFI_USB_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE SetRootHubPortFeature
EFI_USB_PORT_FEATURE
Usb port features value Each value indicates its bit index in the port status and status change bitma...
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 PortNumber, OUT EFI_USB_PORT_STATUS *PortStatus)
Retrieves the current status of a USB root hub port.
EFI_USB_HC_PROTOCOL_ISOCHRONOUS_TRANSFER IsochronousTransfer
unsigned short UINT16
#define EFIAPI
EFI_USB2_HC_PROTOCOL as defined in UEFI 2.0.
EFI_GUID gEfiUsbHcProtocolGuid
UINT64 UINTN
Unsigned value of native width.
#define VOID
Undeclared type.
Definition: Base.h:271
EFI_USB_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER SyncInterruptTransfer
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 PortNumber, IN EFI_USB_PORT_FEATURE PortFeature)
Sets a feature for the specified root hub port.
EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_NUMBER GetRootHubPortNumber
#define IN
Definition: mlx_utils.h:28
FILE_LICENCE(BSD2_PATENT)
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_CONTROL_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN BOOLEAN IsSlowDevice, IN UINT8 MaximumPacketLength, IN EFI_USB_DEVICE_REQUEST *Request, IN EFI_USB_DATA_DIRECTION TransferDirection, IN OUT VOID *Data OPTIONAL, IN OUT UINTN *DataLength OPTIONAL, IN UINTN TimeOut, OUT UINT32 *TransferResult)
Submits control transfer to a target USB device.
EFI_USB_HC_STATE
Enumration value for status of USB HC.
EFI_USB_HC_PROTOCOL_GET_STATE GetState
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
Definition: UefiBaseType.h:31
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 PortNumber, IN EFI_USB_PORT_FEATURE PortFeature)
Clears a feature for the specified root hub port.
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN UINT8 EndPointAddress, IN UINT8 MaximumPacketLength, IN OUT VOID *Data, IN UINTN DataLength, IN EFI_ASYNC_USB_TRANSFER_CALLBACK IsochronousCallBack, IN VOID *Context OPTIONAL)
Submits nonblocking isochronous transfer to an isochronous endpoint of a USB device.
volatile unsigned int DataLength
Definition: 3c90x.h:52
EFI_USB_HC_PROTOCOL_RESET Reset
EFI_USB_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER AsyncIsochronousTransfer
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_RESET)(IN EFI_USB_HC_PROTOCOL *This, IN UINT16 Attributes)
Provides software reset for the USB host controller.
EFI_STATUS(EFIAPI * EFI_USB_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER)(IN EFI_USB_HC_PROTOCOL *This, IN UINT8 DeviceAddress, IN UINT8 EndPointAddress, IN BOOLEAN IsSlowDevice, IN UINT8 MaxiumPacketLength, IN BOOLEAN IsNewTransfer, IN OUT UINT8 *DataToggle, IN UINTN PollingInterval OPTIONAL, IN UINTN DataLength OPTIONAL, IN EFI_ASYNC_USB_TRANSFER_CALLBACK CallBackFunction OPTIONAL, IN VOID *Context OPTIONAL)
Submits an asynchronous interrupt transfer to an interrupt endpoint of a USB device.
EFI_STATUS(EFIAPI * EFI_ASYNC_USB_TRANSFER_CALLBACK)(IN VOID *Data, IN UINTN DataLength, IN VOID *Context, IN UINT32 Status)
Async USB transfer callback routine.
Definition: UsbIo.h:82
UINT16 MinorRevision
The minor revision number of the USB host controller.