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

Go to the source code of this file.

Data Structures

struct  lasat_misc
 
struct  lasat_eeprom_struct
 
struct  lasat_eeprom_struct_pre7
 
struct  lasat_info
 

Macros

#define LASAT_EEPROM_VERSION   7
 
#define LASAT_W0_DSCTYPE(v)   (((v)) & 0xf)
 
#define LASAT_W0_BMID(v)   (((v) >> 0x04) & 0xf)
 
#define LASAT_W0_CPUTYPE(v)   (((v) >> 0x08) & 0xf)
 
#define LASAT_W0_BUSSPEED(v)   (((v) >> 0x0c) & 0xf)
 
#define LASAT_W0_CPUCLK(v)   (((v) >> 0x10) & 0xf)
 
#define LASAT_W0_SDRAMBANKSZ(v)   (((v) >> 0x14) & 0xf)
 
#define LASAT_W0_SDRAMBANKS(v)   (((v) >> 0x18) & 0xf)
 
#define LASAT_W0_L2CACHE(v)   (((v) >> 0x1c) & 0xf)
 
#define LASAT_W1_EDHAC(v)   (((v)) & 0xf)
 
#define LASAT_W1_HIFN(v)   (((v) >> 0x04) & 0x1)
 
#define LASAT_W1_ISDN(v)   (((v) >> 0x05) & 0x1)
 
#define LASAT_W1_IDE(v)   (((v) >> 0x06) & 0x1)
 
#define LASAT_W1_HDLC(v)   (((v) >> 0x07) & 0x1)
 
#define LASAT_W1_USVERSION(v)   (((v) >> 0x08) & 0x1)
 
#define LASAT_W1_4MACS(v)   (((v) >> 0x09) & 0x1)
 
#define LASAT_W1_EXTSERIAL(v)   (((v) >> 0x0a) & 0x1)
 
#define LASAT_W1_FLASHSIZE(v)   (((v) >> 0x0c) & 0xf)
 
#define LASAT_W1_PCISLOTS(v)   (((v) >> 0x10) & 0xf)
 
#define LASAT_W1_PCI1OPT(v)   (((v) >> 0x14) & 0xf)
 
#define LASAT_W1_PCI2OPT(v)   (((v) >> 0x18) & 0xf)
 
#define LASAT_W1_PCI3OPT(v)   (((v) >> 0x1c) & 0xf)
 
#define LASAT_BMID_MASQUERADE2   0
 
#define LASAT_BMID_MASQUERADEPRO   1
 
#define LASAT_BMID_SAFEPIPE25   2
 
#define LASAT_BMID_SAFEPIPE50   3
 
#define LASAT_BMID_SAFEPIPE100   4
 
#define LASAT_BMID_SAFEPIPE5000   5
 
#define LASAT_BMID_SAFEPIPE7000   6
 
#define LASAT_BMID_SAFEPIPE1000   7
 
#define LASAT_BMID_UNKNOWN   0xf
 
#define LASAT_MAX_BMID_NAMES   9 /* no larger than 15! */
 
#define LASAT_HAS_EDHAC   (1 << 0)
 
#define LASAT_EDHAC_FAST   (1 << 1)
 
#define LASAT_HAS_EADI   (1 << 2)
 
#define LASAT_HAS_HIFN   (1 << 3)
 
#define LASAT_HAS_ISDN   (1 << 4)
 
#define LASAT_HAS_LEASEDLINE_IF   (1 << 5)
 
#define LASAT_HAS_HDC   (1 << 6)
 
#define LASAT_PRID_MASQUERADE2   0
 
#define LASAT_PRID_MASQUERADEPRO   1
 
#define LASAT_PRID_SAFEPIPE25   2
 
#define LASAT_PRID_SAFEPIPE50   3
 
#define LASAT_PRID_SAFEPIPE100   4
 
#define LASAT_PRID_SAFEPIPE5000   5
 
#define LASAT_PRID_SAFEPIPE7000   6
 
#define LASAT_PRID_SAFEPIPE30   7
 
#define LASAT_PRID_SAFEPIPE5100   8
 
#define LASAT_PRID_SAFEPIPE7100   9
 
#define LASAT_PRID_SAFEPIPE1110   10
 
#define LASAT_PRID_SAFEPIPE3020   11
 
#define LASAT_PRID_SAFEPIPE3030   12
 
#define LASAT_PRID_SAFEPIPE5020   13
 
#define LASAT_PRID_SAFEPIPE5030   14
 
#define LASAT_PRID_SAFEPIPE1120   15
 
#define LASAT_PRID_SAFEPIPE1130   16
 
#define LASAT_PRID_SAFEPIPE6010   17
 
#define LASAT_PRID_SAFEPIPE6110   18
 
#define LASAT_PRID_SAFEPIPE6210   19
 
#define LASAT_PRID_SAFEPIPE1020   20
 
#define LASAT_PRID_SAFEPIPE1040   21
 
#define LASAT_PRID_SAFEPIPE1060   22
 
#define N_MACHTYPES   2
 
#define LASAT_100_DIVIDER   20
 
#define LASAT_200_DIVIDER   8
 
#define IS_LASAT_200()   (current_cpu_data.cputype == CPU_R5000)
 
#define LASAT_SERVICEMODE_MAGIC_1   0xdeadbeef
 
#define LASAT_SERVICEMODE_MAGIC_2   0xfedeabba
 
#define LASAT_GT_BASE   (KSEG1ADDR(0x14000000))
 
#define Vrc5074_PHYS_BASE   0x1fa00000
 
#define Vrc5074_BASE   (KSEG1ADDR(Vrc5074_PHYS_BASE))
 
#define PCI_WINDOW1   0x1a000000
 

Enumerations

enum  lasat_mtdparts {
  LASAT_MTD_BOOTLOADER, LASAT_MTD_SERVICE, LASAT_MTD_NORMAL, LASAT_MTD_CONFIG,
  LASAT_MTD_FS, LASAT_MTD_LAST
}
 

Functions

int lasat_init_board_info (void)
 
void lasat_write_eeprom_info (void)
 

Variables

struct lasat_misclasat_misc
 
struct lasat_info lasat_board_info
 
unsigned int lasat_ndelay_divider
 

Macro Definition Documentation

#define IS_LASAT_200 ( )    (current_cpu_data.cputype == CPU_R5000)

Definition at line 242 of file lasat.h.

#define LASAT_100_DIVIDER   20

Definition at line 231 of file lasat.h.

#define LASAT_200_DIVIDER   8

Definition at line 233 of file lasat.h.

#define LASAT_BMID_MASQUERADE2   0

Definition at line 128 of file lasat.h.

#define LASAT_BMID_MASQUERADEPRO   1

Definition at line 129 of file lasat.h.

#define LASAT_BMID_SAFEPIPE100   4

Definition at line 132 of file lasat.h.

#define LASAT_BMID_SAFEPIPE1000   7

Definition at line 135 of file lasat.h.

#define LASAT_BMID_SAFEPIPE25   2

Definition at line 130 of file lasat.h.

#define LASAT_BMID_SAFEPIPE50   3

Definition at line 131 of file lasat.h.

#define LASAT_BMID_SAFEPIPE5000   5

Definition at line 133 of file lasat.h.

#define LASAT_BMID_SAFEPIPE7000   6

Definition at line 134 of file lasat.h.

#define LASAT_BMID_UNKNOWN   0xf

Definition at line 141 of file lasat.h.

#define LASAT_EDHAC_FAST   (1 << 1)

Definition at line 145 of file lasat.h.

#define LASAT_EEPROM_VERSION   7

Definition at line 49 of file lasat.h.

#define LASAT_GT_BASE   (KSEG1ADDR(0x14000000))

Definition at line 250 of file lasat.h.

#define LASAT_HAS_EADI   (1 << 2)

Definition at line 146 of file lasat.h.

#define LASAT_HAS_EDHAC   (1 << 0)

Definition at line 144 of file lasat.h.

#define LASAT_HAS_HDC   (1 << 6)

Definition at line 150 of file lasat.h.

#define LASAT_HAS_HIFN   (1 << 3)

Definition at line 147 of file lasat.h.

#define LASAT_HAS_ISDN   (1 << 4)

Definition at line 148 of file lasat.h.

#define LASAT_HAS_LEASEDLINE_IF   (1 << 5)

Definition at line 149 of file lasat.h.

#define LASAT_MAX_BMID_NAMES   9 /* no larger than 15! */

Definition at line 142 of file lasat.h.

#define LASAT_PRID_MASQUERADE2   0

Definition at line 152 of file lasat.h.

#define LASAT_PRID_MASQUERADEPRO   1

Definition at line 153 of file lasat.h.

#define LASAT_PRID_SAFEPIPE100   4

Definition at line 156 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1020   20

Definition at line 173 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1040   21

Definition at line 174 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1060   22

Definition at line 175 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1110   10

Definition at line 163 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1120   15

Definition at line 168 of file lasat.h.

#define LASAT_PRID_SAFEPIPE1130   16

Definition at line 169 of file lasat.h.

#define LASAT_PRID_SAFEPIPE25   2

Definition at line 154 of file lasat.h.

#define LASAT_PRID_SAFEPIPE30   7

Definition at line 159 of file lasat.h.

#define LASAT_PRID_SAFEPIPE3020   11

Definition at line 164 of file lasat.h.

#define LASAT_PRID_SAFEPIPE3030   12

Definition at line 165 of file lasat.h.

#define LASAT_PRID_SAFEPIPE50   3

Definition at line 155 of file lasat.h.

#define LASAT_PRID_SAFEPIPE5000   5

Definition at line 157 of file lasat.h.

#define LASAT_PRID_SAFEPIPE5020   13

Definition at line 166 of file lasat.h.

#define LASAT_PRID_SAFEPIPE5030   14

Definition at line 167 of file lasat.h.

#define LASAT_PRID_SAFEPIPE5100   8

Definition at line 160 of file lasat.h.

#define LASAT_PRID_SAFEPIPE6010   17

Definition at line 170 of file lasat.h.

#define LASAT_PRID_SAFEPIPE6110   18

Definition at line 171 of file lasat.h.

#define LASAT_PRID_SAFEPIPE6210   19

Definition at line 172 of file lasat.h.

#define LASAT_PRID_SAFEPIPE7000   6

Definition at line 158 of file lasat.h.

#define LASAT_PRID_SAFEPIPE7100   9

Definition at line 161 of file lasat.h.

#define LASAT_SERVICEMODE_MAGIC_1   0xdeadbeef

Definition at line 246 of file lasat.h.

#define LASAT_SERVICEMODE_MAGIC_2   0xfedeabba

Definition at line 247 of file lasat.h.

#define LASAT_W0_BMID (   v)    (((v) >> 0x04) & 0xf)

Definition at line 104 of file lasat.h.

#define LASAT_W0_BUSSPEED (   v)    (((v) >> 0x0c) & 0xf)

Definition at line 106 of file lasat.h.

#define LASAT_W0_CPUCLK (   v)    (((v) >> 0x10) & 0xf)

Definition at line 107 of file lasat.h.

#define LASAT_W0_CPUTYPE (   v)    (((v) >> 0x08) & 0xf)

Definition at line 105 of file lasat.h.

#define LASAT_W0_DSCTYPE (   v)    (((v)) & 0xf)

Definition at line 103 of file lasat.h.

#define LASAT_W0_L2CACHE (   v)    (((v) >> 0x1c) & 0xf)

Definition at line 110 of file lasat.h.

#define LASAT_W0_SDRAMBANKS (   v)    (((v) >> 0x18) & 0xf)

Definition at line 109 of file lasat.h.

#define LASAT_W0_SDRAMBANKSZ (   v)    (((v) >> 0x14) & 0xf)

Definition at line 108 of file lasat.h.

#define LASAT_W1_4MACS (   v)    (((v) >> 0x09) & 0x1)

Definition at line 118 of file lasat.h.

#define LASAT_W1_EDHAC (   v)    (((v)) & 0xf)

Definition at line 112 of file lasat.h.

#define LASAT_W1_EXTSERIAL (   v)    (((v) >> 0x0a) & 0x1)

Definition at line 119 of file lasat.h.

#define LASAT_W1_FLASHSIZE (   v)    (((v) >> 0x0c) & 0xf)

Definition at line 120 of file lasat.h.

#define LASAT_W1_HDLC (   v)    (((v) >> 0x07) & 0x1)

Definition at line 116 of file lasat.h.

#define LASAT_W1_HIFN (   v)    (((v) >> 0x04) & 0x1)

Definition at line 113 of file lasat.h.

#define LASAT_W1_IDE (   v)    (((v) >> 0x06) & 0x1)

Definition at line 115 of file lasat.h.

#define LASAT_W1_ISDN (   v)    (((v) >> 0x05) & 0x1)

Definition at line 114 of file lasat.h.

#define LASAT_W1_PCI1OPT (   v)    (((v) >> 0x14) & 0xf)

Definition at line 122 of file lasat.h.

#define LASAT_W1_PCI2OPT (   v)    (((v) >> 0x18) & 0xf)

Definition at line 123 of file lasat.h.

#define LASAT_W1_PCI3OPT (   v)    (((v) >> 0x1c) & 0xf)

Definition at line 124 of file lasat.h.

#define LASAT_W1_PCISLOTS (   v)    (((v) >> 0x10) & 0xf)

Definition at line 121 of file lasat.h.

#define LASAT_W1_USVERSION (   v)    (((v) >> 0x08) & 0x1)

Definition at line 117 of file lasat.h.

#define N_MACHTYPES   2

Definition at line 220 of file lasat.h.

#define PCI_WINDOW1   0x1a000000

Definition at line 255 of file lasat.h.

#define Vrc5074_BASE   (KSEG1ADDR(Vrc5074_PHYS_BASE))

Definition at line 254 of file lasat.h.

#define Vrc5074_PHYS_BASE   0x1fa00000

Definition at line 253 of file lasat.h.

Enumeration Type Documentation

Enumerator:
LASAT_MTD_BOOTLOADER 
LASAT_MTD_SERVICE 
LASAT_MTD_NORMAL 
LASAT_MTD_CONFIG 
LASAT_MTD_FS 
LASAT_MTD_LAST 

Definition at line 33 of file lasat.h.

Function Documentation

int lasat_init_board_info ( void  )

Definition at line 93 of file lasat_board.c.

void lasat_write_eeprom_info ( void  )

Definition at line 264 of file lasat_board.c.

Variable Documentation

struct lasat_info lasat_board_info

Definition at line 36 of file lasat_board.c.

unsigned int lasat_ndelay_divider

Definition at line 50 of file prom.c.