Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/device.c
- Timestamp:
- 2018-02-03T02:14:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb862fd
- Parents:
- 961a5ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/device.c
r961a5ee r45457265 72 72 * @return Error code. 73 73 */ 74 static int address_device(xhci_device_t *dev)75 { 76 int err;74 static errno_t address_device(xhci_device_t *dev) 75 { 76 errno_t err; 77 77 78 78 /* Enable new slot. */ … … 115 115 * @return Error code. 116 116 */ 117 static int setup_ep0_packet_size(xhci_hc_t *hc, xhci_device_t *dev)118 { 119 int err;117 static errno_t setup_ep0_packet_size(xhci_hc_t *hc, xhci_device_t *dev) 118 { 119 errno_t err; 120 120 121 121 uint16_t max_packet_size; … … 144 144 * Just the TT will not work correctly. 145 145 */ 146 static int setup_hub(xhci_device_t *dev, usb_standard_device_descriptor_t *desc)146 static errno_t setup_hub(xhci_device_t *dev, usb_standard_device_descriptor_t *desc) 147 147 { 148 148 if (desc->device_class != USB_CLASS_HUB) … … 150 150 151 151 usb_hub_descriptor_header_t hub_desc = { 0 }; 152 const int err = hc_get_hub_desc(&dev->base, &hub_desc);152 const errno_t err = hc_get_hub_desc(&dev->base, &hub_desc); 153 153 if (err) 154 154 return err; … … 177 177 * @return Error code. 178 178 */ 179 int xhci_device_enumerate(device_t *dev)180 { 181 int err;179 errno_t xhci_device_enumerate(device_t *dev) 180 { 181 errno_t err; 182 182 xhci_bus_t *bus = bus_to_xhci_bus(dev->bus); 183 183 xhci_device_t *xhci_dev = xhci_device_get(dev); … … 258 258 void xhci_device_gone(device_t *dev) 259 259 { 260 int err;260 errno_t err; 261 261 xhci_bus_t *bus = bus_to_xhci_bus(dev->bus); 262 262 xhci_device_t *xhci_dev = xhci_device_get(dev); … … 277 277 * Bus callback. 278 278 */ 279 int xhci_device_online(device_t *dev_base)280 { 281 int err;279 errno_t xhci_device_online(device_t *dev_base) 280 { 281 errno_t err; 282 282 283 283 xhci_bus_t *bus = bus_to_xhci_bus(dev_base->bus); … … 305 305 void xhci_device_offline(device_t *dev_base) 306 306 { 307 int err;307 errno_t err; 308 308 309 309 xhci_bus_t *bus = bus_to_xhci_bus(dev_base->bus);
Note:
See TracChangeset
for help on using the changeset viewer.