Changes in uspace/drv/nic/ar9271/ath_usb.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ath_usb.c
rb7fd2a0 r38d150e 39 39 #include "ath_usb.h" 40 40 41 static errno_t ath_usb_send_ctrl_message(ath_t *, void *, size_t);42 static errno_t ath_usb_read_ctrl_message(ath_t *, void *, size_t, size_t *);43 static errno_t ath_usb_send_data_message(ath_t *, void *, size_t);44 static errno_t ath_usb_read_data_message(ath_t *, void *, size_t, size_t *);41 static int ath_usb_send_ctrl_message(ath_t *, void *, size_t); 42 static int ath_usb_read_ctrl_message(ath_t *, void *, size_t, size_t *); 43 static int ath_usb_send_data_message(ath_t *, void *, size_t); 44 static int ath_usb_read_data_message(ath_t *, void *, size_t, size_t *); 45 45 46 46 static ath_ops_t ath_usb_ops = { … … 56 56 * @param usb_device Connected USB device. 57 57 * 58 * @return EOK if succeed, error code otherwise.58 * @return EOK if succeed, negative error code otherwise. 59 59 * 60 60 */ 61 errno_t ath_usb_init(ath_t *ath, usb_device_t *usb_device)61 int ath_usb_init(ath_t *ath, usb_device_t *usb_device) 62 62 { 63 63 ath_usb_t *ath_usb = malloc(sizeof(ath_usb_t)); … … 91 91 * @param buffer_size Buffer size. 92 92 * 93 * @return EOK if succeed, error code otherwise.93 * @return EOK if succeed, negative error code otherwise. 94 94 * 95 95 */ 96 static errno_t ath_usb_send_ctrl_message(ath_t *ath, void *buffer,96 static int ath_usb_send_ctrl_message(ath_t *ath, void *buffer, 97 97 size_t buffer_size) 98 98 { … … 111 111 * @param transferred_size Real size of read data. 112 112 * 113 * @return EOK if succeed, error code otherwise.113 * @return EOK if succeed, negative error code otherwise. 114 114 * 115 115 */ 116 static errno_t ath_usb_read_ctrl_message(ath_t *ath, void *buffer,116 static int ath_usb_read_ctrl_message(ath_t *ath, void *buffer, 117 117 size_t buffer_size, size_t *transferred_size) 118 118 { … … 130 130 * @param buffer_size Buffer size. 131 131 * 132 * @return EOK if succeed, error code otherwise.132 * @return EOK if succeed, negative error code otherwise. 133 133 * 134 134 */ 135 static errno_t ath_usb_send_data_message(ath_t *ath, void *buffer,135 static int ath_usb_send_data_message(ath_t *ath, void *buffer, 136 136 size_t buffer_size) 137 137 { … … 151 151 ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe; 152 152 153 errno_t ret_val = usb_pipe_write(pipe, complete_buffer,153 int ret_val = usb_pipe_write(pipe, complete_buffer, 154 154 complete_buffer_size); 155 155 … … 166 166 * @param transferred_size Real size of read data. 167 167 * 168 * @return EOK if succeed, error code otherwise.168 * @return EOK if succeed, negative error code otherwise. 169 169 * 170 170 */ 171 static errno_t ath_usb_read_data_message(ath_t *ath, void *buffer,171 static int ath_usb_read_data_message(ath_t *ath, void *buffer, 172 172 size_t buffer_size, size_t *transferred_size) 173 173 {
Note:
See TracChangeset
for help on using the changeset viewer.