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

Changeset fccf289 in mainline


Ignore:
Timestamp:
2014-01-18T22:36:24Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
c9e954c
Parents:
9f6cb910
Message:

ohci: Add ohci_ prefix to driver interface functions.

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

Legend:

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

    r9f6cb910 rfccf289  
    103103 * @return Error code.
    104104 */
    105 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
     105int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
    106106{
    107107        assert(code);
     
    267267}
    268268
    269 int hc_status(hcd_t *hcd, uint32_t *status)
     269int ohci_hc_status(hcd_t *hcd, uint32_t *status)
    270270{
    271271        assert(hcd);
     
    283283/** Add USB transfer to the schedule.
    284284 *
    285  * @param[in] instance OHCI hc driver structure.
     285 * @param[in] hcd HCD driver structure.
    286286 * @param[in] batch Batch representing the transfer.
    287287 * @return Error code.
    288288 */
    289 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
     289int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
    290290{
    291291        assert(hcd);
     
    324324/** Interrupt handling routine
    325325 *
    326  * @param[in] instance OHCI hc driver structure.
     326 * @param[in] hcd HCD driver structure.
    327327 * @param[in] status Value of the status register at the time of interrupt.
    328328 */
    329 void hc_interrupt(hcd_t *hcd, uint32_t status)
     329void ohci_hc_interrupt(hcd_t *hcd, uint32_t status)
    330330{
    331331        assert(hcd);
  • uspace/drv/bus/usb/ohci/hc.h

    r9f6cb910 rfccf289  
    7878} hc_t;
    7979
    80 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
    81 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun);
    8280int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts);
    8381void hc_fini(hc_t *instance);
     
    8583void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep);
    8684void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep);
    87 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
    88 int hc_status(hcd_t *hcd, uint32_t *status);
    8985
    90 void hc_interrupt(hcd_t *hcd, uint32_t status);
     86int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
     87
     88void ohci_hc_interrupt(hcd_t *hcd, uint32_t status);
     89int ohci_hc_status(hcd_t *hcd, uint32_t *status);
     90int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
    9191#endif
    9292/**
  • uspace/drv/bus/usb/ohci/main.c

    r9f6cb910 rfccf289  
    5858        const int ret =  hc_init(instance, res, irq);
    5959        if (ret == EOK)
    60                 hcd_set_implementation(hcd, instance, hc_schedule,
    61                     ohci_endpoint_init, ohci_endpoint_fini, hc_interrupt,
    62                     hc_status);
     60                hcd_set_implementation(hcd, instance, ohci_hc_schedule,
     61                    ohci_endpoint_init, ohci_endpoint_fini, ohci_hc_interrupt,
     62                    ohci_hc_status);
    6363        return ret;
    6464}
     
    8686        const int ret = ddf_hcd_device_setup_all(device, USB_SPEED_FULL,
    8787            BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11,
    88             ddf_hcd_gen_irq_handler, hc_gen_irq_code,
     88            ddf_hcd_gen_irq_handler, ohci_hc_gen_irq_code,
    8989            ohci_driver_init, ohci_driver_fini);
    9090        if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.