diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-03-04 14:50:36 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-03-04 14:50:36 +0000 |
commit | 362b413ed4f676c5cb0c69ebaac4fca2acafb315 (patch) | |
tree | 776b85fc168b29aeae3e55a88a1afec837eafe87 /sys/arch/sgi/xbow/odysseyreg.h | |
parent | 6c7b46ab88c086928bfcbd0bd0c184cfb4273dca (diff) |
Introduce odyssey(4), a driver for the SGI VPro (aka Odyssey) graphics
card, which can be found in Octane, Octane2, Fuel, Tezro and Onyx systems.
ok miod@
Diffstat (limited to 'sys/arch/sgi/xbow/odysseyreg.h')
-rw-r--r-- | sys/arch/sgi/xbow/odysseyreg.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys/arch/sgi/xbow/odysseyreg.h b/sys/arch/sgi/xbow/odysseyreg.h new file mode 100644 index 00000000000..5464cb2efaf --- /dev/null +++ b/sys/arch/sgi/xbow/odysseyreg.h @@ -0,0 +1,62 @@ +/* $OpenBSD: odysseyreg.h,v 1.1 2010/03/04 14:50:35 jsing Exp $ */ +/* + * Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/* + * Register details for the SGI VPro (aka Odyssey) Graphics Card. + */ + +#define ODYSSEY_REG_OFFSET 0x00000000 +#define ODYSSEY_REG_SIZE 0x00410000 + +#define ODYSSEY_STATUS 0x00001064 +#define ODYSSEY_STATUS_CMD_FIFO_HIGH 0x00008000 +#define ODYSSEY_STATUS_CMD_FIFO_LOW 0x00020000 +#define ODYSSEY_DBE_STATUS 0x0000106c + +#define ODYSSEY_CMD_FIFO 0x00110000 +#define ODYSSEY_DATA_FIFO 0x00400000 + +/* + * OpenGL Commands. + */ + +#define OPENGL_BEGIN 0x00014400 +#define OPENGL_END 0x00014001 +#define OPENGL_LOGIC_OP 0x00010422 +#define OPENGL_VERTEX_2I 0x8080c800 +#define OPENGL_COLOR_3UB 0xc580cc08 + +#define OPENGL_QUADS 0x00000007 + +/* Logic Operations. */ +#define OPENGL_LOGIC_OP_CLEAR 0 +#define OPENGL_LOGIC_OP_AND 1 +#define OPENGL_LOGIC_OP_AND_REVERSE 2 +#define OPENGL_LOGIC_OP_COPY 3 +#define OPENGL_LOGIC_OP_AND_INVERTED 4 +#define OPENGL_LOGIC_OP_NOOP 5 +#define OPENGL_LOGIC_OP_XOR 6 +#define OPENGL_LOGIC_OP_OR 7 +#define OPENGL_LOGIC_OP_NOR 8 +#define OPENGL_LOGIC_OP_EQUIV 9 +#define OPENGL_LOGIC_OP_INVERT 10 +#define OPENGL_LOGIC_OP_OR_REVERSE 11 +#define OPENGL_LOGIC_OP_COPY_INVERTED 12 +#define OPENGL_LOGIC_OP_OR_INVERTED 13 +#define OPENGL_LOGIC_OP_NAND 14 +#define OPENGL_LOGIC_OP_SET 15 + |