Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
msp_prom.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  prom_pmemblock
 

Macros

#define DEVICEID   "deviceid"
 
#define FEATURES   "features"
 
#define PROM_ENV   "prom_env"
 
#define PROM_ENV_FILE   "/proc/"PROM_ENV
 
#define PROM_ENV_SIZE   256
 
#define CPU_DEVID_FAMILY   0x0000ff00
 
#define CPU_DEVID_REVISION   0x000000ff
 
#define FPGA_IS_POLO(revision)   (((revision >= 0xb0) && (revision < 0xd0)))
 
#define FPGA_IS_5000(revision)   ((revision >= 0x80) && (revision <= 0x90))
 
#define FPGA_IS_ZEUS(revision)   ((revision < 0x7f))
 
#define FPGA_IS_DUET(revision)   (((revision >= 0xa0) && (revision < 0xb0)))
 
#define FPGA_IS_MSP4200(revision)   ((revision >= 0xd0))
 
#define FPGA_IS_MSP7100(revision)   ((revision >= 0xd0))
 
#define MACHINE_TYPE_POLO   "POLO"
 
#define MACHINE_TYPE_DUET   "DUET"
 
#define MACHINE_TYPE_ZEUS   "ZEUS"
 
#define MACHINE_TYPE_MSP2000REVB   "MSP2000REVB"
 
#define MACHINE_TYPE_MSP5000   "MSP5000"
 
#define MACHINE_TYPE_MSP4200   "MSP4200"
 
#define MACHINE_TYPE_MSP7120   "MSP7120"
 
#define MACHINE_TYPE_MSP7130   "MSP7130"
 
#define MACHINE_TYPE_OTHER   "OTHER"
 
#define MACHINE_TYPE_POLO_FPGA   "POLO-FPGA"
 
#define MACHINE_TYPE_DUET_FPGA   "DUET-FPGA"
 
#define MACHINE_TYPE_ZEUS_FPGA   "ZEUS_FPGA"
 
#define MACHINE_TYPE_MSP2000REVB_FPGA   "MSP2000REVB-FPGA"
 
#define MACHINE_TYPE_MSP5000_FPGA   "MSP5000-FPGA"
 
#define MACHINE_TYPE_MSP4200_FPGA   "MSP4200-FPGA"
 
#define MACHINE_TYPE_MSP7100_FPGA   "MSP7100-FPGA"
 
#define MACHINE_TYPE_OTHER_FPGA   "OTHER-FPGA"
 
#define FAMILY_FPGA   0x0000
 
#define FAMILY_ZEUS   0x1000
 
#define FAMILY_POLO   0x2000
 
#define FAMILY_DUET   0x4000
 
#define FAMILY_TRIAD   0x5000
 
#define FAMILY_MSP4200   0x4200
 
#define FAMILY_MSP4200_FPGA   0x4f00
 
#define FAMILY_MSP7100   0x7100
 
#define FAMILY_MSP7100_FPGA   0x7f00
 
#define TYPE_MSP7120   0x7120
 
#define TYPE_MSP7130   0x7130
 
#define ENET_KEY   'E'
 
#define ENETTXD_KEY   'e'
 
#define PCI_KEY   'P'
 
#define PCIMUX_KEY   'p'
 
#define SEC_KEY   'S'
 
#define SPAD_KEY   'D'
 
#define TDM_KEY   'T'
 
#define ZSP_KEY   'Z'
 
#define FEATURE_NOEXIST   '-'
 
#define FEATURE_EXIST   '+'
 
#define ENET_MII   'M'
 
#define ENET_RMII   'R'
 
#define ENETTXD_FALLING   'F'
 
#define ENETTXD_RISING   'R'
 
#define PCI_HOST   'H'
 
#define PCI_PERIPHERAL   'P'
 
#define PCIMUX_FULL   'F'
 
#define PCIMUX_SINGLE   'S'
 
#define SEC_DUET   'D'
 
#define SEC_POLO   'P'
 
#define SEC_SLOW   'S'
 
#define SEC_TRIAD   'T'
 
#define SPAD_POLO   'P'
 
#define TDM_DUET   'D' /* DUET TDMs might exist */
 
#define TDM_POLO   'P' /* POLO TDMs might exist */
 
#define TDM_TRIAD   'T' /* TRIAD TDMs might exist */
 
#define ZSP_DUET   'D' /* one DUET zsp engine */
 
#define ZSP_TRIAD   'T' /* two TRIAD zsp engines */
 
#define ppfinit(f, x...)
 
#define PROM_MAX_PMEMBLOCKS   7 /* 6 used */
 

Enumerations

enum  yamon_memtypes {
  yamon_dontuse, yamon_prom, yamon_free, yamon_dontuse,
  yamon_prom, yamon_free, yamon_dontuse, yamon_prom,
  yamon_free
}
 

Functions

charprom_getenv (char *name)
 
void prom_init_cmdline (void)
 
void prom_meminit (void)
 
void prom_fixup_mem_map (unsigned long start_mem, unsigned long end_mem)
 
int get_ethernet_addr (char *ethaddr_name, char *ethernet_addr)
 
unsigned long get_deviceid (void)
 
char identify_enet (unsigned long interface_num)
 
char identify_enetTxD (unsigned long interface_num)
 
char identify_pci (void)
 
char identify_sec (void)
 
char identify_spad (void)
 
char identify_tdm (void)
 
char identify_zsp (void)
 
unsigned long identify_family (void)
 
unsigned long identify_revision (void)
 
struct prom_pmemblockprom_getmdesc (void)
 

Variables

int prom_argc
 
char ** prom_argv
 
char ** prom_envp
 
intprom_vec
 

Macro Definition Documentation

#define CPU_DEVID_FAMILY   0x0000ff00

Definition at line 36 of file msp_prom.h.

#define CPU_DEVID_REVISION   0x000000ff

Definition at line 37 of file msp_prom.h.

#define DEVICEID   "deviceid"

Definition at line 30 of file msp_prom.h.

#define ENET_KEY   'E'

Definition at line 83 of file msp_prom.h.

#define ENET_MII   'M'

Definition at line 95 of file msp_prom.h.

#define ENET_RMII   'R'

Definition at line 96 of file msp_prom.h.

#define ENETTXD_FALLING   'F'

Definition at line 98 of file msp_prom.h.

#define ENETTXD_KEY   'e'

Definition at line 84 of file msp_prom.h.

#define ENETTXD_RISING   'R'

Definition at line 99 of file msp_prom.h.

#define FAMILY_DUET   0x4000

Definition at line 72 of file msp_prom.h.

#define FAMILY_FPGA   0x0000

Definition at line 69 of file msp_prom.h.

#define FAMILY_MSP4200   0x4200

Definition at line 74 of file msp_prom.h.

#define FAMILY_MSP4200_FPGA   0x4f00

Definition at line 75 of file msp_prom.h.

#define FAMILY_MSP7100   0x7100

Definition at line 76 of file msp_prom.h.

#define FAMILY_MSP7100_FPGA   0x7f00

Definition at line 77 of file msp_prom.h.

#define FAMILY_POLO   0x2000

Definition at line 71 of file msp_prom.h.

#define FAMILY_TRIAD   0x5000

Definition at line 73 of file msp_prom.h.

#define FAMILY_ZEUS   0x1000

Definition at line 70 of file msp_prom.h.

#define FEATURE_EXIST   '+'

Definition at line 93 of file msp_prom.h.

#define FEATURE_NOEXIST   '-'

Definition at line 92 of file msp_prom.h.

#define FEATURES   "features"

Definition at line 31 of file msp_prom.h.

#define FPGA_IS_5000 (   revision)    ((revision >= 0x80) && (revision <= 0x90))

Definition at line 41 of file msp_prom.h.

#define FPGA_IS_DUET (   revision)    (((revision >= 0xa0) && (revision < 0xb0)))

Definition at line 44 of file msp_prom.h.

#define FPGA_IS_MSP4200 (   revision)    ((revision >= 0xd0))

Definition at line 46 of file msp_prom.h.

#define FPGA_IS_MSP7100 (   revision)    ((revision >= 0xd0))

Definition at line 47 of file msp_prom.h.

#define FPGA_IS_POLO (   revision)    (((revision >= 0xb0) && (revision < 0xd0)))

Definition at line 39 of file msp_prom.h.

#define FPGA_IS_ZEUS (   revision)    ((revision < 0x7f))

Definition at line 43 of file msp_prom.h.

#define MACHINE_TYPE_DUET   "DUET"

Definition at line 50 of file msp_prom.h.

#define MACHINE_TYPE_DUET_FPGA   "DUET-FPGA"

Definition at line 60 of file msp_prom.h.

#define MACHINE_TYPE_MSP2000REVB   "MSP2000REVB"

Definition at line 52 of file msp_prom.h.

#define MACHINE_TYPE_MSP2000REVB_FPGA   "MSP2000REVB-FPGA"

Definition at line 62 of file msp_prom.h.

#define MACHINE_TYPE_MSP4200   "MSP4200"

Definition at line 54 of file msp_prom.h.

#define MACHINE_TYPE_MSP4200_FPGA   "MSP4200-FPGA"

Definition at line 64 of file msp_prom.h.

#define MACHINE_TYPE_MSP5000   "MSP5000"

Definition at line 53 of file msp_prom.h.

#define MACHINE_TYPE_MSP5000_FPGA   "MSP5000-FPGA"

Definition at line 63 of file msp_prom.h.

#define MACHINE_TYPE_MSP7100_FPGA   "MSP7100-FPGA"

Definition at line 65 of file msp_prom.h.

#define MACHINE_TYPE_MSP7120   "MSP7120"

Definition at line 55 of file msp_prom.h.

#define MACHINE_TYPE_MSP7130   "MSP7130"

Definition at line 56 of file msp_prom.h.

#define MACHINE_TYPE_OTHER   "OTHER"

Definition at line 57 of file msp_prom.h.

#define MACHINE_TYPE_OTHER_FPGA   "OTHER-FPGA"

Definition at line 66 of file msp_prom.h.

#define MACHINE_TYPE_POLO   "POLO"

Definition at line 49 of file msp_prom.h.

#define MACHINE_TYPE_POLO_FPGA   "POLO-FPGA"

Definition at line 59 of file msp_prom.h.

#define MACHINE_TYPE_ZEUS   "ZEUS"

Definition at line 51 of file msp_prom.h.

#define MACHINE_TYPE_ZEUS_FPGA   "ZEUS_FPGA"

Definition at line 61 of file msp_prom.h.

#define PCI_HOST   'H'

Definition at line 101 of file msp_prom.h.

#define PCI_KEY   'P'

Definition at line 85 of file msp_prom.h.

#define PCI_PERIPHERAL   'P'

Definition at line 102 of file msp_prom.h.

#define PCIMUX_FULL   'F'

Definition at line 104 of file msp_prom.h.

#define PCIMUX_KEY   'p'

Definition at line 86 of file msp_prom.h.

#define PCIMUX_SINGLE   'S'

Definition at line 105 of file msp_prom.h.

#define ppfinit (   f,
  x... 
)
Value:
do { \
static char _f[] __initdata = KERN_INFO f; \
printk(_f, ## x); \
} while (0)

Definition at line 144 of file msp_prom.h.

#define PROM_ENV   "prom_env"

Definition at line 32 of file msp_prom.h.

#define PROM_ENV_FILE   "/proc/"PROM_ENV

Definition at line 33 of file msp_prom.h.

#define PROM_ENV_SIZE   256

Definition at line 34 of file msp_prom.h.

#define PROM_MAX_PMEMBLOCKS   7 /* 6 used */

Definition at line 151 of file msp_prom.h.

#define SEC_DUET   'D'

Definition at line 107 of file msp_prom.h.

#define SEC_KEY   'S'

Definition at line 87 of file msp_prom.h.

#define SEC_POLO   'P'

Definition at line 108 of file msp_prom.h.

#define SEC_SLOW   'S'

Definition at line 109 of file msp_prom.h.

#define SEC_TRIAD   'T'

Definition at line 110 of file msp_prom.h.

#define SPAD_KEY   'D'

Definition at line 88 of file msp_prom.h.

#define SPAD_POLO   'P'

Definition at line 112 of file msp_prom.h.

#define TDM_DUET   'D' /* DUET TDMs might exist */

Definition at line 114 of file msp_prom.h.

#define TDM_KEY   'T'

Definition at line 89 of file msp_prom.h.

#define TDM_POLO   'P' /* POLO TDMs might exist */

Definition at line 115 of file msp_prom.h.

#define TDM_TRIAD   'T' /* TRIAD TDMs might exist */

Definition at line 116 of file msp_prom.h.

#define TYPE_MSP7120   0x7120

Definition at line 80 of file msp_prom.h.

#define TYPE_MSP7130   0x7130

Definition at line 81 of file msp_prom.h.

#define ZSP_DUET   'D' /* one DUET zsp engine */

Definition at line 118 of file msp_prom.h.

#define ZSP_KEY   'Z'

Definition at line 90 of file msp_prom.h.

#define ZSP_TRIAD   'T' /* two TRIAD zsp engines */

Definition at line 119 of file msp_prom.h.

Enumeration Type Documentation

Enumerator:
yamon_dontuse 
yamon_prom 
yamon_free 
yamon_dontuse 
yamon_prom 
yamon_free 
yamon_dontuse 
yamon_prom 
yamon_free 

Definition at line 153 of file msp_prom.h.

Function Documentation

unsigned long get_deviceid ( void  )

Definition at line 194 of file msp_prom.c.

int get_ethernet_addr ( char ethaddr_name,
char ethernet_addr 
)

Definition at line 140 of file msp_prom.c.

char identify_enet ( unsigned long  interface_num)

Definition at line 252 of file msp_prom.c.

char identify_enetTxD ( unsigned long  interface_num)

Definition at line 258 of file msp_prom.c.

unsigned long identify_family ( void  )

Definition at line 264 of file msp_prom.c.

char identify_pci ( void  )

Definition at line 204 of file msp_prom.c.

unsigned long identify_revision ( void  )

Definition at line 274 of file msp_prom.c.

char identify_sec ( void  )

Definition at line 215 of file msp_prom.c.

char identify_spad ( void  )

Definition at line 221 of file msp_prom.c.

char identify_tdm ( void  )

Definition at line 227 of file msp_prom.c.

char identify_zsp ( void  )

Definition at line 233 of file msp_prom.c.

void prom_fixup_mem_map ( unsigned long  start_mem,
unsigned long  end_mem 
)

Definition at line 140 of file prom.c.

char* prom_getenv ( char name)

Definition at line 57 of file prom.c.

struct prom_pmemblock* prom_getmdesc ( void  )
read

Definition at line 25 of file sead3-memory.c.

void prom_init_cmdline ( void  )

Definition at line 46 of file prom.c.

void prom_meminit ( void  )

Definition at line 60 of file memory.c.

Variable Documentation

int prom_argc

Definition at line 42 of file prom.c.

char** prom_argv

Definition at line 43 of file prom.c.

char** prom_envp

Definition at line 44 of file prom.c.

int* prom_vec

Definition at line 56 of file msp_prom.c.