Firmware
Code Examples
PPC/PMC-8260/DS1
4 - 31
#define PSPAN_IMR_MBOX0 (0x0000000e)
#define PSPAN_IMR_MBOX0_S (1)
#define PSPAN_INT_INTA1 0
#define PSPAN_INT_INTA2 1
#define PSPAN_INT_INT0 2
#define PSPAN_INT_INT1 3
#define PSPAN_INT_INT2 4
#define PSPAN_INT_INT3 5
#define PSPAN_INT_INT4 6
#define PSPAN_INT_INT5 7
#define RREAD(off,val) {val=(*(volatile
UINT32*)(off));\
val = LONGSWAP(val);}
#define RWRITE(off,val) *(volatile UINT32*)(off) =\
LONGSWAP(val)
/* Firmware status and control registers in PowerSpan */
#define PMC8260_FW_PCR (PSPAN_MBOX(7))
#define PMC8260_FW_PSR (PSPAN_MBOX(6))
#define PMC8260_FW_PCR_PSKIP 1 /* skip POST flag */
#define PMC8260_FW_PCR_ROMSKIP 2 /* skip ROM image flag */
#define PMC8260_FW_PCR_WDDIS 4 /* Disable WD at startup */
#define PMC8260_FW_PCR_INI 8 /* May write to PSpan? */
#define PMC8260_FW_PSR_POST 1 /* POST is executing */
#define PMC8260_FW_PSR_RDY 2 /* Primary booter runs */
#define PMC8260_FW_PSR_ROMEX 3 /* ROM image runs */
/* Primary Booter CSR section */
#define PB_HDR_SYNC (0x00000000) /* Synchronization word */
#define PB_HDR_ADRS (0x00000004) /* Adrs or error offset */
#define PB_HDR_VERS (0x00000029) /* CSR Version */
#define PB_HDR_CPU (0x00000040) /* Name of CPU */
#define PB_HDR_VEND (0x00000050) /* FORCE COMPUTERS ... */
#define PB_HDR_TARG (0x00000070) /* Target name */
#define PB_HDR_FVER (0x00000090) /* Firmware version */
#define PB_HDR_CP_CSPC (0x000000a0) /* Source/dest. space */
#define PB_HDR_CP_CWID (0x000000a1) /* Access width */
#define PB_HDR_CP_COFF (0x000000a4) /* Offset into window */
#define PB_HDR_CP_CADR (0x000000a8) /* Src./dst. address */
#define PB_HDR_CP_CADRH (0x000000a8) /* -> high */
#define PB_HDR_CP_CADRL (0x000000ac) /* -> low*/
#define PB_HDR_CP_CSIZ (0x000000b0) /* # bytes to move */
#define PBSTR(off) (char*)(off)
#define PBSYNC PBSTR(PB_HDR_SYNC)
#define PBREADL(off,val) {val = (*(volatile
UINT32*)(off));\
val = NOLONGSWAP(val);}
#define PBWRITEL(off,val) *(volatile UINT32*)(off) =\
Summary of Contents for PPC/PMC-8260/DS1
Page 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Page 8: ...viii PPC PMC 8260 DS1 ...
Page 22: ...xxii PPC PMC 8260 DS1 ...
Page 26: ...xxvi PPC PMC 8260 DS1 ...
Page 30: ...xxx PPC PMC 8260 DS1 ...
Page 31: ...1 Introduction ...
Page 32: ......
Page 39: ...2 Installation ...
Page 40: ......
Page 53: ...3 Indicators and Connectors ...
Page 54: ......
Page 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Page 65: ...4 Firmware ...
Page 66: ......
Page 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Page 105: ...5 Memory Map and Devices ...
Page 106: ......
Page 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Page 133: ...6 TDM Channel Configuration ...
Page 134: ......
Page 145: ...A Troubleshooting ...
Page 146: ......
Page 148: ...A 4 PPC PMC 8260 DS1 ...
Page 150: ...I 2 PPC PMC 8260 DS1 ...