Changeset 3b77628 in mainline
- Timestamp:
- 2011-01-24T11:58:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- afc4fbb
- Parents:
- 0cfc68f0
- Location:
- uspace
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/doc/doxygroups.h
r0cfc68f0 r3b77628 176 176 * @brief Library for creating USB devices drivers. 177 177 */ 178 179 /** 180 * @defgroup usbhub USB hub driver 181 * @ingroup usb 182 * @brief USB hub driver. 183 */ 184 */ 185 -
uspace/drv/usbhub/usbhub.c
r0cfc68f0 r3b77628 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup usb hub driver28 /** @addtogroup usbhub 29 29 * @{ 30 30 */ -
uspace/drv/usbhub/usblist.c
r0cfc68f0 r3b77628 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup usb hub driver28 /** @addtogroup usbhub 29 29 * @{ 30 30 */ -
uspace/drv/usbhub/usblist.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 30 #ifndef USBLIST_H 31 #define USBLIST_H 32 /** @addtogroup usb hub driver 29 /** @addtogroup usbhub 33 30 * @{ 34 31 */ … … 40 37 * much simpler and more straight-forward semantics. 41 38 */ 39 #ifndef USBLIST_H 40 #define USBLIST_H 42 41 43 42 /** … … 78 77 } 79 78 80 79 #endif /* USBLIST_H */ 81 80 /** 82 81 * @} 83 82 */ 84 85 86 87 #endif /* USBLIST_H */88 -
uspace/drv/usbhub/utils.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup usbhub 30 30 * @{ 31 31 */ -
uspace/drv/vhc/devices.c
r0cfc68f0 r3b77628 58 58 /** Create virtual device. 59 59 * 60 * @param address USB address.61 60 * @param phone Callback phone. 62 61 * @return New device. 63 * @retval NULL Out of memory or address already occupied.62 * @retval NULL Out of memory. 64 63 */ 65 64 virtdev_connection_t *virtdev_add_device(int phone) … … 67 66 virtdev_connection_t *dev = (virtdev_connection_t *) 68 67 malloc(sizeof(virtdev_connection_t)); 68 if (dev == NULL) { 69 return NULL; 70 } 71 69 72 dev->phone = phone; 70 73 list_append(&dev->link, &devices); -
uspace/lib/drv/include/usb_iface.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libdrv usb 29 /** @addtogroup libdrv 30 * @addtogroup usb 30 31 * @{ 31 32 */ -
uspace/lib/drv/include/usbhc_iface.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libdrv usb 29 /** @addtogroup libdrv 30 * @addtogroup usb 30 31 * @{ 31 32 */ -
uspace/lib/usb/include/usb/classes/classes.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/classes/hid.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/classes/hidparser.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/classes/hidut.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/classes/hidutkbd.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/classes/hub.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 68 68 * For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2 69 69 */ 70 typedef struct hub_descriptor_type{70 typedef struct usb_hub_descriptor_type { 71 71 /** Number of bytes in this descriptor, including this byte */ 72 72 //uint8_t bDescLength; -
uspace/lib/usb/include/usb/debug.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 45 45 46 46 #endif 47 /** 48 * @} 49 */ 50 -
uspace/lib/usb/include/usb/descriptor.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/devreq.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/hcd.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 81 81 devman_handle_t); 82 82 83 84 83 #endif 84 /** 85 * @} 86 */ -
uspace/lib/usb/include/usb/hcdhubd.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/usb.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/include/usb/usbdrv.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/addrkeep.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/class.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/debug.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/dp.c
r0cfc68f0 r3b77628 45 45 * @param data Parser data. 46 46 * @param ptr Pointer to be verified. 47 * @return Whether @p tr points inside <code>data->data</code> field.47 * @return Whether @p ptr points inside <code>data->data</code> field. 48 48 */ 49 49 static bool is_valid_descriptor_pointer(usb_dp_parser_data_t *data, -
uspace/lib/usb/src/drvpsync.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/hcdhubd.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/hcdhubd_private.h
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/hcdrv.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/hidparser.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/localdrv.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/recognise.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 39 39 #include <errno.h> 40 40 41 /** Callback for getting host controller handle. 42 * 43 * @param dev Device in question. 44 * @param[out] handle Devman handle of the host controller. 45 * @return Error code. 46 */ 41 47 static int usb_iface_get_hc_handle(device_t *dev, devman_handle_t *handle) 42 48 { … … 237 243 * @param matches Match ids list to add matches to. 238 244 * @param address USB address of the attached device. 245 * @param config_count Number of configurations the device has. 239 246 * @return Error code. 240 247 */ … … 342 349 /** Probe for device kind and register it in devman. 343 350 * 344 * @param hc Open phone to the host controller. 345 * @param parent Parent device. 346 * @param address Address of the (unknown) attached device. 351 * @param[in] hc Open phone to the host controller. 352 * @param[in] parent Parent device. 353 * @param[in] address Address of the (unknown) attached device. 354 * @param[out] child_handle Handle of the child device. 347 355 * @return Error code. 348 356 */ -
uspace/lib/usb/src/remotedrv.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/usb.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/usbdrv.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ -
uspace/lib/usb/src/usbdrvreq.c
r0cfc68f0 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 188 188 * @param[in] phone Open phone to HC driver. 189 189 * @param[in] old_address Current address. 190 * @param[in] address Address to be set.190 * @param[in] new_address Address to be set. 191 191 * @return Error code. 192 192 */ -
uspace/lib/usbvirt/src/main.c
r0cfc68f0 r3b77628 183 183 /** Create necessary phones for communication with virtual HCD. 184 184 * This function wraps following calls: 185 * -# open <code>/dev/devices/\\virt\\usbhc for reading185 * -# open <code>/dev/devices/\\virt\\usbhc</code> for reading 186 186 * -# access phone of file opened in previous step 187 187 * -# create callback through just opened phone
Note:
See TracChangeset
for help on using the changeset viewer.