Previous 15994 Revisions Next

r14582 Thursday 23rd February, 2012 at 05:39:40 UTC by Olivier Galibert
next: Timer free running mode [O. Galibert]
[src/mess/drivers]next.c

src/mess/drivers/next.c
r14581r14582
44
55    TODO:
66
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
98
109    - Hook up the mouse (not before the system boots though, see the first problem)
1110
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)
1312
1413    - Hook up the sound output, it seems to be shared with the keyboard port somehow
1514
r14581r14582
185184
186185// Interrupt subsystem
187186// source    bit   level
188// nmi       31    7
187// nmi       31    7 *
189188// 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 
198197// sccdma    21    6
199// dspdma    20    6
198// dspdma    20    6 
200199// m2rdma    19    6
201200// r2mdma    18    6
202201// scc       17    5
203// remote    16    5
204// bus       15    5
202// remote    16    5 *
203// bus       15    5 *
205204// dsp4      14    4
206205// disk      13    3
207// scsi      12    3
206// scsi      12    3 *
208207// printer   11    3
209// enetx     10    3
208// enetx     10    3 *
210209// enetr      9    3
211// soundovr   8    3
212// phone      7    3 -- floppy
210// soundovr   8    3 *
211// phone      7    3 * -- floppy
213212// dsp3       6    3
214213// video      5    3
215214// 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 *
220219
221220void next_state::irq_set(int id, bool raise)
222221{
223222   UINT32 mask = 1U << id;
223   UINT32 old_status = irq_status;
224224   if(raise)
225225      irq_status |= mask;
226226   else
227227      irq_status &= ~mask;
228   irq_check();
228   if(old_status != irq_status)
229      irq_check();
229230}
230231
231232
r14581r14582
659660void next_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
660661{
661662   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   }
662667}
663668
664669READ32_MEMBER( next_state::timer_data_r )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team