Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r8d2dd7f2  
    9191static void hc_gain_control(hc_t *instance);
    9292static void hc_start(hc_t *instance);
    93 static errno_t hc_init_transfer_lists(hc_t *instance);
    94 static errno_t hc_init_memory(hc_t *instance);
     93static int hc_init_transfer_lists(hc_t *instance);
     94static int hc_init_memory(hc_t *instance);
    9595
    9696/** Generate IRQ code.
     
    103103 * @return Error code.
    104104 */
    105 errno_t ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res, int *irq)
     105int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
    106106{
    107107        assert(code);
     
    141141            RNGABSPTR(regs), RNGSZ(regs), hw_res->irqs.irqs[0]);
    142142
    143         *irq = hw_res->irqs.irqs[0];
    144         return EOK;
     143        return hw_res->irqs.irqs[0];
    145144}
    146145
     
    152151 * @return Error code
    153152 */
    154 errno_t hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts)
     153int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts)
    155154{
    156155        assert(instance);
     
    160159            return EINVAL;
    161160
    162         errno_t ret = pio_enable_range(&hw_res->mem_ranges.ranges[0],
     161        int ret = pio_enable_range(&hw_res->mem_ranges.ranges[0],
    163162            (void **) &instance->registers);
    164163        if (ret != EOK) {
     
    269268}
    270269
    271 errno_t ohci_hc_status(hcd_t *hcd, uint32_t *status)
     270int ohci_hc_status(hcd_t *hcd, uint32_t *status)
    272271{
    273272        assert(hcd);
     
    289288 * @return Error code.
    290289 */
    291 errno_t ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
     290int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)
    292291{
    293292        assert(hcd);
     
    518517 * @return Error code
    519518 */
    520 errno_t hc_init_transfer_lists(hc_t *instance)
     519int hc_init_transfer_lists(hc_t *instance)
    521520{
    522521        assert(instance);
     
    524523do { \
    525524        const char *name = usb_str_transfer_type(type); \
    526         const errno_t ret = endpoint_list_init(&instance->lists[type], name); \
     525        const int ret = endpoint_list_init(&instance->lists[type], name); \
    527526        if (ret != EOK) { \
    528527                usb_log_error("Failed to setup %s endpoint list: %s.\n", \
     
    552551 * @return Error code.
    553552 */
    554 errno_t hc_init_memory(hc_t *instance)
     553int hc_init_memory(hc_t *instance)
    555554{
    556555        assert(instance);
     
    558557        memset(&instance->rh, 0, sizeof(instance->rh));
    559558        /* Init queues */
    560         const errno_t ret = hc_init_transfer_lists(instance);
     559        const int ret = hc_init_transfer_lists(instance);
    561560        if (ret != EOK) {
    562561                return ret;
Note: See TracChangeset for help on using the changeset viewer.