1 |
1275 |
phoenix |
/*
|
2 |
|
|
* include/asm-sh/io_shmse.h
|
3 |
|
|
*
|
4 |
|
|
* Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp>
|
5 |
|
|
* IO functions for SH-Mobile(SH7300) SolutionEngine
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
#ifndef _ASM_SH_IO_SHMSE_H
|
9 |
|
|
#define _ASM_SH_IO_SHMSE_H
|
10 |
|
|
|
11 |
|
|
#include <asm/io_generic.h>
|
12 |
|
|
|
13 |
|
|
extern unsigned char shmse_inb(unsigned long port);
|
14 |
|
|
extern unsigned short shmse_inw(unsigned long port);
|
15 |
|
|
extern unsigned int shmse_inl(unsigned long port);
|
16 |
|
|
|
17 |
|
|
extern void shmse_outb(unsigned char value, unsigned long port);
|
18 |
|
|
extern void shmse_outw(unsigned short value, unsigned long port);
|
19 |
|
|
extern void shmse_outl(unsigned int value, unsigned long port);
|
20 |
|
|
|
21 |
|
|
extern unsigned char shmse_inb_p(unsigned long port);
|
22 |
|
|
extern void shmse_outb_p(unsigned char value, unsigned long port);
|
23 |
|
|
|
24 |
|
|
extern void shmse_insb(unsigned long port, void *addr, unsigned long count);
|
25 |
|
|
extern void shmse_insw(unsigned long port, void *addr, unsigned long count);
|
26 |
|
|
extern void shmse_insl(unsigned long port, void *addr, unsigned long count);
|
27 |
|
|
extern void shmse_outsb(unsigned long port, const void *addr, unsigned long count);
|
28 |
|
|
extern void shmse_outsw(unsigned long port, const void *addr, unsigned long count);
|
29 |
|
|
extern void shmse_outsl(unsigned long port, const void *addr, unsigned long count);
|
30 |
|
|
|
31 |
|
|
extern unsigned char shmse_readb(unsigned long addr);
|
32 |
|
|
extern unsigned short shmse_readw(unsigned long addr);
|
33 |
|
|
extern unsigned int shmse_readl(unsigned long addr);
|
34 |
|
|
extern void shmse_writeb(unsigned char b, unsigned long addr);
|
35 |
|
|
extern void shmse_writew(unsigned short b, unsigned long addr);
|
36 |
|
|
extern void shmse_writel(unsigned int b, unsigned long addr);
|
37 |
|
|
|
38 |
|
|
#ifdef __WANT_IO_DEF
|
39 |
|
|
|
40 |
|
|
# define __inb shmse_inb
|
41 |
|
|
# define __inw shmse_inw
|
42 |
|
|
# define __inl shmse_inl
|
43 |
|
|
# define __outb shmse_outb
|
44 |
|
|
# define __outw shmse_outw
|
45 |
|
|
# define __outl shmse_outl
|
46 |
|
|
|
47 |
|
|
# define __inb_p shmse_inb_p
|
48 |
|
|
# define __inw_p shmse_inw
|
49 |
|
|
# define __inl_p shmse_inl
|
50 |
|
|
# define __outb_p shmse_outb_p
|
51 |
|
|
# define __outw_p shmse_outw
|
52 |
|
|
# define __outl_p shmse_outl
|
53 |
|
|
|
54 |
|
|
# define __insb shmse_insb
|
55 |
|
|
# define __insw shmse_insw
|
56 |
|
|
# define __insl shmse_insl
|
57 |
|
|
# define __outsb shmse_outsb
|
58 |
|
|
# define __outsw shmse_outsw
|
59 |
|
|
# define __outsl shmse_outsl
|
60 |
|
|
|
61 |
|
|
# define __readb shmse_readb
|
62 |
|
|
# define __readw shmse_readw
|
63 |
|
|
# define __readl shmse_readl
|
64 |
|
|
# define __writeb shmse_writeb
|
65 |
|
|
# define __writew shmse_writew
|
66 |
|
|
# define __writel shmse_writel
|
67 |
|
|
|
68 |
|
|
# define __ioremap generic_ioremap
|
69 |
|
|
# define __iounmap generic_iounmap
|
70 |
|
|
|
71 |
|
|
# define __isa_port2addr
|
72 |
|
|
|
73 |
|
|
#endif
|
74 |
|
|
|
75 |
|
|
#endif /* _ASM_SH_IO_SHMSE_H */
|