Changeset 199112e4 in mainline for uspace/srv/hw/bus/cuda_adb/cuda_adb.c
- Timestamp:
- 2012-02-14T21:46:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfb79747
- Parents:
- 472d813
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r472d813 r199112e4 104 104 enum { 105 105 ADB_MAX_ADDR = 16 106 }; 107 108 static irq_pio_range_t cuda_ranges[] = { 109 { 110 .base = 0, 111 .size = sizeof(cuda_t) 112 } 106 113 }; 107 114 … … 130 137 131 138 static irq_code_t cuda_irq_code = { 139 sizeof(cuda_ranges) / sizeof(irq_pio_range_t), 140 cuda_ranges, 132 141 sizeof(cuda_cmds) / sizeof(irq_cmd_t), 133 142 cuda_cmds … … 255 264 return -1; 256 265 257 if (sysinfo_get_value("cuda.address.kernel", &(instance->cuda_kernel)) != EOK)258 return -1;259 260 266 void *vaddr; 261 267 if (pio_enable((void *) instance->cuda_physical, sizeof(cuda_t), &vaddr) != 0) … … 274 280 pio_write_8(&dev->ier, IER_CLR | ALL_INT); 275 281 276 cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr; 282 cuda_irq_code.ranges[0].base = (uintptr_t) instance->cuda_physical; 283 cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_physical)->ifr; 277 284 async_set_interrupt_received(cuda_irq_handler); 278 285 irq_register(10, device_assign_devno(), 0, &cuda_irq_code);
Note:
See TracChangeset
for help on using the changeset viewer.