version 1.107.4.1.2.1, 2016/09/06 20:33:09 |
version 1.107.4.1.2.2, 2017/01/26 21:54:25 |
Line 139 struct usbd_hub { |
|
Line 139 struct usbd_hub { |
|
}; |
}; |
|
|
/*****/ |
/*****/ |
|
/* 0, root, and 1->127 */ |
|
#define USB_ROOTHUB_INDEX 1 |
|
#define USB_TOTAL_DEVICES (USB_MAX_DEVICES + 1) |
|
|
struct usbd_bus { |
struct usbd_bus { |
/* Filled by HC driver */ |
/* Filled by HC driver */ |
Line 164 struct usbd_bus { |
|
Line 167 struct usbd_bus { |
|
struct usbd_device *ub_roothub; |
struct usbd_device *ub_roothub; |
uint8_t ub_rhaddr; /* roothub address */ |
uint8_t ub_rhaddr; /* roothub address */ |
uint8_t ub_rhconf; /* roothub configuration */ |
uint8_t ub_rhconf; /* roothub configuration */ |
struct usbd_device *ub_devices[USB_MAX_DEVICES]; |
struct usbd_device *ub_devices[USB_TOTAL_DEVICES]; |
kcondvar_t ub_needsexplore_cv; |
kcondvar_t ub_needsexplore_cv; |
char ub_needsexplore;/* a hub a signalled a change */ |
char ub_needsexplore;/* a hub a signalled a change */ |
char ub_usepolling; |
char ub_usepolling; |
Line 352 usbd_xfer_isread(struct usbd_xfer *xfer) |
|
Line 355 usbd_xfer_isread(struct usbd_xfer *xfer) |
|
UE_DIR_IN; |
UE_DIR_IN; |
} |
} |
|
|
|
static inline size_t |
|
usb_addr2dindex(int addr) |
|
{ |
|
|
|
return USB_ROOTHUB_INDEX + addr; |
|
} |
|
|
/* |
/* |
* These macros reflect the current locking scheme. They might change. |
* These macros reflect the current locking scheme. They might change. |
*/ |
*/ |