diff options
Diffstat (limited to 'platform/wavelet3d/host_sw/gfx_regmap.h')
| -rw-r--r-- | platform/wavelet3d/host_sw/gfx_regmap.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/platform/wavelet3d/host_sw/gfx_regmap.h b/platform/wavelet3d/host_sw/gfx_regmap.h new file mode 100644 index 0000000..505c9c2 --- /dev/null +++ b/platform/wavelet3d/host_sw/gfx_regmap.h @@ -0,0 +1,31 @@ +#ifndef GFX_REGMAP_H +#define GFX_REGMAP_H + +struct gfx_hw_id +{ + unsigned patch : 8; + unsigned minor : 8; + unsigned major : 8; + unsigned rsvd : 8; +}; + +struct gfx_fw_id +{ + unsigned build : 10; + unsigned day : 5; + unsigned month : 4; + unsigned year : 12; + unsigned rsvd : 1; +}; + +#define GFX_CTRL_BASE 0x20000000 +#define GFX_CTRL_MAGIC (*(volatile unsigned *)(GFX_CTRL_BASE + 0x00)) +#define GFX_CTRL_HW_ID (*(volatile struct gfx_hw_id *)(GFX_CTRL_BASE + 0x04)) +#define GFX_CTRL_FW_ID (*(volatile struct gfx_fw_id *)(GFX_CTRL_BASE + 0x08)) +#define GFX_CTRL_HOSTIF_REV (*(volatile unsigned *)(GFX_CTRL_BASE + 0x0c)) + +#define GFX_MAGIC_ID 0x4a7a7b0c + +#define GFX_VRAM_BASE ((void *)0x1c000000) + +#endif |
