Changeset 32fb6bce in mainline for uspace/lib/usbhost/include/usb/host/bus.h
- Timestamp:
- 2017-12-18T22:50:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f70d1c
- Parents:
- 1ea0bbf
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:04:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:50:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
r1ea0bbf r32fb6bce 43 43 #define LIBUSBHOST_HOST_BUS_H 44 44 45 #include <usb/usb.h>46 #include <usb/request.h>47 #include <usb/host/hcd.h>48 49 45 #include <assert.h> 50 46 #include <fibril_synch.h> 51 47 #include <stdbool.h> 48 #include <usb/host/hcd.h> 49 #include <usb/request.h> 50 #include <usb/usb.h> 51 #include <usbhc_iface.h> 52 52 53 53 typedef struct hcd hcd_t; … … 94 94 95 95 /* Global operations on the bus */ 96 void (*interrupt)(bus_t *, uint32_t); 97 int (*status)(bus_t *, uint32_t *); 96 98 int (*reserve_default_address)(bus_t *, usb_speed_t); 97 99 int (*release_default_address)(bus_t *); … … 116 118 117 119 /* Operations on batch */ 118 void (*batch_destroy)(usb_transfer_batch_t *); /**< Optional */ 120 void (*batch_destroy)(usb_transfer_batch_t *); /**< Optional */ 121 int (*batch_schedule)(usb_transfer_batch_t *); 119 122 }; 120 123 … … 129 132 fibril_mutex_t guard; 130 133 131 /* TODO: get rid of this one. */ 132 hcd_t *hcd; 133 134 /* Size of the device_t extended structure */ 134 135 size_t device_size; 135 136 … … 140 141 } bus_t; 141 142 142 void bus_init(bus_t *, hcd_t *,size_t);143 void bus_init(bus_t *, size_t); 143 144 int bus_device_init(device_t *, bus_t *); 144 145 … … 150 151 int bus_device_online(device_t *); 151 152 int bus_device_offline(device_t *); 153 154 int bus_device_send_batch(device_t *, usb_target_t, 155 usb_direction_t direction, char *, size_t, uint64_t, 156 usbhc_iface_transfer_callback_t, void *, const char *); 157 158 ssize_t bus_device_send_batch_sync(device_t *, usb_target_t, 159 usb_direction_t direction, char *, size_t, uint64_t, 160 const char *); 152 161 153 162 int bus_endpoint_add(device_t *, const usb_endpoint_desc_t *, endpoint_t **);
Note:
See TracChangeset
for help on using the changeset viewer.