1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_SH_IODATA_LANDISK_H
3#define __ASM_SH_IODATA_LANDISK_H
4
5/*
6 * arch/sh/include/mach-landisk/mach/iodata_landisk.h
7 *
8 * Copyright (C) 2000  Atom Create Engineering Co., Ltd.
9 *
10 * IO-DATA LANDISK support
11 */
12#include <linux/sh_intc.h>
13
14/* Box specific addresses.  */
15
16#define PA_USB		0xa4000000	/* USB Controller M66590 */
17
18#define PA_ATARST	0xb0000000	/* ATA/FATA Access Control Register */
19#define PA_LED		0xb0000001	/* LED Control Register */
20#define PA_STATUS	0xb0000002	/* Switch Status Register */
21#define PA_SHUTDOWN	0xb0000003	/* Shutdown Control Register */
22#define PA_PCIPME	0xb0000004	/* PCI PME Status Register */
23#define PA_IMASK	0xb0000005	/* Interrupt Mask Register */
24/* 2003.10.31 I-O DATA NSD NWG	add.	for shutdown port clear */
25#define PA_PWRINT_CLR	0xb0000006	/* Shutdown Interrupt clear Register */
26
27#define PA_PIDE_OFFSET	0x40		/* CF IDE Offset */
28#define PA_SIDE_OFFSET	0x40		/* HDD IDE Offset */
29
30#define IRQ_PCIINTA	evt2irq(0x2a0)	/* PCI INTA IRQ */
31#define IRQ_PCIINTB	evt2irq(0x2c0)	/* PCI INTB IRQ */
32#define IRQ_PCIINTC	evt2irq(0x2e0)	/* PCI INTC IRQ */
33#define IRQ_PCIINTD	evt2irq(0x300)	/* PCI INTD IRQ */
34#define IRQ_ATA		evt2irq(0x320)	/* ATA IRQ */
35#define IRQ_FATA	evt2irq(0x340)	/* FATA IRQ */
36#define IRQ_POWER	evt2irq(0x360)	/* Power Switch IRQ */
37#define IRQ_BUTTON	evt2irq(0x380)	/* USL-5P Button IRQ */
38#define IRQ_FAULT	evt2irq(0x3a0)	/* USL-5P Fault  IRQ */
39
40void init_landisk_IRQ(void);
41
42#define __IO_PREFIX landisk
43#include <asm/io_generic.h>
44
45#endif  /* __ASM_SH_IODATA_LANDISK_H */
46
47