Changeset 1102eca in mainline for uspace/lib/usbhost/src/ddf_helpers.c
- Timestamp:
- 2018-01-08T17:17:38Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bdd8842c
- Parents:
- eb928c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
reb928c4 r1102eca 31 31 */ 32 32 /** @file 33 * 33 * Helpers to work with the DDF interface. 34 34 */ 35 35 … … 59 59 60 60 61 /* DDF INTERFACE */ 62 63 /** Register endpoint interface function. 64 * @param fun DDF function. 65 * @param endpoint_desc Endpoint description. 61 /** 62 * DDF usbhc_iface callback. Passes the endpoint descriptors, fills the pipe 63 * descriptor according to the contents of the endpoint. 64 * 65 * @param[in] fun DDF function of the device in question. 66 * @param[out] pipe_desc The pipe descriptor to be filled. 67 * @param[in] endpoint_desc Endpoint descriptors from the device. 66 68 * @return Error code. 67 69 */ … … 92 94 } 93 95 94 /** Unregister endpoint interface function. 95 * @param fun DDF function. 96 * @param endpoint_desc Endpoint description. 96 /** 97 * DDF usbhc_iface callback. Unregister endpoint that makes the other end of 98 * the pipe described. 99 * 100 * @param fun DDF function of the device in question. 101 * @param pipe_desc Pipe description. 97 102 * @return Error code. 98 103 */ 99 static int unregister_endpoint(ddf_fun_t *fun, const usb_pipe_desc_t * endpoint_desc)104 static int unregister_endpoint(ddf_fun_t *fun, const usb_pipe_desc_t *pipe_desc) 100 105 { 101 106 assert(fun); … … 106 111 assert(dev); 107 112 108 endpoint_t *ep = bus_find_endpoint(dev, endpoint_desc->endpoint_no);113 endpoint_t *ep = bus_find_endpoint(dev, pipe_desc->endpoint_no); 109 114 if (!ep) 110 115 return ENOENT; … … 113 118 } 114 119 120 /** 121 * DDF usbhc_iface callback. Calls the bus operation directly. 122 * 123 * @param fun DDF function of the device (hub) requesting the address. 124 * @param speed An USB speed of the device for which the address is reserved. 125 */ 115 126 static int reserve_default_address(ddf_fun_t *fun, usb_speed_t speed) 116 127 { … … 127 138 } 128 139 140 /** 141 * DDF usbhc_iface callback. Calls the bus operation directly. 142 * 143 * @param fun DDF function of the device (hub) releasing the address. 144 */ 129 145 static int release_default_address(ddf_fun_t *fun) 130 146 { … … 142 158 } 143 159 160 /** 161 * DDF usbhc_iface callback. Calls the bus operation directly. 162 * 163 * @param fun DDF function of the device (hub) requesting the address. 164 */ 144 165 static int device_enumerate(ddf_fun_t *fun, unsigned port) 145 166 {
Note:
See TracChangeset
for help on using the changeset viewer.