Changeset a6add7a in mainline for uspace/drv/usbmid
- Timestamp:
- 2011-03-04T23:35:22Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 960bee9
- Parents:
- d78a32f
- Location:
- uspace/drv/usbmid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmid/main.c
rd78a32f ra6add7a 44 44 #include "usbmid.h" 45 45 46 /** Callback when new MID device is attached to the host. 47 * 48 * @param gen_dev Generic DDF device representing the new device. 49 * @return Error code. 50 */ 46 51 static int usbmid_add_device(ddf_dev_t *gen_dev) 47 52 { … … 86 91 } 87 92 93 /** USB MID driver ops. */ 88 94 static driver_ops_t mid_driver_ops = { 89 95 .add_device = usbmid_add_device, 90 96 }; 91 97 98 /** USB MID driver. */ 92 99 static driver_t mid_driver = { 93 100 .name = NAME, -
uspace/drv/usbmid/usbmid.c
rd78a32f ra6add7a 67 67 } 68 68 69 /** DDF interface of the child - interface function. */ 69 70 static usb_iface_t child_usb_iface = { 70 71 .get_hc_handle = usb_iface_get_hc_handle_hub_child_impl, … … 73 74 }; 74 75 75 76 /** Operations for children - interface functions. */ 76 77 static ddf_dev_ops_t child_device_ops = { 77 78 .interfaces[USB_DEV_IFACE] = &child_usb_iface 78 79 }; 79 80 81 /** Operations of the device itself. */ 80 82 static ddf_dev_ops_t mid_device_ops = { 81 83 .interfaces[USB_DEV_IFACE] = &usb_iface_hub_impl -
uspace/drv/usbmid/usbmid.h
rd78a32f ra6add7a 44 44 #define NAME "usbmid" 45 45 46 /** USB MID device container. */ 46 47 typedef struct { 47 48 /** Device container. */ … … 54 55 } usbmid_device_t; 55 56 57 58 /** Container for single interface in a MID device. */ 56 59 typedef struct { 57 60 /** Function container. */
Note:
See TracChangeset
for help on using the changeset viewer.
