2 * Acess2 Raspberry Pi (BCM2835)
3 * - By John Hodge (thePowersGang)
8 * http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/os/screen01.html
11 #define VERSION ((0<<8)|1)
18 #include <api_drv_video.h>
21 int RPiVid_Install(const char **Arguments);
22 // - GPU Communication
23 int RPiVid_int_MBoxCheck(Uint8 Box);
24 Uint32 RPiVid_int_MBoxRecv(Uint8 Box);
25 void RPiVid_int_MBoxSend(Uint8 Box, Uint32 Message);
28 MODULE_DEFINE(0, VERSION, RPiVid, RPiVid_Install, NULL, NULL);
31 int RPiVid_Install(const char **Arguments)
38 int RPiVid_int_MBoxCheck(Uint8 Box)
43 Uint32 RPiVid_int_MBoxRecv(Uint8 Box)
47 while( gRPiVid_Mbox->Status & (1 << 30) )
49 val = gRPiVid_Mbox->Read;
50 } while( (val & 0xF) != Box );
55 void RPiVid_int_MBoxSend(Uint8 Box, Uint32 Message)
57 while( gRPiVid_Mbox.Status & (1 << 31) )
59 gRPiVid_Mbox.Write = (Message << 4) | (Box & 0xF);