Changeset 20eaa82 in mainline for uspace/drv/bus/usb/xhci/rh.h


Ignore:
Timestamp:
2017-10-15T13:44:39Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2770b66
Parents:
867b375
Message:

usbhost refactoring: introduced bus→enumerate_device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.h

    r867b375 r20eaa82  
    3838
    3939#include <usb/host/usb_transfer_batch.h>
     40#include <usb/host/bus.h>
    4041#include "hw_struct/regs.h"
    4142
    4243typedef struct xhci_hc xhci_hc_t;
     44typedef struct ddf_dev ddf_dev_t;
    4345
    4446/**
     
    5860        xhci_hc_t *hc;
    5961
     62        /* Root for the device tree */
     63        device_t device;
     64
     65        /* We need this to attach children to */
     66        ddf_dev_t *hc_device;
     67
    6068        /** Port speeds reported from HC */
    6169        xhci_port_speed_t speeds [16];
     
    6674        /* Number of hub ports. */
    6775        uint8_t max_ports;
    68 
    69         /* We need this to create child devices */
    70         hcd_roothub_t *hcd_rh;
    7176} xhci_rh_t;
    7277
     
    7984void xhci_rh_handle_port_change(xhci_rh_t *);
    8085
    81 int xhci_rh_address_device(xhci_rh_t *, usb_speed_t, usb_tt_address_t, usb_address_t *);
     86int xhci_rh_address_device(xhci_rh_t *rh, device_t *dev);
    8287
    8388#endif
Note: See TracChangeset for help on using the changeset viewer.