1 |
1275 |
phoenix |
/*
|
2 |
|
|
* include/asm-sh/io_bigsur.h
|
3 |
|
|
*
|
4 |
|
|
* By Dustin McIntire (dustin@sensoria.com) (c)2001
|
5 |
|
|
* Derived from io_hd64465.h, which bore the message:
|
6 |
|
|
* By Greg Banks <gbanks@pocketpenguins.com>
|
7 |
|
|
* (c) 2000 PocketPenguins Inc.
|
8 |
|
|
* and from io_hd64461.h, which bore the message:
|
9 |
|
|
* Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
|
10 |
|
|
*
|
11 |
|
|
* May be copied or modified under the terms of the GNU General Public
|
12 |
|
|
* License. See linux/COPYING for more information.
|
13 |
|
|
*
|
14 |
|
|
* IO functions for a Hitachi Big Sur Evaluation Board.
|
15 |
|
|
*/
|
16 |
|
|
|
17 |
|
|
#ifndef _ASM_SH_IO_BIGSUR_H
|
18 |
|
|
#define _ASM_SH_IO_BIGSUR_H
|
19 |
|
|
|
20 |
|
|
#include <linux/types.h>
|
21 |
|
|
#include <asm/io_generic.h>
|
22 |
|
|
|
23 |
|
|
extern unsigned char bigsur_inb(unsigned long port);
|
24 |
|
|
extern unsigned short bigsur_inw(unsigned long port);
|
25 |
|
|
extern unsigned int bigsur_inl(unsigned long port);
|
26 |
|
|
|
27 |
|
|
extern void bigsur_outb(unsigned char value, unsigned long port);
|
28 |
|
|
extern void bigsur_outw(unsigned short value, unsigned long port);
|
29 |
|
|
extern void bigsur_outl(unsigned int value, unsigned long port);
|
30 |
|
|
|
31 |
|
|
extern unsigned char bigsur_inb_p(unsigned long port);
|
32 |
|
|
extern void bigsur_outb_p(unsigned char value, unsigned long port);
|
33 |
|
|
|
34 |
|
|
extern void bigsur_insb(unsigned long port, void *addr, unsigned long count);
|
35 |
|
|
extern void bigsur_insw(unsigned long port, void *addr, unsigned long count);
|
36 |
|
|
extern void bigsur_insl(unsigned long port, void *addr, unsigned long count);
|
37 |
|
|
extern void bigsur_outsb(unsigned long port, const void *addr, unsigned long count);
|
38 |
|
|
extern void bigsur_outsw(unsigned long port, const void *addr, unsigned long count);
|
39 |
|
|
extern void bigsur_outsl(unsigned long port, const void *addr, unsigned long count);
|
40 |
|
|
extern unsigned long bigsur_isa_port2addr(unsigned long offset);
|
41 |
|
|
extern int bigsur_irq_demux(int irq);
|
42 |
|
|
extern void bigsur_init_pci(void);
|
43 |
|
|
/* Provision for generic secondary demux step -- used by PCMCIA code */
|
44 |
|
|
extern void bigsur_register_irq_demux(int irq,
|
45 |
|
|
int (*demux)(int irq, void *dev), void *dev);
|
46 |
|
|
extern void bigsur_unregister_irq_demux(int irq);
|
47 |
|
|
/* Set this variable to 1 to see port traffic */
|
48 |
|
|
extern int bigsur_io_debug;
|
49 |
|
|
/* Map a range of ports to a range of kernel virtual memory. */
|
50 |
|
|
extern void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift);
|
51 |
|
|
extern void bigsur_port_unmap(u32 baseport, u32 nports);
|
52 |
|
|
|
53 |
|
|
#endif /* _ASM_SH_IO_BIGSUR_H */
|
54 |
|
|
|
55 |
|
|
#ifdef __WANT_IO_DEF
|
56 |
|
|
|
57 |
|
|
# define __inb bigsur_inb
|
58 |
|
|
# define __inw bigsur_inw
|
59 |
|
|
# define __inl bigsur_inl
|
60 |
|
|
# define __outb bigsur_outb
|
61 |
|
|
# define __outw bigsur_outw
|
62 |
|
|
# define __outl bigsur_outl
|
63 |
|
|
|
64 |
|
|
# define __inb_p bigsur_inb_p
|
65 |
|
|
# define __inw_p bigsur_inw
|
66 |
|
|
# define __inl_p bigsur_inl
|
67 |
|
|
# define __outb_p bigsur_outb_p
|
68 |
|
|
# define __outw_p bigsur_outw
|
69 |
|
|
# define __outl_p bigsur_outl
|
70 |
|
|
|
71 |
|
|
# define __insb bigsur_insb
|
72 |
|
|
# define __insw bigsur_insw
|
73 |
|
|
# define __insl bigsur_insl
|
74 |
|
|
# define __outsb bigsur_outsb
|
75 |
|
|
# define __outsw bigsur_outsw
|
76 |
|
|
# define __outsl bigsur_outsl
|
77 |
|
|
|
78 |
|
|
# define __readb generic_readb
|
79 |
|
|
# define __readw generic_readw
|
80 |
|
|
# define __readl generic_readl
|
81 |
|
|
# define __writeb generic_writeb
|
82 |
|
|
# define __writew generic_writew
|
83 |
|
|
# define __writel generic_writel
|
84 |
|
|
|
85 |
|
|
# define __isa_port2addr bigsur_isa_port2addr
|
86 |
|
|
# define __ioremap generic_ioremap
|
87 |
|
|
# define __iounmap generic_iounmap
|
88 |
|
|
|
89 |
|
|
#endif
|