Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
generic.h File Reference
#include <asm/addrspace.h>
#include <asm/byteorder.h>
#include <asm/mips-boards/bonito64.h>

Go to the source code of this file.

Macros

#define ASCII_DISPLAY_WORD_BASE   0x1f000410
 
#define ASCII_DISPLAY_POS_BASE   0x1f000418
 
#define YAMON_PROM_PRINT_ADDR   0x1fc00504
 
#define SOFTRES_REG   0x1f000500
 
#define GORESET   0x42
 
#define MIPS_REVISION_REG   0x1fc00010
 
#define MIPS_REVISION_CORID_QED_RM5261   0
 
#define MIPS_REVISION_CORID_CORE_LV   1
 
#define MIPS_REVISION_CORID_BONITO64   2
 
#define MIPS_REVISION_CORID_CORE_20K   3
 
#define MIPS_REVISION_CORID_CORE_FPGA   4
 
#define MIPS_REVISION_CORID_CORE_MSC   5
 
#define MIPS_REVISION_CORID_CORE_EMUL   6
 
#define MIPS_REVISION_CORID_CORE_FPGA2   7
 
#define MIPS_REVISION_CORID_CORE_FPGAR2   8
 
#define MIPS_REVISION_CORID_CORE_FPGA3   9
 
#define MIPS_REVISION_CORID_CORE_24K   10
 
#define MIPS_REVISION_CORID_CORE_FPGA4   11
 
#define MIPS_REVISION_CORID_CORE_FPGA5   12
 
#define MIPS_REVISION_CORID_CORE_EMUL_BON   -1
 
#define MIPS_REVISION_CORID_CORE_EMUL_MSC   -2
 
#define MIPS_REVISION_CORID   (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 10) & 0x3f)
 
#define MIPS_REVISION_SCON_OTHER   0
 
#define MIPS_REVISION_SCON_SOCITSC   1
 
#define MIPS_REVISION_SCON_SOCITSCP   2
 
#define MIPS_REVISION_SCON_UNKNOWN   -1
 
#define MIPS_REVISION_SCON_GT64120   -2
 
#define MIPS_REVISION_SCON_BONITO   -3
 
#define MIPS_REVISION_SCON_BRTL   -4
 
#define MIPS_REVISION_SCON_SOCIT   -5
 
#define MIPS_REVISION_SCON_ROCIT   -6
 
#define MIPS_REVISION_SCONID   (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 24) & 0xff)
 
#define mips_pcibios_init()   do { } while (0)
 

Variables

int mips_revision_sconid
 

Macro Definition Documentation

#define ASCII_DISPLAY_POS_BASE   0x1f000418

Definition at line 31 of file generic.h.

#define ASCII_DISPLAY_WORD_BASE   0x1f000410

Definition at line 30 of file generic.h.

#define GORESET   0x42

Definition at line 44 of file generic.h.

#define mips_pcibios_init (   void)    do { } while (0)

Definition at line 93 of file generic.h.

#define MIPS_REVISION_CORID   (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 10) & 0x3f)

Definition at line 72 of file generic.h.

#define MIPS_REVISION_CORID_BONITO64   2

Definition at line 52 of file generic.h.

#define MIPS_REVISION_CORID_CORE_20K   3

Definition at line 53 of file generic.h.

#define MIPS_REVISION_CORID_CORE_24K   10

Definition at line 60 of file generic.h.

#define MIPS_REVISION_CORID_CORE_EMUL   6

Definition at line 56 of file generic.h.

#define MIPS_REVISION_CORID_CORE_EMUL_BON   -1

Definition at line 69 of file generic.h.

#define MIPS_REVISION_CORID_CORE_EMUL_MSC   -2

Definition at line 70 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGA   4

Definition at line 54 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGA2   7

Definition at line 57 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGA3   9

Definition at line 59 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGA4   11

Definition at line 61 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGA5   12

Definition at line 62 of file generic.h.

#define MIPS_REVISION_CORID_CORE_FPGAR2   8

Definition at line 58 of file generic.h.

#define MIPS_REVISION_CORID_CORE_LV   1

Definition at line 51 of file generic.h.

#define MIPS_REVISION_CORID_CORE_MSC   5

Definition at line 55 of file generic.h.

#define MIPS_REVISION_CORID_QED_RM5261   0

Definition at line 50 of file generic.h.

#define MIPS_REVISION_REG   0x1fc00010

Definition at line 49 of file generic.h.

#define MIPS_REVISION_SCON_BONITO   -3

Definition at line 81 of file generic.h.

#define MIPS_REVISION_SCON_BRTL   -4

Definition at line 82 of file generic.h.

#define MIPS_REVISION_SCON_GT64120   -2

Definition at line 80 of file generic.h.

#define MIPS_REVISION_SCON_OTHER   0

Definition at line 74 of file generic.h.

#define MIPS_REVISION_SCON_ROCIT   -6

Definition at line 84 of file generic.h.

#define MIPS_REVISION_SCON_SOCIT   -5

Definition at line 83 of file generic.h.

#define MIPS_REVISION_SCON_SOCITSC   1

Definition at line 75 of file generic.h.

#define MIPS_REVISION_SCON_SOCITSCP   2

Definition at line 76 of file generic.h.

#define MIPS_REVISION_SCON_UNKNOWN   -1

Definition at line 79 of file generic.h.

#define MIPS_REVISION_SCONID   (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) >> 24) & 0xff)

Definition at line 86 of file generic.h.

#define SOFTRES_REG   0x1f000500

Definition at line 43 of file generic.h.

#define YAMON_PROM_PRINT_ADDR   0x1fc00504

Definition at line 37 of file generic.h.

Variable Documentation

int mips_revision_sconid

Definition at line 53 of file malta-init.c.