OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-sh/] [io_hs7729pci.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * include/asm-sh/io_hs7729pci.h
3
 *
4
 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
5
 *
6
 * May be copied or modified under the terms of the GNU General Public
7
 * License.  See linux/COPYING for more information.
8
 *
9
 * IO functions for an Hitachi Semiconductor and Devices HS7729PCI
10
 */
11
 
12
#ifndef _ASM_SH_IO_HS7729PCI_H
13
#define _ASM_SH_IO_HS7729PCI_H
14
 
15
#include <asm/io_generic.h>
16
 
17
extern unsigned char hs7729pci_inb(unsigned long port);
18
extern unsigned short hs7729pci_inw(unsigned long port);
19
extern unsigned int hs7729pci_inl(unsigned long port);
20
 
21
extern void hs7729pci_outb(unsigned char value, unsigned long port);
22
extern void hs7729pci_outw(unsigned short value, unsigned long port);
23
extern void hs7729pci_outl(unsigned int value, unsigned long port);
24
 
25
extern unsigned char hs7729pci_inb_p(unsigned long port);
26
extern void hs7729pci_outb_p(unsigned char value, unsigned long port);
27
 
28
extern void hs7729pci_insb(unsigned long port, void *addr, unsigned long count);
29
extern void hs7729pci_insw(unsigned long port, void *addr, unsigned long count);
30
extern void hs7729pci_insl(unsigned long port, void *addr, unsigned long count);
31
extern void hs7729pci_outsb(unsigned long port, const void *addr, unsigned long count);
32
extern void hs7729pci_outsw(unsigned long port, const void *addr, unsigned long count);
33
extern void hs7729pci_outsl(unsigned long port, const void *addr, unsigned long count);
34
 
35
extern unsigned char hs7729pci_readb(unsigned long addr);
36
extern unsigned short hs7729pci_readw(unsigned long addr);
37
extern unsigned long hs7729pci_readl(unsigned long addr);
38
extern void hs7729pci_writeb(unsigned char b, unsigned long addr);
39
extern void hs7729pci_writew(unsigned short b, unsigned long addr);
40
extern void hs7729pci_writel(unsigned int b, unsigned long addr);
41
 
42
extern unsigned long hs7729pci_isa_port2addr(unsigned long offset);
43
 
44
extern void *hs7729pci_ioremap(unsigned long, unsigned long);
45
extern void hs7729pci_iounmap(void *addr);
46
 
47
#ifdef __WANT_IO_DEF
48
 
49
# define __inb                  hs7729pci_inb
50
# define __inw                  hs7729pci_inw
51
# define __inl                  hs7729pci_inl
52
# define __outb                 hs7729pci_outb
53
# define __outw                 hs7729pci_outw
54
# define __outl                 hs7729pci_outl
55
 
56
# define __inb_p                hs7729pci_inb_p
57
# define __inw_p                hs7729pci_inw
58
# define __inl_p                hs7729pci_inl
59
# define __outb_p               hs7729pci_outb_p
60
# define __outw_p               hs7729pci_outw
61
# define __outl_p               hs7729pci_outl
62
 
63
# define __insb                 hs7729pci_insb
64
# define __insw                 hs7729pci_insw
65
# define __insl                 hs7729pci_insl
66
# define __outsb                hs7729pci_outsb
67
# define __outsw                hs7729pci_outsw
68
# define __outsl                hs7729pci_outsl
69
 
70
#if 0
71
# define __readb                hs7729pci_readb
72
# define __readw                hs7729pci_readw
73
# define __readl                hs7729pci_readl
74
# define __writeb               hs7729pci_writeb
75
# define __writew               hs7729pci_writew
76
# define __writel               hs7729pci_writel
77
#else
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
#endif
85
 
86
# define __isa_port2addr        hs7729pci_isa_port2addr
87
# define __ioremap              hs7729pci_ioremap
88
# define __ioremap_nocache      hs7729pci_ioremap
89
# define __iounmap              hs7729pci_iounmap
90
 
91
#endif
92
 
93
#endif /* _ASM_SH_IO_HS7729PCI_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.