comparison src/video/fbcon/SDL_fbriva.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
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) ||