1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Header file updates needed for the cache code: add/correct some ASI

definitions and add PAGE_*_MIN and -_MAX macros.
This commit is contained in:
Thomas Moestl 2001-11-09 19:37:52 +00:00
parent 4db0d96f5f
commit 7478d2e8b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86226
2 changed files with 21 additions and 2 deletions

View File

@ -90,6 +90,10 @@
#define AA_DMMU_VWPR 0x38
#define AA_DMMU_PWPR 0x40
#define ASI_DCACHE_DATA 0x46
#define ASI_DCACHE_TAG 0x47
#define ASI_ECACHE_TAG_DATA 0x4e
#define ASI_DMMU_TSB_8KB_PTR_REG 0x59
#define ASI_DMMU_TSB_64KB_PTR_REG 0x5a
#define ASI_DMMU_TSB_DIRECT_PTR_REG 0x5b
@ -98,9 +102,16 @@
#define ASI_DTLB_TAG_READ_REG 0x5e
#define ASI_DMMU_DEMAP 0x5f
#define ASI_ICACHE_INSTR 0x66
#define ASI_ICACHE_TAG 0x67
#define ASI_ICACHE_PRE_DECODE 0x6e
#define ASI_ICACHE_PRE_NEXT_FIELD 0x6f
#define ASI_BLK_AUIP 0x70
#define ASI_BLK_AIUS 0x71
#define ASI_ECACHE_W 0x76
#define ASI_SDB_INTR_W 0x77
#define AA_SDB_INTR_D0 0x40
#define AA_SDB_INTR_D1 0x50
@ -109,10 +120,12 @@
#define ASI_BLK_AIUPL 0x78
#define ASI_BLK_AIUSL 0x79
#define ASI_ECACHE_R 0x7e
#define ASI_SDB_INTR_R 0x7f
#define ASI_BLK_COMMIT_S 0xe0
#define ASI_BLK_COMMIT_P 0xe1
#define ASI_BLK_COMMIT_P 0xe0
#define ASI_BLK_COMMIT_S 0xe1
#define ASI_BLK_P 0xf0
#define ASI_BLK_S 0xf1
#define ASI_BLK_PL 0xf8

View File

@ -101,9 +101,15 @@
#define PAGE_SIZE_4M (1<<PAGE_SHIFT_4M)
#define PAGE_MASK_4M (PAGE_SIZE_4M-1)
#define PAGE_SHIFT_MIN PAGE_SHIFT_8K
#define PAGE_SIZE_MIN PAGE_SIZE_8K
#define PAGE_MASK_MIN PAGE_MASK_8K
#define PAGE_SHIFT PAGE_SHIFT_8K /* LOG2(PAGE_SIZE) */
#define PAGE_SIZE PAGE_SIZE_8K /* bytes/page */
#define PAGE_MASK PAGE_MASK_8K
#define PAGE_SHIFT_MAX PAGE_SHIFT_4M
#define PAGE_SIZE_MAX PAGE_SIZE_4M
#define PAGE_MASK_MAX PAGE_MASK_4M
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define DEV_BSIZE (1<<DEV_BSHIFT)