Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
io-unit.h File Reference
#include <linux/spinlock.h>
#include <asm/page.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Data Structures

struct  iounit_struct
 

Macros

#define IOUNIT_DMA_BASE   0xfc000000 /* TOP - 64M */
 
#define IOUNIT_DMA_SIZE   0x04000000 /* 64M */
 
#define IOUNIT_DVMA_SIZE   0x00100000 /* 1M */
 
#define IOUPTE_PAGE   0xffffff00 /* Physical page number (PA[35:12]) */
 
#define IOUPTE_CACHE   0x00000080 /* Cached (in Viking/MXCC) */
 
#define IOUPTE_STREAM   0x00000040 /* Translation can use streaming cache */
 
#define IOUPTE_INTRA   0x00000008 /* SBUS direct slot->slot transfer */
 
#define IOUPTE_WRITE   0x00000004 /* Writeable */
 
#define IOUPTE_VALID   0x00000002 /* IOPTE is valid */
 
#define IOUPTE_PARITY   0x00000001 /* Parity is checked during DVMA */
 
#define IOUNIT_BMAP1_START   0x00000000
 
#define IOUNIT_BMAP1_END   (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 1))
 
#define IOUNIT_BMAP2_START   IOUNIT_BMAP1_END
 
#define IOUNIT_BMAP2_END   IOUNIT_BMAP2_START + (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 2))
 
#define IOUNIT_BMAPM_START   IOUNIT_BMAP2_END
 
#define IOUNIT_BMAPM_END   ((IOUNIT_DMA_SIZE - IOUNIT_DVMA_SIZE) >> PAGE_SHIFT)
 

Macro Definition Documentation

#define IOUNIT_BMAP1_END   (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 1))

Definition at line 52 of file io-unit.h.

#define IOUNIT_BMAP1_START   0x00000000

Definition at line 51 of file io-unit.h.

#define IOUNIT_BMAP2_END   IOUNIT_BMAP2_START + (IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 2))

Definition at line 54 of file io-unit.h.

#define IOUNIT_BMAP2_START   IOUNIT_BMAP1_END

Definition at line 53 of file io-unit.h.

#define IOUNIT_BMAPM_END   ((IOUNIT_DMA_SIZE - IOUNIT_DVMA_SIZE) >> PAGE_SHIFT)

Definition at line 56 of file io-unit.h.

#define IOUNIT_BMAPM_START   IOUNIT_BMAP2_END

Definition at line 55 of file io-unit.h.

#define IOUNIT_DMA_BASE   0xfc000000 /* TOP - 64M */

Definition at line 24 of file io-unit.h.

#define IOUNIT_DMA_SIZE   0x04000000 /* 64M */

Definition at line 25 of file io-unit.h.

#define IOUNIT_DVMA_SIZE   0x00100000 /* 1M */

Definition at line 27 of file io-unit.h.

#define IOUPTE_CACHE   0x00000080 /* Cached (in Viking/MXCC) */

Definition at line 31 of file io-unit.h.

#define IOUPTE_INTRA   0x00000008 /* SBUS direct slot->slot transfer */

Definition at line 38 of file io-unit.h.

#define IOUPTE_PAGE   0xffffff00 /* Physical page number (PA[35:12]) */

Definition at line 30 of file io-unit.h.

#define IOUPTE_PARITY   0x00000001 /* Parity is checked during DVMA */

Definition at line 41 of file io-unit.h.

#define IOUPTE_STREAM   0x00000040 /* Translation can use streaming cache */

Definition at line 37 of file io-unit.h.

#define IOUPTE_VALID   0x00000002 /* IOPTE is valid */

Definition at line 40 of file io-unit.h.

#define IOUPTE_WRITE   0x00000004 /* Writeable */

Definition at line 39 of file io-unit.h.