From 8aa446adc94d8ce60ffeeee8d1f1e8ffd6d3c01a Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Wed, 8 May 2013 14:38:10 +0200 Subject: [PATCH] GRPCI2: updated register layout to newer specification --- c/src/lib/libbsp/sparc/shared/pci/grpci2.c | 7 ++++--- 1 file 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 3891c253af..5886336982 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 */ };