Changes in uspace/drv/bus/usb/usbhub/port.h [a1cb170:cae002c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.h
ra1cb170 rcae002c 40 40 #include <usb/classes/hub.h> 41 41 42 typedef struct usb_hub_ info_t usb_hub_info_t;42 typedef struct usb_hub_dev usb_hub_dev_t; 43 43 44 44 /** Information about single port on a hub. */ 45 45 typedef struct { 46 /* Port number as reported in descriptors. */ 46 47 size_t port_number; 48 /** Device communication pipe. */ 47 49 usb_pipe_t *control_pipe; 48 50 /** Mutex needed not only by CV for checking port reset. */ … … 58 60 59 61 /** Information about attached device. */ 60 usb_h c_attached_device_t attached_device;62 usb_hub_attached_device_t attached_device; 61 63 } usb_hub_port_t; 62 64 … … 70 72 assert(port); 71 73 port->attached_device.address = -1; 72 port->attached_device. handle = 0;74 port->attached_device.fun = NULL; 73 75 port->port_number = port_number; 74 76 port->control_pipe = control_pipe; … … 76 78 fibril_condvar_initialize(&port->reset_cv); 77 79 } 78 79 void usb_hub_port_reset_fail(usb_hub_port_t *port); 80 void usb_hub_port_process_interrupt(usb_hub_port_t *port, usb_hub_info_t *hub); 80 int usb_hub_port_fini(usb_hub_port_t *port, usb_hub_dev_t *hub); 81 81 int usb_hub_port_clear_feature( 82 82 usb_hub_port_t *port, usb_hub_class_feature_t feature); 83 83 int usb_hub_port_set_feature( 84 84 usb_hub_port_t *port, usb_hub_class_feature_t feature); 85 void usb_hub_port_reset_fail(usb_hub_port_t *port); 86 void usb_hub_port_process_interrupt(usb_hub_port_t *port, usb_hub_dev_t *hub); 85 87 86 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.