Changeset 1256a0a in mainline for uspace/drv/uhci-hcd/uhci.c
- Timestamp:
- 2011-02-01T00:08:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 993a1e1
- Parents:
- 37ac7bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
r37ac7bb r1256a0a 51 51 uhci_print_verbose("Transfer lists initialized.\n"); 52 52 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");57 53 58 54 uhci_print_verbose("Initializing frame list.\n"); 59 55 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"); 67 58 68 59 /* initialize all frames to point to the first queue head */
Note:
See TracChangeset
for help on using the changeset viewer.