XHCI Rename pdevice to usb_device
This commit is contained in:
@@ -67,25 +67,25 @@ struct xhci_ring {
|
||||
uint8_t cycle_bit;
|
||||
};
|
||||
|
||||
struct xhci_pdevice_config {
|
||||
struct xhci_usb_device_config {
|
||||
struct usb_config_desc desc;
|
||||
};
|
||||
|
||||
struct xhci_pdevice_if {
|
||||
struct xhci_usb_device_if {
|
||||
struct usb_if_desc desc;
|
||||
};
|
||||
|
||||
struct xhci_pdevice_endpoint {
|
||||
struct xhci_usb_device_endpoint {
|
||||
struct usb_endpoint_desc desc;
|
||||
struct xhci_ring transfer_ring;
|
||||
};
|
||||
|
||||
#define XHCI_PDEVICE_CONFIGS_MAX 16
|
||||
#define XHCI_PDEVICE_IFS_MAX 16
|
||||
#define XHCI_PDEVICE_ENDPOINTS_MAX 16
|
||||
#define XHCI_USB_DEVICE_CONFIGS_MAX 16
|
||||
#define XHCI_USB_DEVICE_IFS_MAX 16
|
||||
#define XHCI_USB_DEVICE_ENDPOINTS_MAX 16
|
||||
|
||||
struct xhci_pdevice {
|
||||
struct list_node_link pdevices_link;
|
||||
struct xhci_usb_device {
|
||||
struct list_node_link usb_devices_link;
|
||||
struct xhci_port* xhci_port;
|
||||
int slot_id;
|
||||
|
||||
@@ -94,13 +94,13 @@ struct xhci_pdevice {
|
||||
struct usb_device_desc device_desc;
|
||||
struct usb_config_desc config_desc;
|
||||
|
||||
struct xhci_pdevice_config configs[XHCI_PDEVICE_CONFIGS_MAX];
|
||||
struct xhci_usb_device_config configs[XHCI_USB_DEVICE_CONFIGS_MAX];
|
||||
size_t configs_count;
|
||||
|
||||
struct xhci_pdevice_if ifs[XHCI_PDEVICE_IFS_MAX];
|
||||
struct xhci_usb_device_if ifs[XHCI_USB_DEVICE_IFS_MAX];
|
||||
size_t ifs_count;
|
||||
|
||||
struct xhci_pdevice_endpoint endpoints[XHCI_PDEVICE_ENDPOINTS_MAX];
|
||||
struct xhci_usb_device_endpoint endpoints[XHCI_USB_DEVICE_ENDPOINTS_MAX];
|
||||
size_t endpoints_count;
|
||||
};
|
||||
|
||||
@@ -139,7 +139,7 @@ struct xhci {
|
||||
size_t xhci_ctx_size;
|
||||
|
||||
struct list_node_link* xhci_ports;
|
||||
struct list_node_link* xhci_pdevices;
|
||||
struct list_node_link* xhci_usb_devices;
|
||||
|
||||
atomic_bool pending;
|
||||
uint8_t last_slot_id;
|
||||
|
||||
Reference in New Issue
Block a user