Changeset f126c87 in mainline for uspace/drv/nic/ar9271/ath_usb.c
- Timestamp:
- 2016-09-01T16:46:27Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a2fbc8
- Parents:
- 9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ath_usb.c
r9befb0d rf126c87 100 100 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 101 101 ath_usb->usb_device, ath_usb->output_ctrl_pipe_number)->pipe; 102 102 103 103 return usb_pipe_write(pipe, buffer, buffer_size); 104 104 } … … 120 120 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 121 121 ath_usb->usb_device, ath_usb->input_ctrl_pipe_number)->pipe; 122 122 123 123 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 124 124 } … … 141 141 memcpy(complete_buffer + sizeof(ath_usb_data_header_t), 142 142 buffer, buffer_size); 143 143 144 144 ath_usb_data_header_t *data_header = 145 145 (ath_usb_data_header_t *) complete_buffer; 146 146 data_header->length = host2uint16_t_le(buffer_size); 147 147 data_header->tag = host2uint16_t_le(TX_TAG); 148 148 149 149 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 150 150 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 151 151 ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe; 152 152 153 153 int ret_val = usb_pipe_write(pipe, complete_buffer, 154 154 complete_buffer_size); 155 155 156 156 free(complete_buffer); 157 157 158 158 return ret_val; 159 159 } … … 175 175 usb_pipe_t *pipe = &usb_device_get_mapped_ep( 176 176 ath_usb->usb_device, ath_usb->input_data_pipe_number)->pipe; 177 177 178 178 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.