Changeset deece2f in mainline for uspace/lib/usb/include
- Timestamp:
- 2011-02-21T22:25:58Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 233e68d
- Parents:
- fb78ae72 (diff), dbe25f1 (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. - Location:
- uspace/lib/usb/include/usb
- Files:
-
- 1 added
- 2 deleted
- 5 edited
-
classes/hub.h (modified) (2 diffs)
-
ddfiface.h (added)
-
devreq.h (deleted)
-
dp.h (modified) (1 diff)
-
pipes.h (modified) (2 diffs)
-
recognise.h (modified) (1 diff)
-
request.h (modified) (1 diff)
-
usbdrv.h (deleted)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
rfb78ae72 rdeece2f 1 1 /* 2 * Copyright (c) 2010 Vojtech Horky2 * Copyright (c) 2010 Matus Dekanek 3 3 * All rights reserved. 4 4 * … … 33 33 * @brief USB hub related structures. 34 34 */ 35 #ifndef LIBUSB_ HUB_H_36 #define LIBUSB_ HUB_H_35 #ifndef LIBUSB_CLASS_HUB_H_ 36 #define LIBUSB_CLASS_HUB_H_ 37 37 38 38 #include <sys/types.h> -
uspace/lib/usb/include/usb/dp.h
rfb78ae72 rdeece2f 45 45 } usb_dp_descriptor_nesting_t; 46 46 47 extern usb_dp_descriptor_nesting_t usb_dp_standard_descriptor_nesting[]; 48 47 49 typedef struct { 48 50 usb_dp_descriptor_nesting_t *nesting; -
uspace/lib/usb/include/usb/pipes.h
rfb78ae72 rdeece2f 107 107 /** Endpoint description. */ 108 108 const usb_endpoint_description_t *description; 109 /** Interface number the endpoint must belong to (-1 for any). */ 110 const int interface_no; 109 111 /** Found descriptor fitting the description. */ 110 112 usb_standard_endpoint_descriptor_t *descriptor; … … 121 123 int usb_device_connection_initialize(usb_device_connection_t *, 122 124 devman_handle_t, usb_address_t); 125 126 int usb_device_get_assigned_interface(device_t *); 123 127 124 128 int usb_endpoint_pipe_initialize(usb_endpoint_pipe_t *, -
uspace/lib/usb/include/usb/recognise.h
rfb78ae72 rdeece2f 41 41 #include <ipc/devman.h> 42 42 43 int usb_device_create_match_ids_from_device_descriptor( 44 const usb_standard_device_descriptor_t *, match_id_list_t *); 45 46 int usb_device_create_match_ids_from_interface( 47 const usb_standard_device_descriptor_t *, 48 const usb_standard_interface_descriptor_t *, match_id_list_t *); 49 43 50 int usb_device_create_match_ids(usb_endpoint_pipe_t *, match_id_list_t *); 44 51 -
uspace/lib/usb/include/usb/request.h
rfb78ae72 rdeece2f 41 41 #include <usb/descriptor.h> 42 42 43 /** Standard device request. */ 44 typedef enum { 45 USB_DEVREQ_GET_STATUS = 0, 46 USB_DEVREQ_CLEAR_FEATURE = 1, 47 USB_DEVREQ_SET_FEATURE = 3, 48 USB_DEVREQ_SET_ADDRESS = 5, 49 USB_DEVREQ_GET_DESCRIPTOR = 6, 50 USB_DEVREQ_SET_DESCRIPTOR = 7, 51 USB_DEVREQ_GET_CONFIGURATION = 8, 52 USB_DEVREQ_SET_CONFIGURATION = 9, 53 USB_DEVREQ_GET_INTERFACE = 10, 54 USB_DEVREQ_SET_INTERFACE = 11, 55 USB_DEVREQ_SYNCH_FRAME = 12, 56 USB_DEVREQ_LAST_STD 57 } usb_stddevreq_t; 58 59 /** Device request setup packet. 60 * The setup packet describes the request. 61 */ 62 typedef struct { 63 /** Request type. 64 * The type combines transfer direction, request type and 65 * intended recipient. 66 */ 67 uint8_t request_type; 68 /** Request identification. */ 69 uint8_t request; 70 /** Main parameter to the request. */ 71 union { 72 uint16_t value; 73 /* FIXME: add #ifdefs according to host endianess */ 74 struct { 75 uint8_t value_low; 76 uint8_t value_high; 77 }; 78 }; 79 /** Auxiliary parameter to the request. 80 * Typically, it is offset to something. 81 */ 82 uint16_t index; 83 /** Length of extra data. */ 84 uint16_t length; 85 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 86 43 87 int usb_control_request_set(usb_endpoint_pipe_t *, 44 88 usb_request_type_t, usb_request_recipient_t, uint8_t,
Note:
See TracChangeset
for help on using the changeset viewer.
