Changeset 3d4aa055 in mainline for uspace/app/vuhid/stdreq.h
- Timestamp:
- 2011-05-06T13:08:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 075c1eb, 3da17644
- Parents:
- a58dd620 (diff), 310c4df (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vuhid/stdreq.h
ra58dd620 r3d4aa055 1 1 /* 2 * Copyright (c) 201 0Vojtech Horky2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup drvusbvhc29 /** @addtogroup usbvirthid 30 30 * @{ 31 */ 31 */ 32 32 /** @file 33 * @brief Virtual device management.33 * Device request handlers. 34 34 */ 35 #ifndef V HCD_DEVICES_H_36 #define V HCD_DEVICES_H_35 #ifndef VUHID_STDREQ_H_ 36 #define VUHID_STDREQ_H_ 37 37 38 #include <adt/list.h> 39 #include <usb/usb.h> 38 #include <usbvirt/device.h> 40 39 41 #include "hc.h" 40 int req_get_descriptor(usbvirt_device_t *device, 41 const usb_device_request_setup_packet_t *setup_packet, 42 uint8_t *data, size_t *act_size); 42 43 43 /** Connected virtual device. */ 44 typedef struct { 45 /** Phone used when sending data to device. */ 46 int phone; 47 /** Unique identification. */ 48 sysarg_t id; 49 /** Linked-list handle. */ 50 link_t link; 51 } virtdev_connection_t; 44 int req_set_protocol(usbvirt_device_t *device, 45 const usb_device_request_setup_packet_t *setup_packet, 46 uint8_t *data, size_t *act_size); 52 47 53 virtdev_connection_t *virtdev_add_device(int, sysarg_t); 54 virtdev_connection_t *virtdev_find(sysarg_t); 55 void virtdev_destroy_device(virtdev_connection_t *); 56 int virtdev_send_to_all(transaction_t *); 48 int req_set_report(usbvirt_device_t *device, 49 const usb_device_request_setup_packet_t *setup_packet, 50 uint8_t *data, size_t *act_size); 57 51 58 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.