Changes in uspace/drv/nic/ar9271/ath_usb.c [fe97c5e:8a64320e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ath_usb.c
rfe97c5e r8a64320e 36 36 #include <usb/debug.h> 37 37 #include <malloc.h> 38 #include <errno.h>39 38 #include "ath_usb.h" 40 39 … … 98 97 { 99 98 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 100 usb_pipe_t *pipe = &usb_device_get_mapped_ep(101 ath_usb->usb_device, ath_usb->output_ctrl_pipe_number)->pipe;102 99 usb_pipe_t *pipe = 100 &ath_usb->usb_device->pipes[ath_usb->output_ctrl_pipe_number].pipe; 101 103 102 return usb_pipe_write(pipe, buffer, buffer_size); 104 103 } … … 118 117 { 119 118 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 120 usb_pipe_t *pipe = &usb_device_get_mapped_ep(121 ath_usb->usb_device, ath_usb->input_ctrl_pipe_number)->pipe;122 119 usb_pipe_t *pipe = 120 &ath_usb->usb_device->pipes[ath_usb->input_ctrl_pipe_number].pipe; 121 123 122 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 124 123 } … … 141 140 memcpy(complete_buffer + sizeof(ath_usb_data_header_t), 142 141 buffer, buffer_size); 143 142 144 143 ath_usb_data_header_t *data_header = 145 144 (ath_usb_data_header_t *) complete_buffer; 146 145 data_header->length = host2uint16_t_le(buffer_size); 147 146 data_header->tag = host2uint16_t_le(TX_TAG); 148 147 149 148 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 150 usb_pipe_t *pipe = &usb_device_get_mapped_ep(151 ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe;152 149 usb_pipe_t *pipe = 150 &ath_usb->usb_device->pipes[ath_usb->output_data_pipe_number].pipe; 151 153 152 int ret_val = usb_pipe_write(pipe, complete_buffer, 154 153 complete_buffer_size); 155 154 156 155 free(complete_buffer); 157 156 158 157 return ret_val; 159 158 } … … 173 172 { 174 173 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 175 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 176 ath_usb->usb_device, ath_usb->input_data_pipe_number)->pipe; 177 178 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 174 usb_pipe_t *pipe = 175 &ath_usb->usb_device->pipes[ath_usb->input_data_pipe_number].pipe; 176 177 return usb_pipe_read(pipe, buffer, buffer_size, 178 transferred_size); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.