Changes in uspace/lib/usbdev/src/pipes.c [9f7276d:7fc260ff] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipes.c
r9f7276d r7fc260ff 52 52 * @return USB address or error code. 53 53 */ 54 static usb_address_t get_my_address(async_sess_t *sess, ddf_dev_t *dev)54 static usb_address_t get_my_address(async_sess_t *sess, const ddf_dev_t *dev) 55 55 { 56 56 async_exch_t *exch = async_exchange_begin(sess); 57 57 58 /*59 * We are sending special value as a handle - zero - to get60 * handle of the parent function (that handle was used61 * when registering our device @p dev.62 */63 58 sysarg_t address; 64 int rc = async_req_ 2_1(exch, DEV_IFACE_ID(USB_DEV_IFACE),65 IPC_M_USB_GET_ ADDRESS, 0, &address);59 int rc = async_req_1_1(exch, DEV_IFACE_ID(USB_DEV_IFACE), 60 IPC_M_USB_GET_MY_ADDRESS, &address); 66 61 67 62 async_exchange_end(exch); … … 78 73 * @return Interface number (negative code means any). 79 74 */ 80 int usb_device_get_assigned_interface(ddf_dev_t *device) 81 { 75 int usb_device_get_assigned_interface(const ddf_dev_t *device) 76 { 77 assert(device); 82 78 async_sess_t *parent_sess = 83 79 devman_parent_device_connect(EXCHANGE_ATOMIC, device->handle, … … 108 104 */ 109 105 int usb_device_connection_initialize_from_device( 110 usb_device_connection_t *connection, ddf_dev_t *dev)106 usb_device_connection_t *connection, const ddf_dev_t *dev) 111 107 { 112 108 assert(connection);
Note:
See TracChangeset
for help on using the changeset viewer.