summaryrefslogtreecommitdiff
path: root/release/src/linux/linux/include/asm-sh/io_hd64461.h
blob: 2f5d85a7cacba891863835792c13fa7b825b9087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * include/asm-sh/io_hd64461.h
 *
 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See linux/COPYING for more information.
 *
 * IO functions for an HD64461
 */

#ifndef _ASM_SH_IO_HD64461_H
#define _ASM_SH_IO_HD64461_H

#include <asm/io_generic.h>

extern unsigned char hd64461_inb(unsigned long port);
extern unsigned short hd64461_inw(unsigned long port);
extern unsigned int hd64461_inl(unsigned long port);

extern void hd64461_outb(unsigned char value, unsigned long port);
extern void hd64461_outw(unsigned short value, unsigned long port);
extern void hd64461_outl(unsigned int value, unsigned long port);

extern unsigned char hd64461_inb_p(unsigned long port);
extern void hd64461_outb_p(unsigned char value, unsigned long port);

extern void hd64461_insb(unsigned long port, void *addr, unsigned long count);
extern void hd64461_insw(unsigned long port, void *addr, unsigned long count);
extern void hd64461_insl(unsigned long port, void *addr, unsigned long count);
extern void hd64461_outsb(unsigned long port, const void *addr, unsigned long count);
extern void hd64461_outsw(unsigned long port, const void *addr, unsigned long count);
extern void hd64461_outsl(unsigned long port, const void *addr, unsigned long count);
extern int hd64461_irq_demux(int irq);

#ifdef __WANT_IO_DEF

# define __inb			hd64461_inb
# define __inw			hd64461_inw
# define __inl			hd64461_inl
# define __outb			hd64461_outb
# define __outw			hd64461_outw
# define __outl			hd64461_outl

# define __inb_p		hd64461_inb_p
# define __inw_p		hd64461_inw
# define __inl_p		hd64461_inl
# define __outb_p		hd64461_outb_p
# define __outw_p		hd64461_outw
# define __outl_p		hd64461_outl

# define __insb			hd64461_insb
# define __insw			hd64461_insw
# define __insl			hd64461_insl
# define __outsb		hd64461_outsb
# define __outsw		hd64461_outsw
# define __outsl		hd64461_outsl

# define __readb		generic_readb
# define __readw		generic_readw
# define __readl		generic_readl
# define __writeb		generic_writeb
# define __writew		generic_writew
# define __writel		generic_writel

# define __isa_port2addr	generic_isa_port2addr
# define __ioremap		generic_ioremap
# define __ioremap_nocache	generic_ioremap_nocache
# define __iounmap		generic_iounmap

#endif

#endif /* _ASM_SH_IO_HD64461_H */