History

USB: PD: additional feature selectors

This adds the feature selectors from Table 9-8

Oliver Neukum committed 10 years ago

Commit 351e67a1 parent e1669f41 file · +16 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/usb/ch9.h+16−0
@@ -172,6 +172,22 @@ · 171 unmodified lines
172172 #define USB_DEV_STAT_U2_ENABLED 3 /* transition into U2 state */
173173 #define USB_DEV_STAT_LTM_ENABLED 4 /* Latency tolerance messages */
174174
175+/*
176+ * Feature selectors from Table 9-8 USB Power Delivery spec
177+ */
178+#define USB_DEVICE_BATTERY_WAKE_MASK 40
179+#define USB_DEVICE_OS_IS_PD_AWARE 41
180+#define USB_DEVICE_POLICY_MODE 42
181+#define USB_PORT_PR_SWAP 43
182+#define USB_PORT_GOTO_MIN 44
183+#define USB_PORT_RETURN_POWER 45
184+#define USB_PORT_ACCEPT_PD_REQUEST 46
185+#define USB_PORT_REJECT_PD_REQUEST 47
186+#define USB_PORT_PORT_PD_RESET 48
187+#define USB_PORT_C_PORT_PD_CHANGE 49
188+#define USB_PORT_CABLE_PD_RESET 50
189+#define USB_DEVICE_CHARGING_POLICY 54
190+
175191 /**
176192 * struct usb_ctrlrequest - SETUP data for a USB device control request
177193 * @bRequestType: matches the USB bmRequestType field

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t