Changes in uspace/drv/bus/usb/ehci/res.c [56fd7cf:d92c1ca] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/res.c
r56fd7cf rd92c1ca 76 76 * @return Error code. 77 77 */ 78 int get_my_registers( ddf_dev_t *dev,78 int get_my_registers(const ddf_dev_t *dev, 79 79 uintptr_t *mem_reg_address, size_t *mem_reg_size, int *irq_no) 80 80 { … … 82 82 83 83 async_sess_t *parent_sess = devman_parent_device_connect( 84 EXCHANGE_SERIALIZE, d df_dev_get_handle(dev), IPC_FLAG_BLOCKING);84 EXCHANGE_SERIALIZE, dev->handle, IPC_FLAG_BLOCKING); 85 85 if (!parent_sess) 86 86 return ENOMEM; … … 115 115 * @return Error code. 116 116 */ 117 int enable_interrupts( ddf_dev_t *device)117 int enable_interrupts(const ddf_dev_t *device) 118 118 { 119 119 async_sess_t *parent_sess = devman_parent_device_connect( 120 EXCHANGE_SERIALIZE, d df_dev_get_handle(device), IPC_FLAG_BLOCKING);120 EXCHANGE_SERIALIZE, device->handle, IPC_FLAG_BLOCKING); 121 121 if (!parent_sess) 122 122 return ENOMEM; … … 134 134 * @return Error code. 135 135 */ 136 static int disable_extended_caps( ddf_dev_t *device, unsigned eecp)136 static int disable_extended_caps(const ddf_dev_t *device, unsigned eecp) 137 137 { 138 138 /* nothing to do */ … … 141 141 142 142 async_sess_t *parent_sess = devman_parent_device_connect( 143 EXCHANGE_SERIALIZE, d df_dev_get_handle(device), IPC_FLAG_BLOCKING);143 EXCHANGE_SERIALIZE, device->handle, IPC_FLAG_BLOCKING); 144 144 if (!parent_sess) 145 145 return ENOMEM; … … 234 234 } 235 235 236 int disable_legacy( ddf_dev_t *device, uintptr_t reg_base, size_t reg_size)236 int disable_legacy(const ddf_dev_t *device, uintptr_t reg_base, size_t reg_size) 237 237 { 238 238 assert(device);
Note:
See TracChangeset
for help on using the changeset viewer.