Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mc.h File Reference

Go to the source code of this file.

Data Structures

struct  sgimc_regs
 

Macros

#define SGIMC_CCTRL0_REFS   0x0000000f /* REFS mask */
 
#define SGIMC_CCTRL0_EREFRESH   0x00000010 /* Memory refresh enable */
 
#define SGIMC_CCTRL0_EPERRGIO   0x00000020 /* GIO parity error enable */
 
#define SGIMC_CCTRL0_EPERRMEM   0x00000040 /* Main mem parity error enable */
 
#define SGIMC_CCTRL0_EPERRCPU   0x00000080 /* CPU bus parity error enable */
 
#define SGIMC_CCTRL0_WDOG   0x00000100 /* Watchdog timer enable */
 
#define SGIMC_CCTRL0_SYSINIT   0x00000200 /* System init bit */
 
#define SGIMC_CCTRL0_GFXRESET   0x00000400 /* Graphics interface reset */
 
#define SGIMC_CCTRL0_EISALOCK   0x00000800 /* Lock CPU from memory for EISA */
 
#define SGIMC_CCTRL0_EPERRSCMD   0x00001000 /* SysCMD bus parity error enable */
 
#define SGIMC_CCTRL0_IENAB   0x00002000 /* Allow interrupts from MC */
 
#define SGIMC_CCTRL0_ESNOOP   0x00004000 /* Snooping I/O enable */
 
#define SGIMC_CCTRL0_EPROMWR   0x00008000 /* Prom writes from cpu enable */
 
#define SGIMC_CCTRL0_WRESETPMEM   0x00010000 /* Perform warm reset, preserves mem */
 
#define SGIMC_CCTRL0_LENDIAN   0x00020000 /* Put MC in little-endian mode */
 
#define SGIMC_CCTRL0_WRESETDMEM   0x00040000 /* Warm reset, destroys mem contents */
 
#define SGIMC_CCTRL0_CMEMBADPAR   0x02000000 /* Generate bad perr from cpu to mem */
 
#define SGIMC_CCTRL0_R4KNOCHKPARR   0x04000000 /* Don't chk parity on mem data reads */
 
#define SGIMC_CCTRL0_GIOBTOB   0x08000000 /* Allow GIO back to back writes */
 
#define SGIMC_CCTRL1_EGIOTIMEO   0x00000010 /* GIO bus timeout enable */
 
#define SGIMC_CCTRL1_FIXEDEHPC   0x00001000 /* Fixed HPC endianness */
 
#define SGIMC_CCTRL1_LITTLEHPC   0x00002000 /* Little endian HPC */
 
#define SGIMC_CCTRL1_FIXEDEEXP0   0x00004000 /* Fixed EXP0 endianness */
 
#define SGIMC_CCTRL1_LITTLEEXP0   0x00008000 /* Little endian EXP0 */
 
#define SGIMC_CCTRL1_FIXEDEEXP1   0x00010000 /* Fixed EXP1 endianness */
 
#define SGIMC_CCTRL1_LITTLEEXP1   0x00020000 /* Little endian EXP1 */
 
#define SGIMC_SYSID_MASKREV   0x0000000f /* Revision of MC controller */
 
#define SGIMC_SYSID_EPRESENT   0x00000010 /* Indicates presence of EISA bus */
 
#define SGIMC_EEPROM_PRE   0x00000001 /* eeprom chip PRE pin assertion */
 
#define SGIMC_EEPROM_CSEL   0x00000002 /* Active high, eeprom chip select */
 
#define SGIMC_EEPROM_SECLOCK   0x00000004 /* EEPROM serial clock */
 
#define SGIMC_EEPROM_SDATAO   0x00000008 /* Serial EEPROM data-out */
 
#define SGIMC_EEPROM_SDATAI   0x00000010 /* Serial EEPROM data-in */
 
#define SGIMC_GIOPAR_HPC64   0x00000001 /* HPC talks to GIO using 64-bits */
 
#define SGIMC_GIOPAR_GFX64   0x00000002 /* GFX talks to GIO using 64-bits */
 
#define SGIMC_GIOPAR_EXP064   0x00000004 /* EXP(slot0) talks using 64-bits */
 
#define SGIMC_GIOPAR_EXP164   0x00000008 /* EXP(slot1) talks using 64-bits */
 
#define SGIMC_GIOPAR_EISA64   0x00000010 /* EISA bus talks 64-bits to GIO */
 
#define SGIMC_GIOPAR_HPC264   0x00000020 /* 2nd HPX talks 64-bits to GIO */
 
#define SGIMC_GIOPAR_RTIMEGFX   0x00000040 /* GFX device has realtime attr */
 
#define SGIMC_GIOPAR_RTIMEEXP0   0x00000080 /* EXP(slot0) has realtime attr */
 
#define SGIMC_GIOPAR_RTIMEEXP1   0x00000100 /* EXP(slot1) has realtime attr */
 
#define SGIMC_GIOPAR_MASTEREISA   0x00000200 /* EISA bus can act as bus master */
 
#define SGIMC_GIOPAR_ONEBUS   0x00000400 /* Exists one GIO64 pipelined bus */
 
#define SGIMC_GIOPAR_MASTERGFX   0x00000800 /* GFX can act as a bus master */
 
#define SGIMC_GIOPAR_MASTEREXP0   0x00001000 /* EXP(slot0) can bus master */
 
#define SGIMC_GIOPAR_MASTEREXP1   0x00002000 /* EXP(slot1) can bus master */
 
#define SGIMC_GIOPAR_PLINEEXP0   0x00004000 /* EXP(slot0) has pipeline attr */
 
#define SGIMC_GIOPAR_PLINEEXP1   0x00008000 /* EXP(slot1) has pipeline attr */
 
#define SGIMC_MCONFIG_BASEADDR   0x000000ff /* Base address of bank*/
 
#define SGIMC_MCONFIG_RMASK   0x00001f00 /* Ram config bitmask */
 
#define SGIMC_MCONFIG_BVALID   0x00002000 /* Bank is valid */
 
#define SGIMC_MCONFIG_SBANKS   0x00004000 /* Number of subbanks */
 
#define SGIMC_MACC_ALIASBIG   0x20000000 /* 512MB home for alias */
 
#define SGIMC_CSTAT_RD   0x00000100 /* read parity error */
 
#define SGIMC_CSTAT_PAR   0x00000200 /* CPU parity error */
 
#define SGIMC_CSTAT_ADDR   0x00000400 /* memory bus error bad addr */
 
#define SGIMC_CSTAT_SYSAD_PAR   0x00000800 /* sysad parity error */
 
#define SGIMC_CSTAT_SYSCMD_PAR   0x00001000 /* syscmd parity error */
 
#define SGIMC_CSTAT_BAD_DATA   0x00002000 /* bad data identifier */
 
#define SGIMC_CSTAT_PAR_MASK   0x00001f00 /* parity error mask */
 
#define SGIMC_CSTAT_RD_PAR   (SGIMC_CSTAT_RD | SGIMC_CSTAT_PAR)
 
#define SGIMC_GSTAT_RD   0x00000100 /* read parity error */
 
#define SGIMC_GSTAT_WR   0x00000200 /* write parity error */
 
#define SGIMC_GSTAT_TIME   0x00000400 /* GIO bus timed out */
 
#define SGIMC_GSTAT_PROM   0x00000800 /* write to PROM when PROM_EN not set */
 
#define SGIMC_GSTAT_ADDR   0x00001000 /* parity error on addr cycle */
 
#define SGIMC_GSTAT_BC   0x00002000 /* parity error on byte count cycle */
 
#define SGIMC_GSTAT_PIO_RD   0x00004000 /* read data parity on pio */
 
#define SGIMC_GSTAT_PIO_WR   0x00008000 /* write data parity on pio */
 
#define SGIMC_BASE   0x1fa00000 /* physical */
 
#define SGIMC_SEG0_BADDR   0x08000000
 
#define SGIMC_SEG1_BADDR   0x20000000
 
#define SGIMC_SEG0_SIZE_ALL   0x10000000 /* 256MB */
 
#define SGIMC_SEG1_SIZE_IP20_IP22   0x08000000 /* 128MB */
 
#define SGIMC_SEG1_SIZE_IP26_IP28   0x20000000 /* 512MB */
 

Functions

void sgimc_init (void)
 

Variables

struct sgimc_regssgimc
 

Macro Definition Documentation

#define SGIMC_BASE   0x1fa00000 /* physical */

Definition at line 218 of file mc.h.

#define SGIMC_CCTRL0_CMEMBADPAR   0x02000000 /* Generate bad perr from cpu to mem */

Definition at line 35 of file mc.h.

#define SGIMC_CCTRL0_EISALOCK   0x00000800 /* Lock CPU from memory for EISA */

Definition at line 27 of file mc.h.

#define SGIMC_CCTRL0_EPERRCPU   0x00000080 /* CPU bus parity error enable */

Definition at line 23 of file mc.h.

#define SGIMC_CCTRL0_EPERRGIO   0x00000020 /* GIO parity error enable */

Definition at line 21 of file mc.h.

#define SGIMC_CCTRL0_EPERRMEM   0x00000040 /* Main mem parity error enable */

Definition at line 22 of file mc.h.

#define SGIMC_CCTRL0_EPERRSCMD   0x00001000 /* SysCMD bus parity error enable */

Definition at line 28 of file mc.h.

#define SGIMC_CCTRL0_EPROMWR   0x00008000 /* Prom writes from cpu enable */

Definition at line 31 of file mc.h.

#define SGIMC_CCTRL0_EREFRESH   0x00000010 /* Memory refresh enable */

Definition at line 20 of file mc.h.

#define SGIMC_CCTRL0_ESNOOP   0x00004000 /* Snooping I/O enable */

Definition at line 30 of file mc.h.

#define SGIMC_CCTRL0_GFXRESET   0x00000400 /* Graphics interface reset */

Definition at line 26 of file mc.h.

#define SGIMC_CCTRL0_GIOBTOB   0x08000000 /* Allow GIO back to back writes */

Definition at line 37 of file mc.h.

#define SGIMC_CCTRL0_IENAB   0x00002000 /* Allow interrupts from MC */

Definition at line 29 of file mc.h.

#define SGIMC_CCTRL0_LENDIAN   0x00020000 /* Put MC in little-endian mode */

Definition at line 33 of file mc.h.

#define SGIMC_CCTRL0_R4KNOCHKPARR   0x04000000 /* Don't chk parity on mem data reads */

Definition at line 36 of file mc.h.

#define SGIMC_CCTRL0_REFS   0x0000000f /* REFS mask */

Definition at line 19 of file mc.h.

#define SGIMC_CCTRL0_SYSINIT   0x00000200 /* System init bit */

Definition at line 25 of file mc.h.

#define SGIMC_CCTRL0_WDOG   0x00000100 /* Watchdog timer enable */

Definition at line 24 of file mc.h.

#define SGIMC_CCTRL0_WRESETDMEM   0x00040000 /* Warm reset, destroys mem contents */

Definition at line 34 of file mc.h.

#define SGIMC_CCTRL0_WRESETPMEM   0x00010000 /* Perform warm reset, preserves mem */

Definition at line 32 of file mc.h.

#define SGIMC_CCTRL1_EGIOTIMEO   0x00000010 /* GIO bus timeout enable */

Definition at line 40 of file mc.h.

#define SGIMC_CCTRL1_FIXEDEEXP0   0x00004000 /* Fixed EXP0 endianness */

Definition at line 43 of file mc.h.

#define SGIMC_CCTRL1_FIXEDEEXP1   0x00010000 /* Fixed EXP1 endianness */

Definition at line 45 of file mc.h.

#define SGIMC_CCTRL1_FIXEDEHPC   0x00001000 /* Fixed HPC endianness */

Definition at line 41 of file mc.h.

#define SGIMC_CCTRL1_LITTLEEXP0   0x00008000 /* Little endian EXP0 */

Definition at line 44 of file mc.h.

#define SGIMC_CCTRL1_LITTLEEXP1   0x00020000 /* Little endian EXP1 */

Definition at line 46 of file mc.h.

#define SGIMC_CCTRL1_LITTLEHPC   0x00002000 /* Little endian HPC */

Definition at line 42 of file mc.h.

#define SGIMC_CSTAT_ADDR   0x00000400 /* memory bus error bad addr */

Definition at line 124 of file mc.h.

#define SGIMC_CSTAT_BAD_DATA   0x00002000 /* bad data identifier */

Definition at line 127 of file mc.h.

#define SGIMC_CSTAT_PAR   0x00000200 /* CPU parity error */

Definition at line 123 of file mc.h.

#define SGIMC_CSTAT_PAR_MASK   0x00001f00 /* parity error mask */

Definition at line 128 of file mc.h.

#define SGIMC_CSTAT_RD   0x00000100 /* read parity error */

Definition at line 122 of file mc.h.

#define SGIMC_CSTAT_RD_PAR   (SGIMC_CSTAT_RD | SGIMC_CSTAT_PAR)

Definition at line 129 of file mc.h.

#define SGIMC_CSTAT_SYSAD_PAR   0x00000800 /* sysad parity error */

Definition at line 125 of file mc.h.

#define SGIMC_CSTAT_SYSCMD_PAR   0x00001000 /* syscmd parity error */

Definition at line 126 of file mc.h.

#define SGIMC_EEPROM_CSEL   0x00000002 /* Active high, eeprom chip select */

Definition at line 62 of file mc.h.

#define SGIMC_EEPROM_PRE   0x00000001 /* eeprom chip PRE pin assertion */

Definition at line 61 of file mc.h.

#define SGIMC_EEPROM_SDATAI   0x00000010 /* Serial EEPROM data-in */

Definition at line 65 of file mc.h.

#define SGIMC_EEPROM_SDATAO   0x00000008 /* Serial EEPROM data-out */

Definition at line 64 of file mc.h.

#define SGIMC_EEPROM_SECLOCK   0x00000004 /* EEPROM serial clock */

Definition at line 63 of file mc.h.

#define SGIMC_GIOPAR_EISA64   0x00000010 /* EISA bus talks 64-bits to GIO */

Definition at line 79 of file mc.h.

#define SGIMC_GIOPAR_EXP064   0x00000004 /* EXP(slot0) talks using 64-bits */

Definition at line 77 of file mc.h.

#define SGIMC_GIOPAR_EXP164   0x00000008 /* EXP(slot1) talks using 64-bits */

Definition at line 78 of file mc.h.

#define SGIMC_GIOPAR_GFX64   0x00000002 /* GFX talks to GIO using 64-bits */

Definition at line 76 of file mc.h.

#define SGIMC_GIOPAR_HPC264   0x00000020 /* 2nd HPX talks 64-bits to GIO */

Definition at line 80 of file mc.h.

#define SGIMC_GIOPAR_HPC64   0x00000001 /* HPC talks to GIO using 64-bits */

Definition at line 75 of file mc.h.

#define SGIMC_GIOPAR_MASTEREISA   0x00000200 /* EISA bus can act as bus master */

Definition at line 84 of file mc.h.

#define SGIMC_GIOPAR_MASTEREXP0   0x00001000 /* EXP(slot0) can bus master */

Definition at line 87 of file mc.h.

#define SGIMC_GIOPAR_MASTEREXP1   0x00002000 /* EXP(slot1) can bus master */

Definition at line 88 of file mc.h.

#define SGIMC_GIOPAR_MASTERGFX   0x00000800 /* GFX can act as a bus master */

Definition at line 86 of file mc.h.

#define SGIMC_GIOPAR_ONEBUS   0x00000400 /* Exists one GIO64 pipelined bus */

Definition at line 85 of file mc.h.

#define SGIMC_GIOPAR_PLINEEXP0   0x00004000 /* EXP(slot0) has pipeline attr */

Definition at line 89 of file mc.h.

#define SGIMC_GIOPAR_PLINEEXP1   0x00008000 /* EXP(slot1) has pipeline attr */

Definition at line 90 of file mc.h.

#define SGIMC_GIOPAR_RTIMEEXP0   0x00000080 /* EXP(slot0) has realtime attr */

Definition at line 82 of file mc.h.

#define SGIMC_GIOPAR_RTIMEEXP1   0x00000100 /* EXP(slot1) has realtime attr */

Definition at line 83 of file mc.h.

#define SGIMC_GIOPAR_RTIMEGFX   0x00000040 /* GFX device has realtime attr */

Definition at line 81 of file mc.h.

#define SGIMC_GSTAT_ADDR   0x00001000 /* parity error on addr cycle */

Definition at line 139 of file mc.h.

#define SGIMC_GSTAT_BC   0x00002000 /* parity error on byte count cycle */

Definition at line 140 of file mc.h.

#define SGIMC_GSTAT_PIO_RD   0x00004000 /* read data parity on pio */

Definition at line 141 of file mc.h.

#define SGIMC_GSTAT_PIO_WR   0x00008000 /* write data parity on pio */

Definition at line 142 of file mc.h.

#define SGIMC_GSTAT_PROM   0x00000800 /* write to PROM when PROM_EN not set */

Definition at line 138 of file mc.h.

#define SGIMC_GSTAT_RD   0x00000100 /* read parity error */

Definition at line 135 of file mc.h.

#define SGIMC_GSTAT_TIME   0x00000400 /* GIO bus timed out */

Definition at line 137 of file mc.h.

#define SGIMC_GSTAT_WR   0x00000200 /* write parity error */

Definition at line 136 of file mc.h.

#define SGIMC_MACC_ALIASBIG   0x20000000 /* 512MB home for alias */

Definition at line 115 of file mc.h.

#define SGIMC_MCONFIG_BASEADDR   0x000000ff /* Base address of bank*/

Definition at line 104 of file mc.h.

#define SGIMC_MCONFIG_BVALID   0x00002000 /* Bank is valid */

Definition at line 106 of file mc.h.

#define SGIMC_MCONFIG_RMASK   0x00001f00 /* Ram config bitmask */

Definition at line 105 of file mc.h.

#define SGIMC_MCONFIG_SBANKS   0x00004000 /* Number of subbanks */

Definition at line 107 of file mc.h.

#define SGIMC_SEG0_BADDR   0x08000000

Definition at line 221 of file mc.h.

#define SGIMC_SEG0_SIZE_ALL   0x10000000 /* 256MB */

Definition at line 225 of file mc.h.

#define SGIMC_SEG1_BADDR   0x20000000

Definition at line 222 of file mc.h.

#define SGIMC_SEG1_SIZE_IP20_IP22   0x08000000 /* 128MB */

Definition at line 226 of file mc.h.

#define SGIMC_SEG1_SIZE_IP26_IP28   0x20000000 /* 512MB */

Definition at line 227 of file mc.h.

#define SGIMC_SYSID_EPRESENT   0x00000010 /* Indicates presence of EISA bus */

Definition at line 54 of file mc.h.

#define SGIMC_SYSID_MASKREV   0x0000000f /* Revision of MC controller */

Definition at line 53 of file mc.h.

Function Documentation

void sgimc_init ( void  )

Definition at line 108 of file ip22-mc.c.

Variable Documentation

Definition at line 21 of file ip22-mc.c.