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

Go to the source code of this file.

Macros

#define iomd_readb(off)   __raw_readb(IOMD_BASE + (off))
 
#define iomd_readl(off)   __raw_readl(IOMD_BASE + (off))
 
#define iomd_writeb(val, off)   __raw_writeb(val, IOMD_BASE + (off))
 
#define iomd_writel(val, off)   __raw_writel(val, IOMD_BASE + (off))
 
#define IOMD_CONTROL   (0x000)
 
#define IOMD_KARTTX   (0x004)
 
#define IOMD_KARTRX   (0x004)
 
#define IOMD_KCTRL   (0x008)
 
#define IOMD_IRQSTATA   (0x010)
 
#define IOMD_IRQREQA   (0x014)
 
#define IOMD_IRQCLRA   (0x014)
 
#define IOMD_IRQMASKA   (0x018)
 
#define IOMD_IRQSTATB   (0x020)
 
#define IOMD_IRQREQB   (0x024)
 
#define IOMD_IRQMASKB   (0x028)
 
#define IOMD_FIQSTAT   (0x030)
 
#define IOMD_FIQREQ   (0x034)
 
#define IOMD_FIQMASK   (0x038)
 
#define IOMD_T0CNTL   (0x040)
 
#define IOMD_T0LTCHL   (0x040)
 
#define IOMD_T0CNTH   (0x044)
 
#define IOMD_T0LTCHH   (0x044)
 
#define IOMD_T0GO   (0x048)
 
#define IOMD_T0LATCH   (0x04c)
 
#define IOMD_T1CNTL   (0x050)
 
#define IOMD_T1LTCHL   (0x050)
 
#define IOMD_T1CNTH   (0x054)
 
#define IOMD_T1LTCHH   (0x054)
 
#define IOMD_T1GO   (0x058)
 
#define IOMD_T1LATCH   (0x05c)
 
#define IOMD_ROMCR0   (0x080)
 
#define IOMD_ROMCR1   (0x084)
 
#define IOMD_REFCR   (0x08C)
 
#define IOMD_FSIZE   (0x090)
 
#define IOMD_ID0   (0x094)
 
#define IOMD_ID1   (0x098)
 
#define IOMD_VERSION   (0x09C)
 
#define IOMD_IOTCR   (0x0C4)
 
#define IOMD_ECTCR   (0x0C8)
 
#define IOMD_SD0CURA   (0x180)
 
#define IOMD_SD0ENDA   (0x184)
 
#define IOMD_SD0CURB   (0x188)
 
#define IOMD_SD0ENDB   (0x18C)
 
#define IOMD_SD0CR   (0x190)
 
#define IOMD_SD0ST   (0x194)
 
#define IOMD_CURSCUR   (0x1C0)
 
#define IOMD_CURSINIT   (0x1C4)
 
#define IOMD_VIDCUR   (0x1D0)
 
#define IOMD_VIDEND   (0x1D4)
 
#define IOMD_VIDSTART   (0x1D8)
 
#define IOMD_VIDINIT   (0x1DC)
 
#define IOMD_VIDCR   (0x1E0)
 
#define IOMD_DMASTAT   (0x1F0)
 
#define IOMD_DMAREQ   (0x1F4)
 
#define IOMD_DMAMASK   (0x1F8)
 
#define DMA_END_S   (1 << 31)
 
#define DMA_END_L   (1 << 30)
 
#define DMA_CR_C   0x80
 
#define DMA_CR_D   0x40
 
#define DMA_CR_E   0x20
 
#define DMA_ST_OFL   4
 
#define DMA_ST_INT   2
 
#define DMA_ST_AB   1
 
#define HALF_SAM   vram_half_sam
 
#define VDMA_ALIGNMENT   (HALF_SAM * 2)
 
#define VDMA_XFERSIZE   (HALF_SAM)
 
#define VDMA_INIT   IOMD_VIDINIT
 
#define VDMA_START   IOMD_VIDSTART
 
#define VDMA_END   IOMD_VIDEND
 
#define video_set_dma(start, end, offset)
 

Variables

unsigned int vram_half_sam
 

Macro Definition Documentation

#define DMA_CR_C   0x80

Definition at line 155 of file iomd.h.

#define DMA_CR_D   0x40

Definition at line 156 of file iomd.h.

#define DMA_CR_E   0x20

Definition at line 157 of file iomd.h.

#define DMA_END_L   (1 << 30)

Definition at line 153 of file iomd.h.

#define DMA_END_S   (1 << 31)

Definition at line 152 of file iomd.h.

#define DMA_ST_AB   1

Definition at line 161 of file iomd.h.

#define DMA_ST_INT   2

Definition at line 160 of file iomd.h.

#define DMA_ST_OFL   4

Definition at line 159 of file iomd.h.

#define HALF_SAM   vram_half_sam

Definition at line 166 of file iomd.h.

#define IOMD_CONTROL   (0x000)

Definition at line 30 of file iomd.h.

#define IOMD_CURSCUR   (0x1C0)

Definition at line 139 of file iomd.h.

#define IOMD_CURSINIT   (0x1C4)

Definition at line 140 of file iomd.h.

#define IOMD_DMAMASK   (0x1F8)

Definition at line 150 of file iomd.h.

#define IOMD_DMAREQ   (0x1F4)

Definition at line 149 of file iomd.h.

#define IOMD_DMASTAT   (0x1F0)

Definition at line 148 of file iomd.h.

#define IOMD_ECTCR   (0x0C8)

Definition at line 83 of file iomd.h.

#define IOMD_FIQMASK   (0x038)

Definition at line 46 of file iomd.h.

#define IOMD_FIQREQ   (0x034)

Definition at line 45 of file iomd.h.

#define IOMD_FIQSTAT   (0x030)

Definition at line 44 of file iomd.h.

#define IOMD_FSIZE   (0x090)

Definition at line 69 of file iomd.h.

#define IOMD_ID0   (0x094)

Definition at line 70 of file iomd.h.

#define IOMD_ID1   (0x098)

Definition at line 71 of file iomd.h.

#define IOMD_IOTCR   (0x0C4)

Definition at line 82 of file iomd.h.

#define IOMD_IRQCLRA   (0x014)

Definition at line 37 of file iomd.h.

#define IOMD_IRQMASKA   (0x018)

Definition at line 38 of file iomd.h.

#define IOMD_IRQMASKB   (0x028)

Definition at line 42 of file iomd.h.

#define IOMD_IRQREQA   (0x014)

Definition at line 36 of file iomd.h.

#define IOMD_IRQREQB   (0x024)

Definition at line 41 of file iomd.h.

#define IOMD_IRQSTATA   (0x010)

Definition at line 35 of file iomd.h.

#define IOMD_IRQSTATB   (0x020)

Definition at line 40 of file iomd.h.

#define IOMD_KARTRX   (0x004)

Definition at line 32 of file iomd.h.

#define IOMD_KARTTX   (0x004)

Definition at line 31 of file iomd.h.

#define IOMD_KCTRL   (0x008)

Definition at line 33 of file iomd.h.

#define iomd_readb (   off)    __raw_readb(IOMD_BASE + (off))

Definition at line 23 of file iomd.h.

#define iomd_readl (   off)    __raw_readl(IOMD_BASE + (off))

Definition at line 24 of file iomd.h.

#define IOMD_REFCR   (0x08C)

Definition at line 67 of file iomd.h.

#define IOMD_ROMCR0   (0x080)

Definition at line 62 of file iomd.h.

#define IOMD_ROMCR1   (0x084)

Definition at line 63 of file iomd.h.

#define IOMD_SD0CR   (0x190)

Definition at line 127 of file iomd.h.

#define IOMD_SD0CURA   (0x180)

Definition at line 123 of file iomd.h.

#define IOMD_SD0CURB   (0x188)

Definition at line 125 of file iomd.h.

#define IOMD_SD0ENDA   (0x184)

Definition at line 124 of file iomd.h.

#define IOMD_SD0ENDB   (0x18C)

Definition at line 126 of file iomd.h.

#define IOMD_SD0ST   (0x194)

Definition at line 128 of file iomd.h.

#define IOMD_T0CNTH   (0x044)

Definition at line 50 of file iomd.h.

#define IOMD_T0CNTL   (0x040)

Definition at line 48 of file iomd.h.

#define IOMD_T0GO   (0x048)

Definition at line 52 of file iomd.h.

#define IOMD_T0LATCH   (0x04c)

Definition at line 53 of file iomd.h.

#define IOMD_T0LTCHH   (0x044)

Definition at line 51 of file iomd.h.

#define IOMD_T0LTCHL   (0x040)

Definition at line 49 of file iomd.h.

#define IOMD_T1CNTH   (0x054)

Definition at line 57 of file iomd.h.

#define IOMD_T1CNTL   (0x050)

Definition at line 55 of file iomd.h.

#define IOMD_T1GO   (0x058)

Definition at line 59 of file iomd.h.

#define IOMD_T1LATCH   (0x05c)

Definition at line 60 of file iomd.h.

#define IOMD_T1LTCHH   (0x054)

Definition at line 58 of file iomd.h.

#define IOMD_T1LTCHL   (0x050)

Definition at line 56 of file iomd.h.

#define IOMD_VERSION   (0x09C)

Definition at line 72 of file iomd.h.

#define IOMD_VIDCR   (0x1E0)

Definition at line 146 of file iomd.h.

#define IOMD_VIDCUR   (0x1D0)

Definition at line 142 of file iomd.h.

#define IOMD_VIDEND   (0x1D4)

Definition at line 143 of file iomd.h.

#define IOMD_VIDINIT   (0x1DC)

Definition at line 145 of file iomd.h.

#define IOMD_VIDSTART   (0x1D8)

Definition at line 144 of file iomd.h.

#define iomd_writeb (   val,
  off 
)    __raw_writeb(val, IOMD_BASE + (off))

Definition at line 25 of file iomd.h.

#define iomd_writel (   val,
  off 
)    __raw_writel(val, IOMD_BASE + (off))

Definition at line 26 of file iomd.h.

#define VDMA_ALIGNMENT   (HALF_SAM * 2)

Definition at line 167 of file iomd.h.

#define VDMA_END   IOMD_VIDEND

Definition at line 171 of file iomd.h.

#define VDMA_INIT   IOMD_VIDINIT

Definition at line 169 of file iomd.h.

#define VDMA_START   IOMD_VIDSTART

Definition at line 170 of file iomd.h.

#define VDMA_XFERSIZE   (HALF_SAM)

Definition at line 168 of file iomd.h.

#define video_set_dma (   start,
  end,
  offset 
)
Value:
do { \
offset |= 0x40000000; \
} while (0)

Definition at line 175 of file iomd.h.

Variable Documentation

unsigned int vram_half_sam