[PATCH 043/111] GRPCI2: updated register layout to newer specification

Daniel Hellstrom daniel at gaisler.com
Thu Feb 26 16:38:45 UTC 2015


---
 c/src/lib/libbsp/sparc/shared/pci/grpci2.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
index 3891c25..5886336 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c
@@ -90,13 +90,14 @@
 struct grpci2_regs {
 	volatile unsigned int ctrl;		/* 0x00 */
 	volatile unsigned int sts_cap;		/* 0x04 */
-	int res1;				/* 0x08 */
+	volatile unsigned int ppref;		/* 0x08 */
 	volatile unsigned int io_map;		/* 0x0C */
 	volatile unsigned int dma_ctrl;		/* 0x10 */
 	volatile unsigned int dma_bdbase;	/* 0x14 */
-	int res2[2];				/* 0x18 */
+	volatile unsigned int dma_chact;	/* 0x18 */
+	int res1;				/* 0x1C */
 	volatile unsigned int bars[6];		/* 0x20 */
-	int res3[2];				/* 0x38 */
+	int res2[2];				/* 0x38 */
 	volatile unsigned int ahbmst_map[16];	/* 0x40 */
 };
 
-- 
1.7.0.4




More information about the devel mailing list