Changeset c01bb5f9 in mainline for uspace/drv/nic/e1k/e1k.c
- Timestamp:
- 2012-02-16T21:21:39Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39aa8ce, 856a36b, f943dd3
- Parents:
- edd7c63c (diff), 21063c2 (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/e1k/e1k.c
redd7c63c rc01bb5f9 228 228 static void e1000_send_frame(nic_t *, void *, size_t); 229 229 230 /** PIO ranges used in the IRQ code. */ 231 irq_pio_range_t e1000_irq_pio_ranges[] = { 232 { 233 .base = 0, 234 .size = PAGE_SIZE, /* XXX */ 235 } 236 }; 237 230 238 /** Commands to deal with interrupt 231 239 * … … 256 264 /** Interrupt code definition */ 257 265 irq_code_t e1000_irq_code = { 266 .rangecount = sizeof(e1000_irq_pio_ranges) / 267 sizeof(irq_pio_range_t), 268 .ranges = e1000_irq_pio_ranges, 258 269 .cmdcount = sizeof(e1000_irq_commands) / sizeof(irq_cmd_t), 259 270 .cmds = e1000_irq_commands … … 1252 1263 fibril_mutex_lock(&irq_reg_mutex); 1253 1264 1254 e1000_irq_code.cmds[0].addr = e1000->reg_base_virt + E1000_ICR; 1255 e1000_irq_code.cmds[2].addr = e1000->reg_base_virt + E1000_IMC; 1265 e1000_irq_code.ranges[0].base = (uintptr_t) e1000->reg_base_phys; 1266 e1000_irq_code.cmds[0].addr = e1000->reg_base_phys + E1000_ICR; 1267 e1000_irq_code.cmds[2].addr = e1000->reg_base_phys + E1000_IMC; 1256 1268 1257 1269 int rc = register_interrupt_handler(nic_get_ddf_dev(nic),
Note:
See TracChangeset
for help on using the changeset viewer.