diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-m32r/opsput/opsput_lan.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-m32r/opsput/opsput_lan.h')
-rw-r--r-- | include/asm-m32r/opsput/opsput_lan.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/asm-m32r/opsput/opsput_lan.h b/include/asm-m32r/opsput/opsput_lan.h new file mode 100644 index 000000000000..7a2a839eedab --- /dev/null +++ b/include/asm-m32r/opsput/opsput_lan.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /* | ||
2 | * include/asm/opsput_lan.h | ||
3 | * | ||
4 | * OPSPUT-LAN board | ||
5 | * | ||
6 | * Copyright (c) 2002-2004 Takeo Takahashi, Mamoru Sakugawa | ||
7 | * | ||
8 | * This file is subject to the terms and conditions of the GNU General | ||
9 | * Public License. See the file "COPYING" in the main directory of | ||
10 | * this archive for more details. | ||
11 | * | ||
12 | * $Id: opsput_lan.h,v 1.1 2004/07/27 06:54:20 sakugawa Exp $ | ||
13 | */ | ||
14 | |||
15 | #ifndef _OPSPUT_OPSPUT_LAN_H | ||
16 | #define _OPSPUT_OPSPUT_LAN_H | ||
17 | |||
18 | #include <linux/config.h> | ||
19 | |||
20 | #ifndef __ASSEMBLY__ | ||
21 | /* | ||
22 | * C functions use non-cache address. | ||
23 | */ | ||
24 | #define OPSPUT_LAN_BASE (0x10000000 /* + NONCACHE_OFFSET */) | ||
25 | #else | ||
26 | #define OPSPUT_LAN_BASE (0x10000000 + NONCACHE_OFFSET) | ||
27 | #endif /* __ASSEMBLY__ */ | ||
28 | |||
29 | /* ICU | ||
30 | * ICUISTS: status register | ||
31 | * ICUIREQ0: request register | ||
32 | * ICUIREQ1: request register | ||
33 | * ICUCR3: control register for CFIREQ# interrupt | ||
34 | * ICUCR4: control register for CFC Card insert interrupt | ||
35 | * ICUCR5: control register for CFC Card eject interrupt | ||
36 | * ICUCR6: control register for external interrupt | ||
37 | * ICUCR11: control register for MMC Card insert/eject interrupt | ||
38 | * ICUCR13: control register for SC error interrupt | ||
39 | * ICUCR14: control register for SC receive interrupt | ||
40 | * ICUCR15: control register for SC send interrupt | ||
41 | * ICUCR16: control register for SIO0 receive interrupt | ||
42 | * ICUCR17: control register for SIO0 send interrupt | ||
43 | */ | ||
44 | #define OPSPUT_LAN_IRQ_LAN (OPSPUT_LAN_PLD_IRQ_BASE + 1) /* LAN */ | ||
45 | #define OPSPUT_LAN_IRQ_I2C (OPSPUT_LAN_PLD_IRQ_BASE + 3) /* I2C */ | ||
46 | |||
47 | #define OPSPUT_LAN_ICUISTS __reg16(OPSPUT_LAN_BASE + 0xc0002) | ||
48 | #define OPSPUT_LAN_ICUISTS_VECB_MASK (0xf000) | ||
49 | #define OPSPUT_LAN_VECB(x) ((x) & OPSPUT_LAN_ICUISTS_VECB_MASK) | ||
50 | #define OPSPUT_LAN_ICUISTS_ISN_MASK (0x07c0) | ||
51 | #define OPSPUT_LAN_ICUISTS_ISN(x) ((x) & OPSPUT_LAN_ICUISTS_ISN_MASK) | ||
52 | #define OPSPUT_LAN_ICUIREQ0 __reg16(OPSPUT_LAN_BASE + 0xc0004) | ||
53 | #define OPSPUT_LAN_ICUCR1 __reg16(OPSPUT_LAN_BASE + 0xc0010) | ||
54 | #define OPSPUT_LAN_ICUCR3 __reg16(OPSPUT_LAN_BASE + 0xc0014) | ||
55 | |||
56 | #endif /* _OPSPUT_OPSPUT_LAN_H */ | ||