Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9f6cb910 in mainline


Ignore:
Timestamp:
2014-01-18T22:04:48Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
fccf289
Parents:
4bfcf22
Message:

uhci: Add uhci_ prefix to driver interface functions.

Location:
uspace/drv/bus/usb/uhci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    r4bfcf22 r9f6cb910  
    105105 * @return Error code.
    106106 */
    107 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
     107int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
    108108{
    109109        assert(code);
     
    154154 * - resume from suspend state (not implemented)
    155155 */
    156 void hc_interrupt(hcd_t *hcd, uint32_t status)
     156void uhci_hc_interrupt(hcd_t *hcd, uint32_t status)
    157157{
    158158        assert(hcd);
     
    408408}
    409409
    410 int hc_status(hcd_t *hcd, uint32_t *status)
     410int uhci_hc_status(hcd_t *hcd, uint32_t *status)
    411411{
    412412        assert(hcd);
     
    432432 * Checks for bandwidth availability and appends the batch to the proper queue.
    433433 */
    434 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
     434int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
    435435{
    436436        assert(hcd);
  • uspace/drv/bus/usb/uhci/hc.h

    r4bfcf22 r9f6cb910  
    125125int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interupts);
    126126void hc_fini(hc_t *instance);
    127 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
    128127
    129 void hc_interrupt(hcd_t *hcd, uint32_t status);
    130 int hc_status(hcd_t *hcd, uint32_t *status);
    131 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
     128int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
     129
     130void uhci_hc_interrupt(hcd_t *hcd, uint32_t status);
     131int uhci_hc_status(hcd_t *hcd, uint32_t *status);
     132int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
    132133
    133134#endif
  • uspace/drv/bus/usb/uhci/main.c

    r4bfcf22 r9f6cb910  
    5959        const int ret =  hc_init(instance, res, irq);
    6060        if (ret == EOK)
    61                 hcd_set_implementation(hcd, instance, hc_schedule, NULL, NULL,
    62                     hc_interrupt, hc_status);
     61                hcd_set_implementation(hcd, instance, uhci_hc_schedule, NULL,
     62                    NULL, uhci_hc_interrupt, uhci_hc_status);
    6363        return ret;
    6464}
     
    127127        ret = ddf_hcd_device_setup_all(device, USB_SPEED_FULL,
    128128            BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11,
    129             ddf_hcd_gen_irq_handler, hc_gen_irq_code,
     129            ddf_hcd_gen_irq_handler, uhci_hc_gen_irq_code,
    130130            uhci_driver_init, uhci_driver_fini);
    131131        if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.