openblt

a hobby OS from the late 90s
git clone http://frotz.net/git/openblt.git
Log | Files | Refs | LICENSE

mga1x64.h (490B)


      1 /* $Id$
      2 **
      3 ** Copyright 1999 Brian J. Swetland. All rights reserved.
      4 ** Distributed under the terms of the OpenBLT License
      5 */
      6 
      7 #ifndef _MGA_1X64_H
      8 #define _MGA_1X64_H
      9 
     10 #define VENDOR 0x102b
     11 #define DEVICE 0x051a
     12 
     13 typedef struct mga1x64
     14 {
     15 	volatile uint32 *regs;
     16 	volatile uchar *fb;
     17 	int32 fbsize;
     18 } mga1x64;
     19 
     20 /* base registers to use */
     21 #define REGS 1
     22 #define FB 2
     23 
     24 /* registers */
     25 #define FIFOSTATUS 0x1e10
     26 
     27 #define RD(r) (mga->regs[(r)/4])
     28 #define WR(r,v) (mga->regs[(r)/4] = v)
     29 
     30 #endif