Changeset 64fea02 in mainline for uspace/lib/usbhost/include
- Timestamp:
- 2017-11-22T13:54:05Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 820d9bc
- Parents:
- b60eac1
- Location:
- uspace/lib/usbhost/include/usb/host
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
rb60eac1 r64fea02 45 45 #include <usb/usb.h> 46 46 #include <usb/request.h> 47 #include <usb/host/hcd.h> 47 48 48 49 #include <assert.h> -
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
rb60eac1 r64fea02 37 37 #define LIBUSBHOST_HOST_DDF_HELPERS_H 38 38 39 #include <usb/host/hcd.h>40 #include <usb/host/bus.h>41 #include <usb/usb.h>42 43 39 #include <ddf/driver.h> 44 40 #include <ddf/interrupt.h> 45 41 #include <device/hw_res_parsed.h> 42 #include <usb/usb.h> 43 44 #include <usb/host/hcd.h> 46 45 47 46 typedef int (*driver_init_t)(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); -
uspace/lib/usbhost/include/usb/host/endpoint.h
rb60eac1 r64fea02 40 40 #define LIBUSBHOST_HOST_ENDPOINT_H 41 41 42 #include <adt/list.h> 43 #include <atomic.h> 44 #include <fibril_synch.h> 42 45 #include <stdbool.h> 43 #include <adt/list.h>44 #include <fibril_synch.h>45 46 #include <usb/usb.h> 46 #include <atomic.h>47 47 48 48 typedef struct bus bus_t; -
uspace/lib/usbhost/include/usb/host/hcd.h
rb60eac1 r64fea02 37 37 #define LIBUSBHOST_HOST_HCD_H 38 38 39 #include <usb/host/endpoint.h>40 #include <usb/host/bus.h>41 #include <usb/host/usb_transfer_batch.h>42 #include <usb/usb.h>43 44 39 #include <assert.h> 45 40 #include <mem.h> 46 41 #include <stddef.h> 47 42 #include <stdint.h> 43 #include <usb/usb.h> 48 44 #include <usbhc_iface.h> 49 45 50 46 typedef struct hcd hcd_t; 47 typedef struct bus bus_t; 48 typedef struct device device_t; 49 typedef struct usb_transfer_batch usb_transfer_batch_t; 51 50 52 51 typedef int (*schedule_hook_t)(hcd_t *, usb_transfer_batch_t *); -
uspace/lib/usbhost/include/usb/host/usb2_bus.h
rb60eac1 r64fea02 37 37 #define LIBUSBHOST_HOST_USB2_BUS_H 38 38 39 #include <usb/usb.h>40 #include <usb/host/bus.h>41 42 39 #include <adt/list.h> 43 40 #include <stdbool.h> 41 #include <usb/usb.h> 42 43 #include <usb/host/bus.h> 44 44 45 45 typedef struct usb2_bus usb2_bus_t; -
uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
rb60eac1 r64fea02 37 37 #define LIBUSBHOST_HOST_USB_TRANSFER_BATCH_H 38 38 39 #include <atomic.h> 40 #include <errno.h> 41 #include <stddef.h> 42 #include <stdint.h> 43 #include <usb/request.h> 39 44 #include <usb/usb.h> 40 #include <usb/request.h>41 #include <usb/host/bus.h>42 45 #include <usbhc_iface.h> 43 46 44 #include <atomic.h> 45 #include <stddef.h> 46 #include <errno.h> 47 #include <stdint.h> 47 #include <usb/host/hcd.h> 48 #include <usb/host/endpoint.h> 49 #include <usb/host/bus.h> 48 50 49 51 typedef struct endpoint endpoint_t; … … 87 89 } usb_transfer_batch_t; 88 90 89 /** Printf formatting string for dumping usb_transfer_batch_t. */ 91 /** 92 * Printf formatting string for dumping usb_transfer_batch_t. 93 * [address:endpoint speed transfer_type-direction buffer_sizeB/max_packet_size] 94 * */ 90 95 #define USB_TRANSFER_BATCH_FMT "[%d:%d %s %s-%s %zuB/%zu]" 91 96 … … 94 99 */ 95 100 #define USB_TRANSFER_BATCH_ARGS(batch) \ 96 ( batch).target.address, (batch).target.endpoint, \101 ((batch).ep->device->address), ((batch).ep->endpoint), \ 97 102 usb_str_speed((batch).ep->device->speed), \ 98 103 usb_str_transfer_type_short((batch).ep->transfer_type), \ 99 usb_str_direction((batch). ep->direction), \104 usb_str_direction((batch).dir), \ 100 105 (batch).buffer_size, (batch).ep->max_packet_size 101 106
Note:
See TracChangeset
for help on using the changeset viewer.