
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) =\
Содержание PPC/PMC-8260/DS1
Страница 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Страница 8: ...viii PPC PMC 8260 DS1 ...
Страница 22: ...xxii PPC PMC 8260 DS1 ...
Страница 26: ...xxvi PPC PMC 8260 DS1 ...
Страница 30: ...xxx PPC PMC 8260 DS1 ...
Страница 31: ...1 Introduction ...
Страница 32: ......
Страница 39: ...2 Installation ...
Страница 40: ......
Страница 53: ...3 Indicators and Connectors ...
Страница 54: ......
Страница 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Страница 65: ...4 Firmware ...
Страница 66: ......
Страница 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Страница 105: ...5 Memory Map and Devices ...
Страница 106: ......
Страница 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Страница 133: ...6 TDM Channel Configuration ...
Страница 134: ......
Страница 145: ...A Troubleshooting ...
Страница 146: ......
Страница 148: ...A 4 PPC PMC 8260 DS1 ...
Страница 150: ...I 2 PPC PMC 8260 DS1 ...