beautypg.com

Efi_usb_hc_protocol.setroothubportfeature(), Setroothubportfeature(), Func – Intel Extensible Firmware Interface User Manual

Page 570

background image

Extensible Firmware Interface Specification

14-30 12/01/02

Version

1.10

EFI_USB_HC_PROTOCOL.SetRootHubPortFeature()

Summary

Sets a feature for the specified root hub port.

Prototype

typedef
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

);

Parameters

This

A pointer to the

EFI_USB_HC_PROTOCOL

instance. Type

EFI_USB_HC_PROTOCOL

is defined in Section 14.1.

PortNumber

Specifies the root hub port whose feature is requested to be set.
This value is zero based. For example, if a root hub has two ports,
then the first port is number 0, and the second port is numbered 1.

PortFeature

Indicates the feature selector associated with the feature set
request. The port feature indicator is defined in “Related
Definitions” and Table 14-3 below.

Related Definitions

typedef enum {
EfiUsbPortEnable

= 1,

EfiUsbPortSuspend = 2,
EfiUsbPortReset

= 4,

EfiUsbPortPower

= 8,

EfiUsbPortConnectChange = 16,
EfiUsbPortEnableChange

= 17,

EfiUsbPortSuspendChange

= 18,

EfiUsbPortOverCurrentChange

= 19,

EfiUsbPortResetChange

= 20

} EFI_USB_PORT_FEATURE;