Changes in uspace/drv/nic/ar9271/ath_usb.c [8a64320e:58563585] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ath_usb.c
r8a64320e r58563585 36 36 #include <usb/debug.h> 37 37 #include <malloc.h> 38 #include <errno.h> 38 39 #include "ath_usb.h" 39 40 … … 97 98 { 98 99 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 99 usb_pipe_t *pipe = 100 &ath_usb->usb_device->pipes[ath_usb->output_ctrl_pipe_number].pipe;100 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 101 ath_usb->usb_device, ath_usb->output_ctrl_pipe_number)->pipe; 101 102 102 103 return usb_pipe_write(pipe, buffer, buffer_size); … … 117 118 { 118 119 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 119 usb_pipe_t *pipe = 120 &ath_usb->usb_device->pipes[ath_usb->input_ctrl_pipe_number].pipe;120 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 121 ath_usb->usb_device, ath_usb->input_ctrl_pipe_number)->pipe; 121 122 122 123 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); … … 147 148 148 149 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 149 usb_pipe_t *pipe = 150 &ath_usb->usb_device->pipes[ath_usb->output_data_pipe_number].pipe;150 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 151 ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe; 151 152 152 153 int ret_val = usb_pipe_write(pipe, complete_buffer, … … 172 173 { 173 174 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 174 usb_pipe_t *pipe = 175 &ath_usb->usb_device->pipes[ath_usb->input_data_pipe_number].pipe;175 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 176 ath_usb->usb_device, ath_usb->input_data_pipe_number)->pipe; 176 177 177 return usb_pipe_read(pipe, buffer, buffer_size, 178 transferred_size); 178 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.