#ifndef _ARCH_SGIMIPS_GIO_GRTWOREG_H_
#define _ARCH_SGIMIPS_GIO_GRTWOREG_H_
#define GR2_FIFO 0x40000
#define GR2_FIFO_INIT (GR2_FIFO + 0x644)
#define GR2_FIFO_COLOR (GR2_FIFO + 0x648)
#define GR2_FIFO_FINISH (GR2_FIFO + 0x64c)
#define GR2_FIFO_PNT2I (GR2_FIFO + 0x650)
#define GR2_FIFO_RECTI2D (GR2_FIFO + 0x654)
#define GR2_FIFO_CMOV2I (GR2_FIFO + 0x658)
#define GR2_FIFO_LINE2I (GR2_FIFO + 0x65c)
#define GR2_FIFO_DRAWCHAR (GR2_FIFO + 0x660)
#define GR2_FIFO_RECTCOPY (GR2_FIFO + 0x664)
#define GR2_FIFO_DATA (GR2_FIFO + 0x77c)
#define HQ2_BASE 0x6a000
#define HQ2_ATTRJUMP (HQ2_BASE + 0x00)
#define HQ2_VERSION (HQ2_BASE + 0x40)
#define HQ2_VERSION_MASK 0xff000000
#define HQ2_VERSION_SHIFT 23
#define HQ2_NUMGE (HQ2_BASE + 0x44)
#define HQ2_FIN1 (HQ2_BASE + 0x48)
#define HQ2_FIN2 (HQ2_BASE + 0x4c)
#define HQ2_DMASYNC (HQ2_BASE + 0x50)
#define HQ2_FIFO_FULL_TIMEOUT (HQ2_BASE + 0x54)
#define HQ2_FIFO_EMPTY_TIMEOUT (HQ2_BASE + 0x58)
#define HQ2_FIFO_FULL (HQ2_BASE + 0x5c)
#define HQ2_FIFO_EMPTY (HQ2_BASE + 0x60)
#define HQ2_GE7_LOAD_UCODE (HQ2_BASE + 0x64)
#define HQ2_GEDMA (HQ2_BASE + 0x68)
#define HQ2_HQ_GEPC (HQ2_BASE + 0x6c)
#define HQ2_GEPC (HQ2_BASE + 0x70)
#define HQ2_INTR (HQ2_BASE + 0x74)
#define HQ2_UNSTALL (HQ2_BASE + 0x78)
#define HQ2_MYSTERY (HQ2_BASE + 0x7c)
#define HQ2_REFRESH (HQ2_BASE + 0x80)
#define HQ2_FIN3 (HQ2_BASE + 0x100)
#define GE7_REVISION 0x680fc
#define GE7_REVISION_MASK 0xf0
#define VC1_BASE 0x6c040
#define VC1_COMMAND (VC1_BASE + 0x00)
#define VC1_XMAPMODE (VC1_BASE + 0x04)
#define VC1_SRAM (VC1_BASE + 0x08)
#define VC1_TESTREG (VC1_BASE + 0x0c)
#define VC1_ADDRLO (VC1_BASE + 0x10)
#define VC1_ADDRHI (VC1_BASE + 0x14)
#define VC1_SYSCTL (VC1_BASE + 0x18)
#define VC1_SYSCTL_INTERRUPT 0x01
#define VC1_SYSCTL_VTG 0x02
#define VC1_SYSCTL_VC1 0x04
#define VC1_SYSCTL_DID 0x08
#define VC1_SYSCTL_CURSOR 0x10
#define VC1_SYSCTL_CURSOR_DISPLAY 0x20
#define VC1_SYSCTL_GENSYNC 0x40
#define VC1_SYSCTL_VIDEO 0x80
#define VC1_SRAM_VIDTIM_LST_BASE 0x0000
#define VC1_SRAM_VIDTIM_CURSLST_BASE 0x0400
#define VC1_SRAM_VIDTIM_FRMT_BASE 0x0800
#define VC1_SRAM_VIDTIM_CURSFRMT_BASE 0x0900
#define VC1_SRAM_INTERLACED 0x09f0
#define VC1_SRAM_SCREENWIDTH 0x09f2
#define VC1_SRAM_NEXTDID_ADDR 0x09f4
#define VC1_SRAM_CURSOR0_BASE 0x0a00
#define VC1_SRAM_DID_FRMT_BASE 0x0b00
#define VC1_SRAM_DID_MAX_FMTSIZE 0x0900
#define VC1_SRAM_DID_LST_END 0x8000
#define VC1_VIDEO_EP 0x00
#define VC1_VIDEO_LC 0x02
#define VC1_VIDEO_SC 0x04
#define VC1_VIDEO_TSA 0x06
#define VC1_VIDEO_TSB 0x07
#define VC1_VIDEO_TSC 0x08
#define VC1_VIDEO_LP 0x09
#define VC1_VIDEO_LS_EP 0x0b
#define VC1_VIDEO_LR 0x0d
#define VC1_VIDEO_FC 0x10
#define VC1_VIDEO_ENABLE 0x14
#define VC1_CURSOR_EP 0x20
#define VC1_CURSOR_XL 0x22
#define VC1_CURSOR_YL 0x24
#define VC1_CURSOR_MODE 0x26
#define VC1_CURSOR_BX 0x27
#define VC1_CURSOR_LY 0x28
#define VC1_CURSOR_YC 0x2a
#define VC1_CURSOR_CC 0x2e
#define VC1_CURSOR_RC 0x30
#define GR2_REVISION 0x6c000
#define GR2_REVISION_RD0 0x6c000
#define GR2_REVISION_RD0_VERSION_MASK 0x0f
#define GR2_REVISION4_RD0_MONITOR_MASK 0xf0
#define GR2_REVISION_RD1 0x6c004
#define GR2_REVISION_RD1_BACKEND_REV 0x03
#define GR2_REVISION_RD1_ZBUFFER 0x0c
#define GR2_REVISION4_RD1_BACKEND 0x03
#define GR2_REVISION4_RD1_24BPP 0x10
#define GR2_REVISION4_RD1_ZBUFFER 0x20
#define GR2_REVISION_RD2 0x6c008
#define GR2_REVISION_RD2_BACKEND_REV 0x000c
#define GR2_REVISION_RD3 0x6c00c
#define GR2_REVISION_RD3_VMA 0x03
#define GR2_REVISION_RD3_VMB 0x0c
#define GR2_REVISION_RD3_VMC 0x30
#define XMAP5_MISC 0x00
#define XMAP5_MODE 0x04
#define XMAP5_CLUT 0x08
#define XMAP5_CRC 0x0c
#define XMAP5_ADDRLO 0x10
#define XMAP5_ADRHI 0x14
#define XMAP5_BYTECOUNT 0x18
#define XMAP5_FIFOSTATUS 0x1c
#define XMAPALL_MISC 0x6c1a0
#define XMAPALL_MODE 0x6c1a4
#define XMAPALL_CLUT 0x6c1a8
#define XMAPALL_CRC 0x6c1ac
#define XMAPALL_ADDRLO 0x6c190
#define XMAPALL_ADDRHI 0x6c194
#define XMAPALL_BYTECOUNT 0x6c198
#define XMAPALL_FIFOSTATUS 0x6c19c
#endif