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

Go to the source code of this file.

Macros

#define KUSEG   0x00000000
 
#define KSEG0   0x80000000
 
#define KSEG1   0xa0000000
 
#define KSEG2   0xc0000000
 
#define KSEG3   0xe0000000
 
#define K0BASE   KSEG0
 
#define KSEGX(a)   (((unsigned long)(a)) & 0xe0000000)
 
#define PHYSADDR(a)   (((unsigned long)(a)) & 0x1fffffff)
 
#define KSEG0ADDR(a)   ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG0))
 
#define KSEG1ADDR(a)   ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG1))
 
#define KSEG2ADDR(a)   ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG2))
 
#define KSEG3ADDR(a)   ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG3))
 

Macro Definition Documentation

#define K0BASE   KSEG0

Definition at line 22 of file addrspace.h.

#define KSEG0   0x80000000

Definition at line 17 of file addrspace.h.

#define KSEG0ADDR (   a)    ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG0))

Definition at line 46 of file addrspace.h.

#define KSEG1   0xa0000000

Definition at line 18 of file addrspace.h.

#define KSEG1ADDR (   a)    ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG1))

Definition at line 47 of file addrspace.h.

#define KSEG2   0xc0000000

Definition at line 19 of file addrspace.h.

#define KSEG2ADDR (   a)    ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG2))

Definition at line 48 of file addrspace.h.

#define KSEG3   0xe0000000

Definition at line 20 of file addrspace.h.

#define KSEG3ADDR (   a)    ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG3))

Definition at line 49 of file addrspace.h.

#define KSEGX (   a)    (((unsigned long)(a)) & 0xe0000000)

Definition at line 28 of file addrspace.h.

#define KUSEG   0x00000000

Definition at line 16 of file addrspace.h.

#define PHYSADDR (   a)    (((unsigned long)(a)) & 0x1fffffff)

Definition at line 37 of file addrspace.h.