diff options
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 69d845739bc2..73b68d1f2cb0 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -376,6 +376,12 @@ struct usb_bus { | |||
| 376 | 376 | ||
| 377 | struct usb_tt; | 377 | struct usb_tt; |
| 378 | 378 | ||
| 379 | enum usb_device_removable { | ||
| 380 | USB_DEVICE_REMOVABLE_UNKNOWN = 0, | ||
| 381 | USB_DEVICE_REMOVABLE, | ||
| 382 | USB_DEVICE_FIXED, | ||
| 383 | }; | ||
| 384 | |||
| 379 | /** | 385 | /** |
| 380 | * struct usb_device - kernel's representation of a USB device | 386 | * struct usb_device - kernel's representation of a USB device |
| 381 | * @devnum: device number; address on a USB bus | 387 | * @devnum: device number; address on a USB bus |
| @@ -432,6 +438,7 @@ struct usb_tt; | |||
| 432 | * @wusb_dev: if this is a Wireless USB device, link to the WUSB | 438 | * @wusb_dev: if this is a Wireless USB device, link to the WUSB |
| 433 | * specific data for the device. | 439 | * specific data for the device. |
| 434 | * @slot_id: Slot ID assigned by xHCI | 440 | * @slot_id: Slot ID assigned by xHCI |
| 441 | * @removable: Device can be physically removed from this port | ||
| 435 | * | 442 | * |
| 436 | * Notes: | 443 | * Notes: |
| 437 | * Usbcore drivers should not set usbdev->state directly. Instead use | 444 | * Usbcore drivers should not set usbdev->state directly. Instead use |
| @@ -494,7 +501,7 @@ struct usb_device { | |||
| 494 | #endif | 501 | #endif |
| 495 | 502 | ||
| 496 | int maxchild; | 503 | int maxchild; |
| 497 | struct usb_device *children[USB_MAXCHILDREN]; | 504 | struct usb_device **children; |
| 498 | 505 | ||
| 499 | u32 quirks; | 506 | u32 quirks; |
| 500 | atomic_t urbnum; | 507 | atomic_t urbnum; |
| @@ -509,6 +516,7 @@ struct usb_device { | |||
| 509 | #endif | 516 | #endif |
| 510 | struct wusb_dev *wusb_dev; | 517 | struct wusb_dev *wusb_dev; |
| 511 | int slot_id; | 518 | int slot_id; |
| 519 | enum usb_device_removable removable; | ||
| 512 | }; | 520 | }; |
| 513 | #define to_usb_device(d) container_of(d, struct usb_device, dev) | 521 | #define to_usb_device(d) container_of(d, struct usb_device, dev) |
| 514 | 522 | ||
