File: io_cat68701.h

package info (click to toggle)
kernel-source-2.4.14 2.4.14-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 139,160 kB
  • ctags: 428,423
  • sloc: ansic: 2,435,554; asm: 141,119; makefile: 8,258; sh: 3,099; perl: 2,561; yacc: 1,177; cpp: 755; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (89 lines) | stat: -rw-r--r-- 3,108 bytes parent folder | download | duplicates (11)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * include/asm-sh/io_cat68701.h
 *
 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
 *           2001 Yutarou Ebihar (ebihara@si-linux.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 AONE Corp. CAT-68701 SH7708 Borad
 */

#ifndef _ASM_SH_IO_CAT68701_H
#define _ASM_SH_IO_CAT68701_H

#include <asm/io_generic.h>

extern unsigned char cat68701_inb(unsigned long port);
extern unsigned short cat68701_inw(unsigned long port);
extern unsigned int cat68701_inl(unsigned long port);

extern void cat68701_outb(unsigned char value, unsigned long port);
extern void cat68701_outw(unsigned short value, unsigned long port);
extern void cat68701_outl(unsigned int value, unsigned long port);

extern unsigned char cat68701_inb_p(unsigned long port);
extern void cat68701_outb_p(unsigned char value, unsigned long port);

extern void cat68701_insb(unsigned long port, void *addr, unsigned long count);
extern void cat68701_insw(unsigned long port, void *addr, unsigned long count);
extern void cat68701_insl(unsigned long port, void *addr, unsigned long count);
extern void cat68701_outsb(unsigned long port, const void *addr, unsigned long count);
extern void cat68701_outsw(unsigned long port, const void *addr, unsigned long count);
extern void cat68701_outsl(unsigned long port, const void *addr, unsigned long count);

extern unsigned char cat68701_readb(unsigned long addr);
extern unsigned short cat68701_readw(unsigned long addr);
extern unsigned int cat68701_readl(unsigned long addr);
extern void cat68701_writeb(unsigned char b, unsigned long addr);
extern void cat68701_writew(unsigned short b, unsigned long addr);
extern void cat68701_writel(unsigned int b, unsigned long addr);

extern void * cat68701_ioremap(unsigned long offset, unsigned long size);
extern void cat68701_iounmap(void *addr);

extern unsigned long cat68701_isa_port2addr(unsigned long offset);
extern int cat68701_irq_demux(int irq);

extern void setup_cat68701(void);
extern void init_cat68701_IRQ(void);
extern void heartbeat_cat68701(void);

#ifdef __WANT_IO_DEF

# define __inb			cat68701_inb
# define __inw			cat68701_inw
# define __inl			cat68701_inl
# define __outb			cat68701_outb
# define __outw			cat68701_outw
# define __outl			cat68701_outl

# define __inb_p		cat68701_inb_p
# define __inw_p		cat68701_inw
# define __inl_p		cat68701_inl
# define __outb_p		cat68701_outb_p
# define __outw_p		cat68701_outw
# define __outl_p		cat68701_outl

# define __insb			cat68701_insb
# define __insw			cat68701_insw
# define __insl			cat68701_insl
# define __outsb		cat68701_outsb
# define __outsw		cat68701_outsw
# define __outsl		cat68701_outsl

# define __readb		cat68701_readb
# define __readw		cat68701_readw
# define __readl		cat68701_readl
# define __writeb		cat68701_writeb
# define __writew		cat68701_writew
# define __writel		cat68701_writel

# define __isa_port2addr	cat68701_isa_port2addr
# define __ioremap		generic_ioremap
# define __iounmap		generic_iounmap

#endif

#endif /* _ASM_SH_IO_CAT68701_H */