comparison src/video/fbcon/SDL_fbriva.c @ 2735:204be4fc2726

Final merge of Google Summer of Code 2008 work... Port SDL 1.3 to the Nintendo DS by Darren Alton, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Wed, 27 Aug 2008 15:10:03 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2734:dd25eabe441c 2735:204be4fc2726
38 volatile Uint8 *port = (Uint8 *) (mapped_io + PCIO_OFFSET + 0x3DA); 38 volatile Uint8 *port = (Uint8 *) (mapped_io + PCIO_OFFSET + 0x3DA);
39 39
40 while ((*port & 0x08)); 40 while ((*port & 0x08));
41 while (!(*port & 0x08)); 41 while (!(*port & 0x08));
42 } 42 }
43
43 static void 44 static void
44 NV3WaitIdle(_THIS) 45 NV3WaitIdle(_THIS)
45 { 46 {
46 RivaRop *Rop = (RivaRop *) (mapped_io + ROP_OFFSET); 47 RivaRop *Rop = (RivaRop *) (mapped_io + ROP_OFFSET);
47 while ((Rop->FifoFree < FifoEmptyCount) || 48 while ((Rop->FifoFree < FifoEmptyCount) ||
48 (*(mapped_io + PGRAPH_OFFSET + 0x000006B0) & 0x01)); 49 (*(mapped_io + PGRAPH_OFFSET + 0x000006B0) & 0x01));
49 } 50 }
51
50 static void 52 static void
51 NV4WaitIdle(_THIS) 53 NV4WaitIdle(_THIS)
52 { 54 {
53 RivaRop *Rop = (RivaRop *) (mapped_io + ROP_OFFSET); 55 RivaRop *Rop = (RivaRop *) (mapped_io + ROP_OFFSET);
54 while ((Rop->FifoFree < FifoEmptyCount) || 56 while ((Rop->FifoFree < FifoEmptyCount) ||