Changeset b803845 in mainline
- Timestamp:
- 2011-10-15T14:56:23Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f8f09f
- Parents:
- 9c5fd7a
- Location:
- uspace
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/generic/hiddev.c
r9c5fd7a rb803845 48 48 /*----------------------------------------------------------------------------*/ 49 49 50 usb_endpoint_description_t usb_hid_generic_poll_endpoint_description = {50 const usb_endpoint_description_t usb_hid_generic_poll_endpoint_description = { 51 51 .transfer_type = USB_TRANSFER_INTERRUPT, 52 52 .direction = USB_DIRECTION_IN, -
uspace/drv/bus/usb/usbhid/generic/hiddev.h
r9c5fd7a rb803845 41 41 struct usb_hid_dev; 42 42 43 usb_endpoint_description_t usb_hid_generic_poll_endpoint_description; 43 extern const usb_endpoint_description_t 44 usb_hid_generic_poll_endpoint_description; 44 45 45 46 const char *HID_GENERIC_FUN_NAME; -
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
r9c5fd7a rb803845 88 88 89 89 /** Keyboard polling endpoint description for boot protocol class. */ 90 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description = {90 const usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description = { 91 91 .transfer_type = USB_TRANSFER_INTERRUPT, 92 92 .direction = USB_DIRECTION_IN, -
uspace/drv/bus/usb/usbhid/kbd/kbddev.h
r9c5fd7a rb803845 118 118 /*----------------------------------------------------------------------------*/ 119 119 120 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;120 extern const usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description; 121 121 122 122 const char *HID_KBD_FUN_NAME; -
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r9c5fd7a rb803845 59 59 /*----------------------------------------------------------------------------*/ 60 60 61 usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = {61 const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = { 62 62 .transfer_type = USB_TRANSFER_INTERRUPT, 63 63 .direction = USB_DIRECTION_IN, -
uspace/drv/bus/usb/usbhid/mouse/mousedev.h
r9c5fd7a rb803845 63 63 /*----------------------------------------------------------------------------*/ 64 64 65 usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description;65 extern const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description; 66 66 67 67 const char *HID_MOUSE_FUN_NAME; -
uspace/drv/bus/usb/usbhid/usbhid.c
r9c5fd7a rb803845 54 54 55 55 /* Array of endpoints expected on the device, NULL terminated. */ 56 usb_endpoint_description_t *usb_hid_endpoints[] = {56 const usb_endpoint_description_t *usb_hid_endpoints[] = { 57 57 &usb_hid_kbd_poll_endpoint_description, 58 58 &usb_hid_mouse_poll_endpoint_description, -
uspace/drv/bus/usb/usbhid/usbhid.h
r9c5fd7a rb803845 141 141 }; 142 142 143 extern usb_endpoint_description_t *usb_hid_endpoints[];143 extern const usb_endpoint_description_t *usb_hid_endpoints[]; 144 144 145 145 /*----------------------------------------------------------------------------*/ -
uspace/drv/bus/usb/usbhub/main.c
r9c5fd7a rb803845 67 67 68 68 /** Hub endpoints, excluding control endpoint. */ 69 static usb_endpoint_description_t *usb_hub_endpoints[] = {69 static const usb_endpoint_description_t *usb_hub_endpoints[] = { 70 70 &hub_status_change_endpoint_description, 71 71 NULL, -
uspace/drv/bus/usb/usbmast/main.c
r9c5fd7a rb803845 72 72 }; 73 73 74 usb_endpoint_description_t *mast_endpoints[] = {74 static const usb_endpoint_description_t *mast_endpoints[] = { 75 75 &bulk_in_ep, 76 76 &bulk_out_ep, -
uspace/drv/bus/usb/usbmouse/init.c
r9c5fd7a rb803845 44 44 45 45 /** Mouse polling endpoint description for boot protocol subclass. */ 46 usb_endpoint_description_t poll_endpoint_description = {46 const usb_endpoint_description_t poll_endpoint_description = { 47 47 .transfer_type = USB_TRANSFER_INTERRUPT, 48 48 .direction = USB_DIRECTION_IN, -
uspace/drv/bus/usb/usbmouse/main.c
r9c5fd7a rb803845 83 83 }; 84 84 85 static usb_endpoint_description_t *endpoints[] = {85 static const usb_endpoint_description_t *endpoints[] = { 86 86 &poll_endpoint_description, 87 87 NULL -
uspace/drv/bus/usb/usbmouse/mouse.h
r9c5fd7a rb803845 61 61 } usb_mouse_t; 62 62 63 extern usb_endpoint_description_t poll_endpoint_description;63 extern const usb_endpoint_description_t poll_endpoint_description; 64 64 65 65 extern int usb_mouse_create(usb_device_t *); -
uspace/lib/usbdev/include/usb/dev/driver.h
r9c5fd7a rb803845 156 156 \endcode 157 157 */ 158 usb_endpoint_description_t **endpoints;158 const usb_endpoint_description_t **endpoints; 159 159 /** Driver ops. */ 160 160 const usb_driver_ops_t *ops; … … 164 164 165 165 int usb_device_select_interface(usb_device_t *, uint8_t, 166 usb_endpoint_description_t **);166 const usb_endpoint_description_t **); 167 167 168 168 int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *); 169 169 int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *, 170 usb_endpoint_description_t **, const uint8_t *, size_t, int, int,170 const usb_endpoint_description_t **, const uint8_t *, size_t, int, int, 171 171 usb_endpoint_mapping_t **, size_t *); 172 172 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 173 int usb_device_create(ddf_dev_t *, usb_endpoint_description_t **, usb_device_t **, const char **); 173 int usb_device_create(ddf_dev_t *, const usb_endpoint_description_t **, 174 usb_device_t **, const char **); 174 175 void usb_device_deinit(usb_device_t *); 175 176 void * usb_device_data_alloc(usb_device_t *, size_t); -
uspace/lib/usbdev/src/devdrv.c
r9c5fd7a rb803845 81 81 * @return Number of pipes (excluding default control pipe). 82 82 */ 83 static size_t count_other_pipes( usb_endpoint_description_t **endpoints)83 static size_t count_other_pipes(const usb_endpoint_description_t **endpoints) 84 84 { 85 85 size_t count = 0; … … 101 101 * @return Error code. 102 102 */ 103 static int initialize_other_pipes( usb_endpoint_description_t **endpoints,103 static int initialize_other_pipes(const usb_endpoint_description_t **endpoints, 104 104 usb_device_t *dev, int alternate_setting) 105 105 { … … 238 238 */ 239 239 int usb_device_select_interface(usb_device_t *dev, uint8_t alternate_setting, 240 usb_endpoint_description_t **endpoints)240 const usb_endpoint_description_t **endpoints) 241 241 { 242 242 if (dev->interface_no < 0) { … … 321 321 */ 322 322 int usb_device_create_pipes(const ddf_dev_t *dev, usb_device_connection_t *wire, 323 usb_endpoint_description_t **endpoints,323 const usb_endpoint_description_t **endpoints, 324 324 const uint8_t *config_descr, size_t config_descr_size, 325 325 int interface_no, int interface_setting, … … 526 526 */ 527 527 int usb_device_create(ddf_dev_t *ddf_dev, 528 usb_endpoint_description_t **endpoints,528 const usb_endpoint_description_t **endpoints, 529 529 usb_device_t **dev_ptr, const char **errstr_ptr) 530 530 {
Note:
See TracChangeset
for help on using the changeset viewer.