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

Go to the source code of this file.

Macros

#define PLD_BASE   (PLD_PLAT_BASE /* + NONCACHE_OFFSET */)
 
#define __reg8   (volatile unsigned char *)
 
#define __reg16   (volatile unsigned short *)
 
#define __reg32   (volatile unsigned int *)
 
#define PLD_CFRSTCR   __reg16(PLD_BASE + 0x0000)
 
#define PLD_CFSTS   __reg16(PLD_BASE + 0x0002)
 
#define PLD_CFIMASK   __reg16(PLD_BASE + 0x0004)
 
#define PLD_CFBUFCR   __reg16(PLD_BASE + 0x0006)
 
#define PLD_MMCCR   __reg16(PLD_BASE + 0x4000)
 
#define PLD_MMCMOD   __reg16(PLD_BASE + 0x4002)
 
#define PLD_MMCSTS   __reg16(PLD_BASE + 0x4006)
 
#define PLD_MMCBAUR   __reg16(PLD_BASE + 0x400a)
 
#define PLD_MMCCMDBCUT   __reg16(PLD_BASE + 0x400c)
 
#define PLD_MMCCDTBCUT   __reg16(PLD_BASE + 0x400e)
 
#define PLD_MMCDET   __reg16(PLD_BASE + 0x4010)
 
#define PLD_MMCWP   __reg16(PLD_BASE + 0x4012)
 
#define PLD_MMCWDATA   __reg16(PLD_BASE + 0x5000)
 
#define PLD_MMCRDATA   __reg16(PLD_BASE + 0x6000)
 
#define PLD_MMCCMDDATA   __reg16(PLD_BASE + 0x7000)
 
#define PLD_MMCRSPDATA   __reg16(PLD_BASE + 0x7006)
 
#define PLD_IRQ_INT0   (M32104UT_PLD_IRQ_BASE + 0) /* None */
 
#define PLD_IRQ_CFIREQ   (M32104UT_PLD_IRQ_BASE + 3) /* CF IREQ */
 
#define PLD_IRQ_CFC_INSERT   (M32104UT_PLD_IRQ_BASE + 4) /* CF Insert */
 
#define PLD_IRQ_CFC_EJECT   (M32104UT_PLD_IRQ_BASE + 5) /* CF Eject */
 
#define PLD_IRQ_EXINT   (M32104UT_PLD_IRQ_BASE + 6) /* EXINT */
 
#define PLD_IRQ_MMCCARD   (M32104UT_PLD_IRQ_BASE + 11) /* MMC Insert/Eject */
 
#define PLD_IRQ_SC_ERROR   (M32104UT_PLD_IRQ_BASE + 13) /* SC error */
 
#define PLD_IRQ_SC_RCV   (M32104UT_PLD_IRQ_BASE + 14) /* SC receive */
 
#define PLD_IRQ_SC_SND   (M32104UT_PLD_IRQ_BASE + 15) /* SC send */
 
#define PLD_ICUISTS   __reg16(PLD_BASE + 0x8002)
 
#define PLD_ICUISTS_VECB_MASK   (0xf000)
 
#define PLD_ICUISTS_VECB(x)   ((x) & PLD_ICUISTS_VECB_MASK)
 
#define PLD_ICUISTS_ISN_MASK   (0x07c0)
 
#define PLD_ICUISTS_ISN(x)   ((x) & PLD_ICUISTS_ISN_MASK)
 
#define PLD_ICUCR3   __reg16(PLD_BASE + 0x8104)
 
#define PLD_ICUCR4   __reg16(PLD_BASE + 0x8106)
 
#define PLD_ICUCR5   __reg16(PLD_BASE + 0x8108)
 
#define PLD_ICUCR6   __reg16(PLD_BASE + 0x810a)
 
#define PLD_ICUCR11   __reg16(PLD_BASE + 0x8114)
 
#define PLD_ICUCR13   __reg16(PLD_BASE + 0x8118)
 
#define PLD_ICUCR14   __reg16(PLD_BASE + 0x811a)
 
#define PLD_ICUCR15   __reg16(PLD_BASE + 0x811c)
 
#define PLD_ICUCR_IEN   (0x1000)
 
#define PLD_ICUCR_IREQ   (0x0100)
 
#define PLD_ICUCR_ISMOD00   (0x0000) /* Low edge */
 
#define PLD_ICUCR_ISMOD01   (0x0010) /* Low level */
 
#define PLD_ICUCR_ISMOD02   (0x0020) /* High edge */
 
#define PLD_ICUCR_ISMOD03   (0x0030) /* High level */
 
#define PLD_ICUCR_ILEVEL0   (0x0000)
 
#define PLD_ICUCR_ILEVEL1   (0x0001)
 
#define PLD_ICUCR_ILEVEL2   (0x0002)
 
#define PLD_ICUCR_ILEVEL3   (0x0003)
 
#define PLD_ICUCR_ILEVEL4   (0x0004)
 
#define PLD_ICUCR_ILEVEL5   (0x0005)
 
#define PLD_ICUCR_ILEVEL6   (0x0006)
 
#define PLD_ICUCR_ILEVEL7   (0x0007)
 
#define PLD_CPCR   __reg16(PLD_BASE + 0x14000)
 
#define PLD_CPCR_CDP   0x0001
 
#define PLD_IOLEDCR   __reg16(PLD_BASE + 0x14002)
 
#define PLD_IOLED_1_ON   0x001
 
#define PLD_IOLED_1_OFF   0x000
 
#define PLD_IOLED_2_ON   0x002
 
#define PLD_IOLED_2_OFF   0x000
 
#define PLD_IOSWSTS   __reg16(PLD_BASE + 0x14004)
 
#define PLD_IOSWSTS_IOSW2   0x0200
 
#define PLD_IOSWSTS_IOSW1   0x0100
 
#define PLD_IOSWSTS_IOWP0   0x0001
 
#define PLD_CRC7DATA   __reg16(PLD_BASE + 0x18000)
 
#define PLD_CRC7INDATA   __reg16(PLD_BASE + 0x18002)
 
#define PLD_CRC16DATA   __reg16(PLD_BASE + 0x18004)
 
#define PLD_CRC16INDATA   __reg16(PLD_BASE + 0x18006)
 
#define PLD_CRC16ADATA   __reg16(PLD_BASE + 0x18008)
 
#define PLD_CRC16AINDATA   __reg16(PLD_BASE + 0x1800a)
 
#define PLD_RTCCR   __reg16(PLD_BASE + 0x1c000)
 
#define PLD_RTCBAUR   __reg16(PLD_BASE + 0x1c002)
 
#define PLD_RTCWRDATA   __reg16(PLD_BASE + 0x1c004)
 
#define PLD_RTCRDDATA   __reg16(PLD_BASE + 0x1c006)
 
#define PLD_RTCRSTODT   __reg16(PLD_BASE + 0x1c008)
 
#define PLD_SCCR   __reg16(PLD_BASE + 0x38000)
 
#define PLD_SCMOD   __reg16(PLD_BASE + 0x38004)
 
#define PLD_SCSTS   __reg16(PLD_BASE + 0x38006)
 
#define PLD_SCINTCR   __reg16(PLD_BASE + 0x38008)
 
#define PLD_SCBAUR   __reg16(PLD_BASE + 0x3800a)
 
#define PLD_SCTXB   __reg16(PLD_BASE + 0x3800c)
 
#define PLD_SCRXB   __reg16(PLD_BASE + 0x3800e)
 

Macro Definition Documentation

#define __reg16   (volatile unsigned short *)

Definition at line 30 of file m32104ut_pld.h.

#define __reg32   (volatile unsigned int *)

Definition at line 31 of file m32104ut_pld.h.

#define __reg8   (volatile unsigned char *)

Definition at line 29 of file m32104ut_pld.h.

#define PLD_BASE   (PLD_PLAT_BASE /* + NONCACHE_OFFSET */)

Definition at line 28 of file m32104ut_pld.h.

#define PLD_CFBUFCR   __reg16(PLD_BASE + 0x0006)

Definition at line 43 of file m32104ut_pld.h.

#define PLD_CFIMASK   __reg16(PLD_BASE + 0x0004)

Definition at line 42 of file m32104ut_pld.h.

#define PLD_CFRSTCR   __reg16(PLD_BASE + 0x0000)

Definition at line 40 of file m32104ut_pld.h.

#define PLD_CFSTS   __reg16(PLD_BASE + 0x0002)

Definition at line 41 of file m32104ut_pld.h.

#define PLD_CPCR   __reg16(PLD_BASE + 0x14000)

Definition at line 112 of file m32104ut_pld.h.

#define PLD_CPCR_CDP   0x0001

Definition at line 113 of file m32104ut_pld.h.

#define PLD_CRC16ADATA   __reg16(PLD_BASE + 0x18008)

Definition at line 142 of file m32104ut_pld.h.

#define PLD_CRC16AINDATA   __reg16(PLD_BASE + 0x1800a)

Definition at line 143 of file m32104ut_pld.h.

#define PLD_CRC16DATA   __reg16(PLD_BASE + 0x18004)

Definition at line 140 of file m32104ut_pld.h.

#define PLD_CRC16INDATA   __reg16(PLD_BASE + 0x18006)

Definition at line 141 of file m32104ut_pld.h.

#define PLD_CRC7DATA   __reg16(PLD_BASE + 0x18000)

Definition at line 138 of file m32104ut_pld.h.

#define PLD_CRC7INDATA   __reg16(PLD_BASE + 0x18002)

Definition at line 139 of file m32104ut_pld.h.

#define PLD_ICUCR11   __reg16(PLD_BASE + 0x8114)

Definition at line 92 of file m32104ut_pld.h.

#define PLD_ICUCR13   __reg16(PLD_BASE + 0x8118)

Definition at line 93 of file m32104ut_pld.h.

#define PLD_ICUCR14   __reg16(PLD_BASE + 0x811a)

Definition at line 94 of file m32104ut_pld.h.

#define PLD_ICUCR15   __reg16(PLD_BASE + 0x811c)

Definition at line 95 of file m32104ut_pld.h.

#define PLD_ICUCR3   __reg16(PLD_BASE + 0x8104)

Definition at line 88 of file m32104ut_pld.h.

#define PLD_ICUCR4   __reg16(PLD_BASE + 0x8106)

Definition at line 89 of file m32104ut_pld.h.

#define PLD_ICUCR5   __reg16(PLD_BASE + 0x8108)

Definition at line 90 of file m32104ut_pld.h.

#define PLD_ICUCR6   __reg16(PLD_BASE + 0x810a)

Definition at line 91 of file m32104ut_pld.h.

#define PLD_ICUCR_IEN   (0x1000)

Definition at line 96 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL0   (0x0000)

Definition at line 102 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL1   (0x0001)

Definition at line 103 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL2   (0x0002)

Definition at line 104 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL3   (0x0003)

Definition at line 105 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL4   (0x0004)

Definition at line 106 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL5   (0x0005)

Definition at line 107 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL6   (0x0006)

Definition at line 108 of file m32104ut_pld.h.

#define PLD_ICUCR_ILEVEL7   (0x0007)

Definition at line 109 of file m32104ut_pld.h.

#define PLD_ICUCR_IREQ   (0x0100)

Definition at line 97 of file m32104ut_pld.h.

#define PLD_ICUCR_ISMOD00   (0x0000) /* Low edge */

Definition at line 98 of file m32104ut_pld.h.

#define PLD_ICUCR_ISMOD01   (0x0010) /* Low level */

Definition at line 99 of file m32104ut_pld.h.

#define PLD_ICUCR_ISMOD02   (0x0020) /* High edge */

Definition at line 100 of file m32104ut_pld.h.

#define PLD_ICUCR_ISMOD03   (0x0030) /* High level */

Definition at line 101 of file m32104ut_pld.h.

#define PLD_ICUISTS   __reg16(PLD_BASE + 0x8002)

Definition at line 83 of file m32104ut_pld.h.

#define PLD_ICUISTS_ISN (   x)    ((x) & PLD_ICUISTS_ISN_MASK)

Definition at line 87 of file m32104ut_pld.h.

#define PLD_ICUISTS_ISN_MASK   (0x07c0)

Definition at line 86 of file m32104ut_pld.h.

#define PLD_ICUISTS_VECB (   x)    ((x) & PLD_ICUISTS_VECB_MASK)

Definition at line 85 of file m32104ut_pld.h.

#define PLD_ICUISTS_VECB_MASK   (0xf000)

Definition at line 84 of file m32104ut_pld.h.

#define PLD_IOLED_1_OFF   0x000

Definition at line 122 of file m32104ut_pld.h.

#define PLD_IOLED_1_ON   0x001

Definition at line 121 of file m32104ut_pld.h.

#define PLD_IOLED_2_OFF   0x000

Definition at line 124 of file m32104ut_pld.h.

#define PLD_IOLED_2_ON   0x002

Definition at line 123 of file m32104ut_pld.h.

#define PLD_IOLEDCR   __reg16(PLD_BASE + 0x14002)

Definition at line 120 of file m32104ut_pld.h.

#define PLD_IOSWSTS   __reg16(PLD_BASE + 0x14004)

Definition at line 132 of file m32104ut_pld.h.

#define PLD_IOSWSTS_IOSW1   0x0100

Definition at line 134 of file m32104ut_pld.h.

#define PLD_IOSWSTS_IOSW2   0x0200

Definition at line 133 of file m32104ut_pld.h.

#define PLD_IOSWSTS_IOWP0   0x0001

Definition at line 135 of file m32104ut_pld.h.

#define PLD_IRQ_CFC_EJECT   (M32104UT_PLD_IRQ_BASE + 5) /* CF Eject */

Definition at line 76 of file m32104ut_pld.h.

#define PLD_IRQ_CFC_INSERT   (M32104UT_PLD_IRQ_BASE + 4) /* CF Insert */

Definition at line 75 of file m32104ut_pld.h.

#define PLD_IRQ_CFIREQ   (M32104UT_PLD_IRQ_BASE + 3) /* CF IREQ */

Definition at line 74 of file m32104ut_pld.h.

#define PLD_IRQ_EXINT   (M32104UT_PLD_IRQ_BASE + 6) /* EXINT */

Definition at line 77 of file m32104ut_pld.h.

#define PLD_IRQ_INT0   (M32104UT_PLD_IRQ_BASE + 0) /* None */

Definition at line 73 of file m32104ut_pld.h.

#define PLD_IRQ_MMCCARD   (M32104UT_PLD_IRQ_BASE + 11) /* MMC Insert/Eject */

Definition at line 78 of file m32104ut_pld.h.

#define PLD_IRQ_SC_ERROR   (M32104UT_PLD_IRQ_BASE + 13) /* SC error */

Definition at line 79 of file m32104ut_pld.h.

#define PLD_IRQ_SC_RCV   (M32104UT_PLD_IRQ_BASE + 14) /* SC receive */

Definition at line 80 of file m32104ut_pld.h.

#define PLD_IRQ_SC_SND   (M32104UT_PLD_IRQ_BASE + 15) /* SC send */

Definition at line 81 of file m32104ut_pld.h.

#define PLD_MMCBAUR   __reg16(PLD_BASE + 0x400a)

Definition at line 49 of file m32104ut_pld.h.

#define PLD_MMCCDTBCUT   __reg16(PLD_BASE + 0x400e)

Definition at line 51 of file m32104ut_pld.h.

#define PLD_MMCCMDBCUT   __reg16(PLD_BASE + 0x400c)

Definition at line 50 of file m32104ut_pld.h.

#define PLD_MMCCMDDATA   __reg16(PLD_BASE + 0x7000)

Definition at line 56 of file m32104ut_pld.h.

#define PLD_MMCCR   __reg16(PLD_BASE + 0x4000)

Definition at line 46 of file m32104ut_pld.h.

#define PLD_MMCDET   __reg16(PLD_BASE + 0x4010)

Definition at line 52 of file m32104ut_pld.h.

#define PLD_MMCMOD   __reg16(PLD_BASE + 0x4002)

Definition at line 47 of file m32104ut_pld.h.

#define PLD_MMCRDATA   __reg16(PLD_BASE + 0x6000)

Definition at line 55 of file m32104ut_pld.h.

#define PLD_MMCRSPDATA   __reg16(PLD_BASE + 0x7006)

Definition at line 57 of file m32104ut_pld.h.

#define PLD_MMCSTS   __reg16(PLD_BASE + 0x4006)

Definition at line 48 of file m32104ut_pld.h.

#define PLD_MMCWDATA   __reg16(PLD_BASE + 0x5000)

Definition at line 54 of file m32104ut_pld.h.

#define PLD_MMCWP   __reg16(PLD_BASE + 0x4012)

Definition at line 53 of file m32104ut_pld.h.

#define PLD_RTCBAUR   __reg16(PLD_BASE + 0x1c002)

Definition at line 147 of file m32104ut_pld.h.

#define PLD_RTCCR   __reg16(PLD_BASE + 0x1c000)

Definition at line 146 of file m32104ut_pld.h.

#define PLD_RTCRDDATA   __reg16(PLD_BASE + 0x1c006)

Definition at line 149 of file m32104ut_pld.h.

#define PLD_RTCRSTODT   __reg16(PLD_BASE + 0x1c008)

Definition at line 150 of file m32104ut_pld.h.

#define PLD_RTCWRDATA   __reg16(PLD_BASE + 0x1c004)

Definition at line 148 of file m32104ut_pld.h.

#define PLD_SCBAUR   __reg16(PLD_BASE + 0x3800a)

Definition at line 157 of file m32104ut_pld.h.

#define PLD_SCCR   __reg16(PLD_BASE + 0x38000)

Definition at line 153 of file m32104ut_pld.h.

#define PLD_SCINTCR   __reg16(PLD_BASE + 0x38008)

Definition at line 156 of file m32104ut_pld.h.

#define PLD_SCMOD   __reg16(PLD_BASE + 0x38004)

Definition at line 154 of file m32104ut_pld.h.

#define PLD_SCRXB   __reg16(PLD_BASE + 0x3800e)

Definition at line 159 of file m32104ut_pld.h.

#define PLD_SCSTS   __reg16(PLD_BASE + 0x38006)

Definition at line 155 of file m32104ut_pld.h.

#define PLD_SCTXB   __reg16(PLD_BASE + 0x3800c)

Definition at line 158 of file m32104ut_pld.h.