0001
0002
0003
0004
0005
0006
0007 #ifndef __ASM_RC32434_RB_H
0008 #define __ASM_RC32434_RB_H
0009
0010 #define REGBASE 0x18000000
0011 #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE))
0012 #define UART0BASE 0x58000
0013 #define RST (1 << 15)
0014 #define DEV0BASE 0x010000
0015 #define DEV0MASK 0x010004
0016 #define DEV0C 0x010008
0017 #define DEV0T 0x01000C
0018 #define DEV1BASE 0x010010
0019 #define DEV1MASK 0x010014
0020 #define DEV1C 0x010018
0021 #define DEV1TC 0x01001C
0022 #define DEV2BASE 0x010020
0023 #define DEV2MASK 0x010024
0024 #define DEV2C 0x010028
0025 #define DEV2TC 0x01002C
0026 #define DEV3BASE 0x010030
0027 #define DEV3MASK 0x010034
0028 #define DEV3C 0x010038
0029 #define DEV3TC 0x01003C
0030 #define BTCS 0x010040
0031 #define BTCOMPARE 0x010044
0032 #define LO_WPX (1 << 0)
0033 #define LO_ALE (1 << 1)
0034 #define LO_CLE (1 << 2)
0035 #define LO_CEX (1 << 3)
0036 #define LO_FOFF (1 << 5)
0037 #define LO_SPICS (1 << 6)
0038 #define LO_ULED (1 << 7)
0039
0040 #define BIT_TO_MASK(x) (1 << x)
0041
0042 struct dev_reg {
0043 u32 base;
0044 u32 mask;
0045 u32 ctl;
0046 u32 timing;
0047 };
0048
0049 struct korina_device {
0050 char *name;
0051 unsigned char mac[6];
0052 struct net_device *dev;
0053 };
0054
0055 struct mpmc_device {
0056 unsigned char state;
0057 spinlock_t lock;
0058 void __iomem *base;
0059 };
0060
0061 extern void set_latch_u5(unsigned char or_mask, unsigned char nand_mask);
0062 extern unsigned char get_latch_u5(void);
0063
0064 #endif