Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r8d2dd7f2  
    9494
    9595static void hc_init_hw(const hc_t *instance);
    96 static errno_t hc_init_mem_structures(hc_t *instance);
    97 static errno_t hc_init_transfer_lists(hc_t *instance);
    98 
    99 static errno_t hc_debug_checker(void *arg);
     96static int hc_init_mem_structures(hc_t *instance);
     97static int hc_init_transfer_lists(hc_t *instance);
     98
     99static int hc_debug_checker(void *arg);
    100100
    101101
     
    103103 * @param[out] code IRQ code structure.
    104104 * @param[in] hw_res Device's resources.
    105  * @param[out] irq
    106105 *
    107106 * @return Error code.
    108107 */
    109 errno_t uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq)
     108int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
    110109{
    111110        assert(code);
     
    143142            RNGABSPTR(regs), RNGSZ(regs), hw_res->irqs.irqs[0]);
    144143
    145         *irq = hw_res->irqs.irqs[0];
    146         return EOK;
     144        return hw_res->irqs.irqs[0];
    147145}
    148146
     
    216214 * interrupt fibrils.
    217215 */
    218 errno_t hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts)
     216int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts)
    219217{
    220218        assert(instance);
     
    228226
    229227        /* allow access to hc control registers */
    230         errno_t ret = pio_enable_range(&hw_res->io_ranges.ranges[0],
     228        int ret = pio_enable_range(&hw_res->io_ranges.ranges[0],
    231229            (void **) &instance->registers);
    232230        if (ret != EOK) {
     
    318316 *  - frame list page (needs to be one UHCI hw accessible 4K page)
    319317 */
    320 errno_t hc_init_mem_structures(hc_t *instance)
     318int hc_init_mem_structures(hc_t *instance)
    321319{
    322320        assert(instance);
     
    330328
    331329        /* Init transfer lists */
    332         errno_t ret = hc_init_transfer_lists(instance);
     330        int ret = hc_init_transfer_lists(instance);
    333331        if (ret != EOK) {
    334332                usb_log_error("Failed to initialize transfer lists.\n");
     
    359357 * USB scheduling. Sets pointer table for quick access.
    360358 */
    361 errno_t hc_init_transfer_lists(hc_t *instance)
     359int hc_init_transfer_lists(hc_t *instance)
    362360{
    363361        assert(instance);
    364362#define SETUP_TRANSFER_LIST(type, name) \
    365363do { \
    366         errno_t ret = transfer_list_init(&instance->transfers_##type, name); \
     364        int ret = transfer_list_init(&instance->transfers_##type, name); \
    367365        if (ret != EOK) { \
    368366                usb_log_error("Failed to setup %s transfer list: %s.\n", \
     
    411409}
    412410
    413 errno_t uhci_hc_status(hcd_t *hcd, uint32_t *status)
     411int uhci_hc_status(hcd_t *hcd, uint32_t *status)
    414412{
    415413        assert(hcd);
     
    435433 * Checks for bandwidth availability and appends the batch to the proper queue.
    436434 */
    437 errno_t uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
     435int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
    438436{
    439437        assert(hcd);
     
    464462 * @return EOK (should never return)
    465463 */
    466 errno_t hc_debug_checker(void *arg)
     464int hc_debug_checker(void *arg)
    467465{
    468466        hc_t *instance = arg;
Note: See TracChangeset for help on using the changeset viewer.