Changeset 1a38701 in mainline
- Timestamp:
- 2011-12-12T12:09:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbb7e3b
- Parents:
- c24c157d
- Location:
- uspace
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
rc24c157d r1a38701 48 48 #include <usb/dev/pipes.h> 49 49 #include <async.h> 50 #include <usb/dev.h> 50 51 #include <usb/hid/usages/core.h> 51 52 #include <usb/hid/hidparser.h> -
uspace/app/usbinfo/main.c
rc24c157d r1a38701 44 44 #include <loc.h> 45 45 #include <usb/hc.h> 46 #include <usb/dev.h> 46 47 #include <usb/dev/pipes.h> 47 48 #include "usbinfo.h" -
uspace/lib/usb/include/usb/dev.h
rc24c157d r1a38701 37 37 #include <devman.h> 38 38 #include <usb/usb.h> 39 #include <usb/hc.h>40 41 42 /** Abstraction of a physical connection to the device.43 * This type is an abstraction of the USB wire that connects the host and44 * the function (device).45 */46 typedef struct {47 /** Connection to the host controller device is connected to. */48 usb_hc_connection_t *hc_connection;49 /** Address of the device. */50 usb_address_t address;51 } usb_device_connection_t;52 53 int usb_device_connection_initialize(usb_device_connection_t *,54 usb_hc_connection_t *, usb_address_t);55 56 /** Initialize connection to USB device on default address.57 *58 * @param dev_connection Device connection structure to be initialized.59 * @param hc_connection Initialized connection to host controller.60 * @return Error code.61 */62 static inline int usb_device_connection_initialize_on_default_address(63 usb_device_connection_t *connection, usb_hc_connection_t *hc_conn)64 {65 return usb_device_connection_initialize(connection, hc_conn, 0);66 }67 39 68 40 int usb_get_info_by_handle(devman_handle_t, -
uspace/lib/usb/src/dev.c
rc24c157d r1a38701 106 106 return EOK; 107 107 } 108 /*----------------------------------------------------------------------------*/109 int usb_device_connection_initialize(usb_device_connection_t *connection,110 usb_hc_connection_t *hc_connection, usb_address_t address)111 {112 assert(connection);113 114 if (hc_connection == NULL) {115 return EBADMEM;116 }117 118 if ((address < 0) || (address >= USB11_ADDRESS_MAX)) {119 return EINVAL;120 }121 122 connection->hc_connection = hc_connection;123 connection->address = address;124 return EOK;125 } -
uspace/lib/usbdev/include/usb/dev/pipes.h
rc24c157d r1a38701 36 36 37 37 #include <sys/types.h> 38 #include <usb/usb.h>39 #include <usb/dev.h>40 #include <usb/descriptor.h>41 38 #include <ipc/devman.h> 42 39 #include <ddf/driver.h> 43 40 #include <fibril_synch.h> 44 41 #include <async.h> 42 #include <usb/usb.h> 43 #include <usb/descriptor.h> 44 #include <usb/dev/usb_device_connection.h> 45 45 46 46 /** Abstraction of a logical connection to USB device endpoint. -
uspace/lib/usbdev/src/devdrv.c
rc24c157d r1a38701 36 36 #include <usb/dev/request.h> 37 37 #include <usb/debug.h> 38 #include <usb/dev.h> 38 39 #include <usb/dev/dp.h> 39 40 #include <errno.h>
Note:
See TracChangeset
for help on using the changeset viewer.