Changeset d1974966 in mainline
- Timestamp:
- 2013-01-05T13:29:21Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9399c0
- Parents:
- 97663ee
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vuhid/device.c
r97663ee rd1974966 60 60 static int on_data_to_device(usbvirt_device_t *dev, 61 61 usb_endpoint_t ep, usb_transfer_type_t tr_type, 62 void *data, size_t data_size)62 const void *data, size_t data_size) 63 63 { 64 64 vuhid_data_t *vuhid = dev->device_data; -
uspace/app/vuhid/hids/bootkbd.c
r97663ee rd1974966 102 102 103 103 static int on_data_out(vuhid_interface_t *iface, 104 void *buffer, size_t buffer_size)104 const void *buffer, size_t buffer_size) 105 105 { 106 106 if (buffer_size == 0) { -
uspace/app/vuhid/virthid.h
r97663ee rd1974966 71 71 72 72 int (*on_data_in)(vuhid_interface_t *, void *, size_t, size_t *); 73 int (*on_data_out)(vuhid_interface_t *, void *, size_t);73 int (*on_data_out)(vuhid_interface_t *, const void *, size_t); 74 74 void (*live)(vuhid_interface_t *); 75 75 -
uspace/lib/usbvirt/include/usbvirt/device.h
r97663ee rd1974966 57 57 typedef int (*usbvirt_on_data_to_device_t)(usbvirt_device_t *dev, 58 58 usb_endpoint_t endpoint, usb_transfer_type_t transfer_type, 59 void *buffer, size_t buffer_size);59 const void *buffer, size_t buffer_size); 60 60 61 61 /** Callback for data from device (IN transaction). … … 208 208 uint8_t *, size_t *, const void *, size_t); 209 209 210 int usbvirt_control_write(usbvirt_device_t *, void *, size_t, void *, size_t);211 int usbvirt_control_read(usbvirt_device_t *, void *, size_t, void *, size_t, size_t *);210 int usbvirt_control_write(usbvirt_device_t *, const void *, size_t, void *, size_t); 211 int usbvirt_control_read(usbvirt_device_t *, const void *, size_t, void *, size_t, size_t *); 212 212 int usbvirt_data_out(usbvirt_device_t *, usb_transfer_type_t, usb_endpoint_t, 213 void *, size_t);213 const void *, size_t); 214 214 int usbvirt_data_in(usbvirt_device_t *, usb_transfer_type_t, usb_endpoint_t, 215 215 void *, size_t, size_t *); -
uspace/lib/usbvirt/src/ctrltransfer.c
r97663ee rd1974966 51 51 int process_control_transfer(usbvirt_device_t *dev, 52 52 usbvirt_control_request_handler_t *control_handlers, 53 usb_device_request_setup_packet_t *setup,53 const usb_device_request_setup_packet_t *setup, 54 54 uint8_t *data, size_t *data_sent_size) 55 55 { -
uspace/lib/usbvirt/src/private.h
r97663ee rd1974966 40 40 int process_control_transfer(usbvirt_device_t *, 41 41 usbvirt_control_request_handler_t *, 42 usb_device_request_setup_packet_t *,42 const usb_device_request_setup_packet_t *, 43 43 uint8_t *, size_t *); 44 44 -
uspace/lib/usbvirt/src/transfer.c
r97663ee rd1974966 51 51 */ 52 52 static int usbvirt_control_transfer(usbvirt_device_t *dev, 53 void *setup, size_t setup_size,53 const void *setup, size_t setup_size, 54 54 void *data, size_t data_size, size_t *data_size_sent) 55 55 { … … 60 60 return ESTALL; 61 61 } 62 usb_device_request_setup_packet_t *setup_packet = setup;62 const usb_device_request_setup_packet_t *setup_packet = setup; 63 63 if (data_size != setup_packet->length) { 64 64 return ESTALL; … … 100 100 * @return Error code. 101 101 */ 102 int usbvirt_control_write(usbvirt_device_t *dev, void *setup, size_t setup_size,103 void *data, size_t data_size)102 int usbvirt_control_write(usbvirt_device_t *dev, const void *setup, 103 size_t setup_size, void *data, size_t data_size) 104 104 { 105 105 return usbvirt_control_transfer(dev, setup, setup_size, … … 119 119 * @return Error code. 120 120 */ 121 int usbvirt_control_read(usbvirt_device_t *dev, void *setup, size_t setup_size,121 int usbvirt_control_read(usbvirt_device_t *dev, const void *setup, size_t setup_size, 122 122 void *data, size_t data_size, size_t *data_size_sent) 123 123 { … … 136 136 */ 137 137 int usbvirt_data_out(usbvirt_device_t *dev, usb_transfer_type_t transf_type, 138 usb_endpoint_t endpoint, void *data, size_t data_size)138 usb_endpoint_t endpoint, const void *data, size_t data_size) 139 139 { 140 140 if ((endpoint <= 0) || (endpoint >= USBVIRT_ENDPOINT_MAX)) {
Note:
See TracChangeset
for help on using the changeset viewer.