TianoCore EDK2 master
Loading...
Searching...
No Matches
UsbUtility.h
Go to the documentation of this file.
1
10#ifndef _EFI_USB_UTILITY_H_
11#define _EFI_USB_UTILITY_H_
12
27 IN USB_BUS *UsbBus,
28 OUT UINT8 *MaxSpeed,
29 OUT UINT8 *NumOfPort,
30 OUT UINT8 *Is64BitCapable
31 );
32
46 IN USB_BUS *UsbBus,
47 IN UINT8 PortIndex,
48 OUT EFI_USB_PORT_STATUS *PortStatus
49 );
50
64 IN USB_BUS *UsbBus,
65 IN UINT8 PortIndex,
67 );
68
82 IN USB_BUS *UsbBus,
83 IN UINT8 PortIndex,
85 );
86
108 IN USB_BUS *UsbBus,
109 IN UINT8 DevAddr,
110 IN UINT8 DevSpeed,
111 IN UINTN MaxPacket,
112 IN EFI_USB_DEVICE_REQUEST *Request,
113 IN EFI_USB_DATA_DIRECTION Direction,
114 IN OUT VOID *Data,
115 IN OUT UINTN *DataLength,
116 IN UINTN TimeOut,
118 OUT UINT32 *UsbResult
119 );
120
145 IN USB_BUS *UsbBus,
146 IN UINT8 DevAddr,
147 IN UINT8 EpAddr,
148 IN UINT8 DevSpeed,
149 IN UINTN MaxPacket,
150 IN UINT8 BufferNum,
151 IN OUT VOID *Data[],
152 IN OUT UINTN *DataLength,
153 IN OUT UINT8 *DataToggle,
154 IN UINTN TimeOut,
156 OUT UINT32 *UsbResult
157 );
158
183 IN USB_BUS *UsbBus,
184 IN UINT8 DevAddr,
185 IN UINT8 EpAddr,
186 IN UINT8 DevSpeed,
187 IN UINTN MaxPacket,
188 IN BOOLEAN IsNewTransfer,
189 IN OUT UINT8 *DataToggle,
190 IN UINTN PollingInterval,
191 IN UINTN DataLength,
194 IN VOID *Context OPTIONAL
195 );
196
220 IN USB_BUS *UsbBus,
221 IN UINT8 DevAddr,
222 IN UINT8 EpAddr,
223 IN UINT8 DevSpeed,
224 IN UINTN MaxPacket,
225 IN OUT VOID *Data,
226 IN OUT UINTN *DataLength,
227 IN OUT UINT8 *DataToggle,
228 IN UINTN TimeOut,
230 OUT UINT32 *UsbResult
231 );
232
244 IN USB_BUS *Bus,
246 );
247
257VOID
259 IN USB_BUS *Bus,
261 );
262
273 VOID
274 );
275
276#endif
UINT64 UINTN
NODE Child(IN NODE LoopVar6, IN UINT8 LoopVar5)
Definition: Compress.c:265
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_USB_PORT_FEATURE
EFI_USB_DATA_DIRECTION
Definition: UsbIo.h:44
EFI_STATUS(EFIAPI * EFI_ASYNC_USB_TRANSFER_CALLBACK)(IN VOID *Data, IN UINTN DataLength, IN VOID *Context, IN UINT32 Status)
Definition: UsbIo.h:80
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
UINTN EFI_TPL
Definition: UefiBaseType.h:41
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_STATUS UsbHcSyncInterruptTransfer(IN USB_BUS *UsbBus, IN UINT8 DevAddr, IN UINT8 EpAddr, IN UINT8 DevSpeed, IN UINTN MaxPacket, IN OUT VOID *Data, IN OUT UINTN *DataLength, IN OUT UINT8 *DataToggle, IN UINTN TimeOut, IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator, OUT UINT32 *UsbResult)
Definition: UsbUtility.c:411
EFI_STATUS UsbHcGetRootHubPortStatus(IN USB_BUS *UsbBus, IN UINT8 PortIndex, OUT EFI_USB_PORT_STATUS *PortStatus)
Definition: UsbUtility.c:95
EFI_STATUS UsbOpenHostProtoByChild(IN USB_BUS *Bus, IN EFI_HANDLE Child)
Definition: UsbUtility.c:471
EFI_TPL UsbGetCurrentTpl(VOID)
Definition: UsbUtility.c:542
EFI_STATUS UsbHcClearRootHubPortFeature(IN USB_BUS *UsbBus, IN UINT8 PortIndex, IN EFI_USB_PORT_FEATURE Feature)
Definition: UsbUtility.c:153
EFI_STATUS UsbHcAsyncInterruptTransfer(IN USB_BUS *UsbBus, IN UINT8 DevAddr, IN UINT8 EpAddr, IN UINT8 DevSpeed, IN UINTN MaxPacket, IN BOOLEAN IsNewTransfer, IN OUT UINT8 *DataToggle, IN UINTN PollingInterval, IN UINTN DataLength, IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator, IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback, IN VOID *Context OPTIONAL)
Definition: UsbUtility.c:335
EFI_STATUS UsbHcSetRootHubPortFeature(IN USB_BUS *UsbBus, IN UINT8 PortIndex, IN EFI_USB_PORT_FEATURE Feature)
Definition: UsbUtility.c:124
EFI_STATUS UsbHcBulkTransfer(IN USB_BUS *UsbBus, IN UINT8 DevAddr, IN UINT8 EpAddr, IN UINT8 DevSpeed, IN UINTN MaxPacket, IN UINT8 BufferNum, IN OUT VOID *Data[], IN OUT UINTN *DataLength, IN OUT UINT8 *DataToggle, IN UINTN TimeOut, IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator, OUT UINT32 *UsbResult)
Definition: UsbUtility.c:263
VOID UsbCloseHostProtoByChild(IN USB_BUS *Bus, IN EFI_HANDLE Child)
Definition: UsbUtility.c:511
EFI_STATUS UsbHcControlTransfer(IN USB_BUS *UsbBus, IN UINT8 DevAddr, IN UINT8 DevSpeed, IN UINTN MaxPacket, IN EFI_USB_DEVICE_REQUEST *Request, IN EFI_USB_DATA_DIRECTION Direction, IN OUT VOID *Data, IN OUT UINTN *DataLength, IN UINTN TimeOut, IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator, OUT UINT32 *UsbResult)
Definition: UsbUtility.c:190
EFI_STATUS UsbHcGetCapability(IN USB_BUS *UsbBus, OUT UINT8 *MaxSpeed, OUT UINT8 *NumOfPort, OUT UINT8 *Is64BitCapable)
Definition: UsbUtility.c:57