diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /drivers/sbus/char/cg_common.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'drivers/sbus/char/cg_common.h')
-rw-r--r-- | drivers/sbus/char/cg_common.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/sbus/char/cg_common.h b/drivers/sbus/char/cg_common.h new file mode 100644 index 000000000..c4376f66c --- /dev/null +++ b/drivers/sbus/char/cg_common.h @@ -0,0 +1,28 @@ +/* sun_cg_common.h + * contains the definitions of the structures that various sun + * frame buffer can use to do console driver stuff. + * + * This is not in sun_framebuffer.h because you may not want cgXX + * support so you wont require this. + * + */ + +#define BT_D4M3(x) ((((x) >> 2) << 1) + ((x) >> 2)) /* (x / 4) * 3 */ +#define BT_D4M4(x) ((x) & ~3) /* (x / 4) * 4 */ + +#define D4M3(x) ((((x)>>2)<<1) + ((x)>>2)) /* (x/4)*3 */ +#define D4M4(x) ((x)&~0x3) /* (x/4)*4 */ + +struct bt_regs { + volatile unsigned int addr; /* address register */ + volatile unsigned int color_map; /* color map */ + volatile unsigned int control; /* control register */ + volatile unsigned int cursor; /* cursor map register */ +}; + +/* The cg3 driver, obio space addresses for mapping the cg3 stuff */ +/* We put these constants here, because the cg14 driver initially will emulate a cg3 */ +#define CG3_REGS 0x400000 +#define CG3_RAM 0x800000 + + |