Changeset 3dd80f8 in mainline for uspace/drv/bus/usb/xhci/hc.h


Ignore:
Timestamp:
2018-01-24T20:45:40Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92a7b296
Parents:
4db49344
Message:

xhci: extern all the things!

File:
1 edited

Legend:

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

    r4db49344 r3dd80f8  
    114114typedef struct xhci_device xhci_device_t;
    115115
    116 int hc_init_mmio(xhci_hc_t *, const hw_res_list_parsed_t *);
    117 int hc_init_memory(xhci_hc_t *, ddf_dev_t *);
    118 int hc_claim(xhci_hc_t *, ddf_dev_t *);
    119 int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *);
    120 int hc_start(xhci_hc_t *, bool);
    121 void hc_fini(xhci_hc_t *);
     116extern int hc_init_mmio(xhci_hc_t *, const hw_res_list_parsed_t *);
     117extern int hc_init_memory(xhci_hc_t *, ddf_dev_t *);
     118extern int hc_claim(xhci_hc_t *, ddf_dev_t *);
     119extern int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *);
     120extern int hc_start(xhci_hc_t *, bool);
     121extern void hc_fini(xhci_hc_t *);
    122122
    123 void hc_ring_doorbell(xhci_hc_t *, unsigned, unsigned);
    124 void hc_ring_ep_doorbell(xhci_endpoint_t *, uint32_t);
    125 unsigned hc_speed_to_psiv(usb_speed_t);
     123extern void hc_ring_doorbell(xhci_hc_t *, unsigned, unsigned);
     124extern void hc_ring_ep_doorbell(xhci_endpoint_t *, uint32_t);
     125extern unsigned hc_speed_to_psiv(usb_speed_t);
    126126
    127 int hc_enable_slot(xhci_device_t *);
    128 int hc_disable_slot(xhci_device_t *);
    129 int hc_address_device(xhci_device_t *);
    130 int hc_configure_device(xhci_device_t *);
    131 int hc_deconfigure_device(xhci_device_t *);
    132 int hc_add_endpoint(xhci_endpoint_t *);
    133 int hc_drop_endpoint(xhci_endpoint_t *);
    134 int hc_update_endpoint(xhci_endpoint_t *);
    135 int hc_stop_endpoint(xhci_endpoint_t *);
    136 int hc_reset_endpoint(xhci_endpoint_t *);
    137 int hc_reset_ring(xhci_endpoint_t *, uint32_t);
     127extern int hc_enable_slot(xhci_device_t *);
     128extern int hc_disable_slot(xhci_device_t *);
     129extern int hc_address_device(xhci_device_t *);
     130extern int hc_configure_device(xhci_device_t *);
     131extern int hc_deconfigure_device(xhci_device_t *);
     132extern int hc_add_endpoint(xhci_endpoint_t *);
     133extern int hc_drop_endpoint(xhci_endpoint_t *);
     134extern int hc_update_endpoint(xhci_endpoint_t *);
     135extern int hc_stop_endpoint(xhci_endpoint_t *);
     136extern int hc_reset_endpoint(xhci_endpoint_t *);
     137extern int hc_reset_ring(xhci_endpoint_t *, uint32_t);
    138138
    139 int hc_status(bus_t *, uint32_t *);
    140 void hc_interrupt(bus_t *, uint32_t);
     139extern int hc_status(bus_t *, uint32_t *);
     140extern void hc_interrupt(bus_t *, uint32_t);
    141141
    142142#endif
Note: See TracChangeset for help on using the changeset viewer.