src/mess/drivers/next.c
| r14581 | r14582 | |
| 4 | 4 | |
| 5 | 5 | TODO: |
| 6 | 6 | |
| 7 | | - Find out why the pager doesn't work on the mach_init loading |
| 8 | | task (yes, that's the big one) |
| 7 | - Find what the sleeping threads are waiting for |
| 9 | 8 | |
| 10 | 9 | - Hook up the mouse (not before the system boots though, see the first problem) |
| 11 | 10 | |
| 12 | | - Fix the kernel bitching at boot (non-volatile memory readback error) |
| 11 | - Find why the kernel doesn't manage to change the nvram at boot (readback error) |
| 13 | 12 | |
| 14 | 13 | - Hook up the sound output, it seems to be shared with the keyboard port somehow |
| 15 | 14 | |
| r14581 | r14582 | |
| 185 | 184 | |
| 186 | 185 | // Interrupt subsystem |
| 187 | 186 | // source bit level |
| 188 | | // nmi 31 7 |
| 187 | // nmi 31 7 * |
| 189 | 188 | // pfail 30 7 |
| 190 | | // timer 29 6 |
| 191 | | // enetxdma 28 6 |
| 192 | | // enetrdma 27 6 |
| 193 | | // scsidma 26 6 |
| 194 | | // diskdma 25 6 |
| 195 | | // prndma 24 6 |
| 196 | | // sndoutdma 23 6 |
| 197 | | // sndindma 22 6 |
| 189 | // timer 29 6 * |
| 190 | // enetxdma 28 6 * |
| 191 | // enetrdma 27 6 * |
| 192 | // scsidma 26 6 * |
| 193 | // diskdma 25 6 |
| 194 | // prndma 24 6 * |
| 195 | // sndoutdma 23 6 |
| 196 | // sndindma 22 6 |
| 198 | 197 | // sccdma 21 6 |
| 199 | | // dspdma 20 6 |
| 198 | // dspdma 20 6 |
| 200 | 199 | // m2rdma 19 6 |
| 201 | 200 | // r2mdma 18 6 |
| 202 | 201 | // scc 17 5 |
| 203 | | // remote 16 5 |
| 204 | | // bus 15 5 |
| 202 | // remote 16 5 * |
| 203 | // bus 15 5 * |
| 205 | 204 | // dsp4 14 4 |
| 206 | 205 | // disk 13 3 |
| 207 | | // scsi 12 3 |
| 206 | // scsi 12 3 * |
| 208 | 207 | // printer 11 3 |
| 209 | | // enetx 10 3 |
| 208 | // enetx 10 3 * |
| 210 | 209 | // enetr 9 3 |
| 211 | | // soundovr 8 3 |
| 212 | | // phone 7 3 -- floppy |
| 210 | // soundovr 8 3 * |
| 211 | // phone 7 3 * -- floppy |
| 213 | 212 | // dsp3 6 3 |
| 214 | 213 | // video 5 3 |
| 215 | 214 | // monitor 4 3 |
| 216 | | // kbdmouse 3 3 |
| 217 | | // power 2 3 |
| 218 | | // softint1 1 2 |
| 219 | | // softint0 0 1 |
| 215 | // kbdmouse 3 3 * |
| 216 | // power 2 3 * |
| 217 | // softint1 1 2 * |
| 218 | // softint0 0 1 * |
| 220 | 219 | |
| 221 | 220 | void next_state::irq_set(int id, bool raise) |
| 222 | 221 | { |
| 223 | 222 | UINT32 mask = 1U << id; |
| 223 | UINT32 old_status = irq_status; |
| 224 | 224 | if(raise) |
| 225 | 225 | irq_status |= mask; |
| 226 | 226 | else |
| 227 | 227 | irq_status &= ~mask; |
| 228 | | irq_check(); |
| 228 | if(old_status != irq_status) |
| 229 | irq_check(); |
| 229 | 230 | } |
| 230 | 231 | |
| 231 | 232 | |
| r14581 | r14582 | |
| 659 | 660 | void next_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) |
| 660 | 661 | { |
| 661 | 662 | irq_set(29, true); |
| 663 | if(timer_ctrl & 0x40000000) { |
| 664 | timer_data = 0xffff0000; // Old value instead? Hard to know, since the kernel uses 0xffff |
| 665 | timer_start(); |
| 666 | } |
| 662 | 667 | } |
| 663 | 668 | |
| 664 | 669 | READ32_MEMBER( next_state::timer_data_r ) |