Changeset 0773396 in mainline for uspace/drv/bus/usb/uhci/root_hub.c
- Timestamp:
- 2013-12-25T13:05:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc54126c
- Parents:
- f4a47e52 (diff), 6946f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/root_hub.c
rf4a47e52 r0773396 36 36 #include <str_error.h> 37 37 #include <stdio.h> 38 #include <device/hw_res_parsed.h> 38 39 39 40 #include <usb/debug.h> … … 48 49 * @return Error code. 49 50 */ 50 int rh_init(rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size) 51 int 52 rh_init(rh_t *instance, ddf_fun_t *fun, addr_range_t *regs, uintptr_t reg_addr, 53 size_t reg_size) 51 54 { 52 55 assert(instance); 53 56 assert(fun); 57 58 /* Crop the PIO window to the absolute address range of UHCI I/O. */ 59 instance->pio_window.mem.base = 0; 60 instance->pio_window.mem.size = 0; 61 instance->pio_window.io.base = RNGABS(*regs); 62 instance->pio_window.io.size = RNGSZ(*regs); 54 63 55 64 /* Initialize resource structure */ … … 60 69 instance->io_regs.res.io_range.address = reg_addr; 61 70 instance->io_regs.res.io_range.size = reg_size; 71 instance->io_regs.res.io_range.relative = true; 62 72 instance->io_regs.res.io_range.endianness = LITTLE_ENDIAN; 63 73
Note:
See TracChangeset
for help on using the changeset viewer.