TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiUsbLib.h
Go to the documentation of this file.
1
10#ifndef __USB_DXE_LIB_H__
11#define __USB_DXE_LIB_H__
12
13#include <Protocol/UsbIo.h>
14
35EFIAPI
38 IN UINT8 Interface,
39 OUT EFI_USB_HID_DESCRIPTOR *HidDescriptor
40 );
41
64EFIAPI
67 IN UINT8 Interface,
68 IN UINT16 DescriptorLength,
69 OUT UINT8 *DescriptorBuffer
70 );
71
90EFIAPI
93 IN UINT8 Interface,
94 OUT UINT8 *Protocol
95 );
96
114EFIAPI
116 IN EFI_USB_IO_PROTOCOL *UsbIo,
117 IN UINT8 Interface,
118 IN UINT8 Protocol
119 );
120
139EFIAPI
141 IN EFI_USB_IO_PROTOCOL *UsbIo,
142 IN UINT8 Interface,
143 IN UINT8 ReportId,
144 IN UINT8 Duration
145 );
146
166EFIAPI
168 IN EFI_USB_IO_PROTOCOL *UsbIo,
169 IN UINT8 Interface,
170 IN UINT8 ReportId,
171 OUT UINT8 *Duration
172 );
173
196EFIAPI
198 IN EFI_USB_IO_PROTOCOL *UsbIo,
199 IN UINT8 Interface,
200 IN UINT8 ReportId,
201 IN UINT8 ReportType,
202 IN UINT16 ReportLen,
203 IN UINT8 *Report
204 );
205
231EFIAPI
233 IN EFI_USB_IO_PROTOCOL *UsbIo,
234 IN UINT8 Interface,
235 IN UINT8 ReportId,
236 IN UINT8 ReportType,
237 IN UINT16 ReportLen,
238 OUT UINT8 *Report
239 );
240
268EFIAPI
270 IN EFI_USB_IO_PROTOCOL *UsbIo,
271 IN UINT16 Value,
272 IN UINT16 Index,
273 IN UINT16 DescriptorLength,
274 OUT VOID *Descriptor,
275 OUT UINT32 *Status
276 );
277
302EFIAPI
304 IN EFI_USB_IO_PROTOCOL *UsbIo,
305 IN UINT16 Value,
306 IN UINT16 Index,
307 IN UINT16 DescriptorLength,
308 IN VOID *Descriptor,
309 OUT UINT32 *Status
310 );
311
334EFIAPI
336 IN EFI_USB_IO_PROTOCOL *UsbIo,
337 IN UINT16 Interface,
338 OUT UINT16 *AlternateSetting,
339 OUT UINT32 *Status
340 );
341
363EFIAPI
365 IN EFI_USB_IO_PROTOCOL *UsbIo,
366 IN UINT16 Interface,
367 IN UINT16 AlternateSetting,
368 OUT UINT32 *Status
369 );
370
392EFIAPI
394 IN EFI_USB_IO_PROTOCOL *UsbIo,
395 OUT UINT16 *ConfigurationValue,
396 OUT UINT32 *Status
397 );
398
419EFIAPI
421 IN EFI_USB_IO_PROTOCOL *UsbIo,
422 IN UINT16 ConfigurationValue,
423 OUT UINT32 *Status
424 );
425
450EFIAPI
452 IN EFI_USB_IO_PROTOCOL *UsbIo,
453 IN USB_TYPES_DEFINITION Recipient,
454 IN UINT16 Value,
455 IN UINT16 Target,
456 OUT UINT32 *Status
457 );
458
483EFIAPI
485 IN EFI_USB_IO_PROTOCOL *UsbIo,
486 IN USB_TYPES_DEFINITION Recipient,
487 IN UINT16 Value,
488 IN UINT16 Target,
489 OUT UINT32 *Status
490 );
491
517EFIAPI
519 IN EFI_USB_IO_PROTOCOL *UsbIo,
520 IN USB_TYPES_DEFINITION Recipient,
521 IN UINT16 Target,
522 OUT UINT16 *DeviceStatus,
523 OUT UINT32 *Status
524 );
525
548EFIAPI
550 IN EFI_USB_IO_PROTOCOL *UsbIo,
551 IN UINT8 Endpoint,
552 OUT UINT32 *Status
553 );
554
555#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS EFIAPI UsbGetReportDescriptor(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT16 DescriptorLength, OUT UINT8 *DescriptorBuffer)
Definition: Hid.c:102
EFI_STATUS EFIAPI UsbSetReportRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT8 ReportId, IN UINT8 ReportType, IN UINT16 ReportLen, IN UINT8 *Report)
Definition: Hid.c:373
EFI_STATUS EFIAPI UsbGetConfiguration(IN EFI_USB_IO_PROTOCOL *UsbIo, OUT UINT16 *ConfigurationValue, OUT UINT32 *Status)
Definition: UsbDxeLib.c:264
EFI_STATUS EFIAPI UsbSetProtocolRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT8 Protocol)
Definition: Hid.c:210
EFI_STATUS EFIAPI UsbGetReportRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT8 ReportId, IN UINT8 ReportType, IN UINT16 ReportLen, OUT UINT8 *Report)
Definition: Hid.c:437
EFI_STATUS EFIAPI UsbSetDescriptor(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 Value, IN UINT16 Index, IN UINT16 DescriptorLength, IN VOID *Descriptor, OUT UINT32 *Status)
Definition: UsbDxeLib.c:100
EFI_STATUS EFIAPI UsbGetProtocolRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, OUT UINT8 *Protocol)
Definition: Hid.c:157
EFI_STATUS EFIAPI UsbClearFeature(IN EFI_USB_IO_PROTOCOL *UsbIo, IN USB_TYPES_DEFINITION Recipient, IN UINT16 Value, IN UINT16 Target, OUT UINT32 *Status)
Definition: UsbDxeLib.c:444
EFI_STATUS EFIAPI UsbSetInterface(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 Interface, IN UINT16 AlternateSetting, OUT UINT32 *Status)
Definition: UsbDxeLib.c:212
EFI_STATUS EFIAPI UsbClearEndpointHalt(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Endpoint, OUT UINT32 *Status)
Definition: UsbDxeLib.c:595
EFI_STATUS EFIAPI UsbSetIdleRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT8 ReportId, IN UINT8 Duration)
Definition: Hid.c:262
EFI_STATUS EFIAPI UsbGetInterface(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 Interface, OUT UINT16 *AlternateSetting, OUT UINT32 *Status)
Definition: UsbDxeLib.c:157
EFI_STATUS EFIAPI UsbGetHidDescriptor(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, OUT EFI_USB_HID_DESCRIPTOR *HidDescriptor)
Definition: Hid.c:47
EFI_STATUS EFIAPI UsbSetConfiguration(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 ConfigurationValue, OUT UINT32 *Status)
Definition: UsbDxeLib.c:316
EFI_STATUS EFIAPI UsbSetFeature(IN EFI_USB_IO_PROTOCOL *UsbIo, IN USB_TYPES_DEFINITION Recipient, IN UINT16 Value, IN UINT16 Target, OUT UINT32 *Status)
Definition: UsbDxeLib.c:369
EFI_STATUS EFIAPI UsbGetStatus(IN EFI_USB_IO_PROTOCOL *UsbIo, IN USB_TYPES_DEFINITION Recipient, IN UINT16 Target, OUT UINT16 *DeviceStatus, OUT UINT32 *Status)
Definition: UsbDxeLib.c:520
EFI_STATUS EFIAPI UsbGetDescriptor(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT16 Value, IN UINT16 Index, IN UINT16 DescriptorLength, OUT VOID *Descriptor, OUT UINT32 *Status)
Definition: UsbDxeLib.c:41
EFI_STATUS EFIAPI UsbGetIdleRequest(IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 Interface, IN UINT8 ReportId, OUT UINT8 *Duration)
Definition: Hid.c:315