blob: f53e10187c03f377bf3504b7fb44b820453c5a3c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Uwe Zeisbergerf30c2262006-10-03 23:01:26 +02002 * include/asm-m32r/opsput/opsput_lan.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19#ifndef __ASSEMBLY__
20/*
21 * C functions use non-cache address.
22 */
23#define OPSPUT_LAN_BASE (0x10000000 /* + NONCACHE_OFFSET */)
24#else
25#define OPSPUT_LAN_BASE (0x10000000 + NONCACHE_OFFSET)
26#endif /* __ASSEMBLY__ */
27
28/* ICU
29 * ICUISTS: status register
30 * ICUIREQ0: request register
31 * ICUIREQ1: request register
32 * ICUCR3: control register for CFIREQ# interrupt
33 * ICUCR4: control register for CFC Card insert interrupt
34 * ICUCR5: control register for CFC Card eject interrupt
35 * ICUCR6: control register for external interrupt
36 * ICUCR11: control register for MMC Card insert/eject interrupt
37 * ICUCR13: control register for SC error interrupt
38 * ICUCR14: control register for SC receive interrupt
39 * ICUCR15: control register for SC send interrupt
40 * ICUCR16: control register for SIO0 receive interrupt
41 * ICUCR17: control register for SIO0 send interrupt
42 */
43#define OPSPUT_LAN_IRQ_LAN (OPSPUT_LAN_PLD_IRQ_BASE + 1) /* LAN */
44#define OPSPUT_LAN_IRQ_I2C (OPSPUT_LAN_PLD_IRQ_BASE + 3) /* I2C */
45
46#define OPSPUT_LAN_ICUISTS __reg16(OPSPUT_LAN_BASE + 0xc0002)
47#define OPSPUT_LAN_ICUISTS_VECB_MASK (0xf000)
48#define OPSPUT_LAN_VECB(x) ((x) & OPSPUT_LAN_ICUISTS_VECB_MASK)
49#define OPSPUT_LAN_ICUISTS_ISN_MASK (0x07c0)
50#define OPSPUT_LAN_ICUISTS_ISN(x) ((x) & OPSPUT_LAN_ICUISTS_ISN_MASK)
51#define OPSPUT_LAN_ICUIREQ0 __reg16(OPSPUT_LAN_BASE + 0xc0004)
52#define OPSPUT_LAN_ICUCR1 __reg16(OPSPUT_LAN_BASE + 0xc0010)
53#define OPSPUT_LAN_ICUCR3 __reg16(OPSPUT_LAN_BASE + 0xc0014)
54
55#endif /* _OPSPUT_OPSPUT_LAN_H */