Changeset 1256a0a in mainline for uspace/drv/uhci-hcd/uhci.c


Ignore:
Timestamp:
2011-02-01T00:08:46Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
993a1e1
Parents:
37ac7bb
Message:

uhci-rhd - UHCI Root hub drier as a separated process

this wil deffinitely need a lot of polishing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci.c

    r37ac7bb r1256a0a  
    5151        uhci_print_verbose("Transfer lists initialized.\n");
    5252
    53         /* init root hub */
    54         ret = uhci_root_hub_init(&instance->root_hub, device,
    55           (char*)regs + UHCI_ROOT_HUB_PORT_REGISTERS_OFFSET);
    56         CHECK_RET_FREE_INSTANCE("Failed to initialize root hub driver.\n");
    5753
    5854        uhci_print_verbose("Initializing frame list.\n");
    5955        instance->frame_list = get_page();
    60 //        memalign32(sizeof(link_pointer_t) * UHCI_FRAME_LIST_COUNT, 4096);
    61         if (instance->frame_list == NULL) {
    62                 uhci_print_error("Failed to allocate frame list pointer.\n");
    63                 uhci_root_hub_fini(&instance->root_hub);
    64                 free(instance);
    65                 return ENOMEM;
    66         }
     56        ret = instance ? EOK : ENOMEM;
     57        CHECK_RET_FREE_INSTANCE("Failed to get frame list page.\n");
    6758
    6859        /* initialize all frames to point to the first queue head */
Note: See TracChangeset for help on using the changeset viewer.