Changeset 3f03199 in mainline for uspace/drv/nic/ne2k/ne2k.c
- Timestamp:
- 2013-09-15T06:33:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9348862
- Parents:
- dd7078c (diff), 1c0cef0 (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/nic/ne2k/ne2k.c
rdd7078c r3f03199 211 211 ne2k->irq = hw_res_parsed.irqs.irqs[0]; 212 212 213 ne2k->base_port = (void *) (uintptr_t)214 hw_res_parsed.io_ranges.ranges[0].address;213 addr_range_t regs = hw_res_parsed.io_ranges.ranges[0]; 214 ne2k->base_port = RNGABSPTR(regs); 215 215 216 216 hw_res_list_parsed_clean(&hw_res_parsed); 217 217 218 /* Enable p ortI/O */219 if (pio_enable (ne2k->base_port, NE2K_IO_SIZE, &ne2k->port) != EOK)218 /* Enable programmed I/O */ 219 if (pio_enable_range(®s, &ne2k->port) != EOK) 220 220 return EADDRNOTAVAIL; 221 222 221 223 222 ne2k->data_port = ne2k->port + NE2K_DATA;
Note:
See TracChangeset
for help on using the changeset viewer.