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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-m68knommu/] [mcfpci.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/****************************************************************************/
2
 
3
/*
4
 *      mcfpci.h -- PCI bridge on ColdFire eval boards.
5
 *
6
 *      (C) Copyright 2000, Greg Ungerer (gerg@moreton.com.au)
7
 */
8
 
9
/****************************************************************************/
10
#ifndef mcfpci_h
11
#define mcfpci_h
12
/****************************************************************************/
13
 
14
#include <linux/config.h>
15
 
16
#ifdef CONFIG_PCI
17
 
18
/*
19
 *      Address regions in the PCI addres space are not mapped into the
20
 *      normal memory space of the ColdFire. They must be accessed via
21
 *      handler routines. This is easy for I/O space (inb/outb/etc) but
22
 *      needs some code changes to support ordinary memory. Interrupts
23
 *      also need to be vectored through the PCI handler first, then it
24
 *      will call the actual driver sub-handlers.
25
 */
26
 
27
/*
28
 *      Un-define all the standard I/O access routines.
29
 */
30
#undef  inb
31
#undef  inw
32
#undef  inl
33
#undef  insb
34
#undef  insw
35
#undef  insl
36
#undef  outb
37
#undef  outw
38
#undef  outl
39
#undef  outsb
40
#undef  outsw
41
#undef  outsl
42
 
43
#undef  request_irq
44
#undef  free_irq
45
 
46
 
47
/*
48
 *      Re-direct all I/O memory accesses functions to PCI specific ones.
49
 */
50
#define inb     pci_inb
51
#define inw     pci_inw
52
#define inl     pci_inl
53
#define inb_p   pci_inb
54
#define inw_p   pci_inw
55
#define insb    pci_insb
56
#define insw    pci_insw
57
#define insl    pci_insl
58
 
59
#define outb    pci_outb
60
#define outw    pci_outw
61
#define outl    pci_outl
62
#define outb_p  pci_outb
63
#define outw_p  pci_outw
64
#define outsb   pci_outsb
65
#define outsw   pci_outsw
66
#define outsl   pci_outsl
67
 
68
#define request_irq     pci_request_irq
69
#define free_irq        pci_free_irq
70
 
71
 
72
/*
73
 *      Prototypes of the real PCI functions (defined in bios32.c).
74
 */
75
unsigned char   pci_inb(unsigned int addr);
76
unsigned short  pci_inw(unsigned int addr);
77
unsigned int    pci_inl(unsigned int addr);
78
void            pci_insb(void *addr, void *buf, int len);
79
void            pci_insw(void *addr, void *buf, int len);
80
void            pci_insl(void *addr, void *buf, int len);
81
 
82
void            pci_outb(unsigned char val, unsigned int addr);
83
void            pci_outw(unsigned short val, unsigned int addr);
84
void            pci_outl(unsigned int val, unsigned int addr);
85
void            pci_outsb(void *addr, void *buf, int len);
86
void            pci_outsw(void *addr, void *buf, int len);
87
void            pci_outsl(void *addr, void *buf, int len);
88
 
89
int             pci_request_irq(unsigned int irq,
90
                        void (*handler)(int, void *, struct pt_regs *),
91
                        unsigned long flags,
92
                        const char *device,
93
                        void *dev_id);
94
void            pci_free_irq(unsigned int irq, void *dev_id);
95
 
96
#endif /* CONFIG_PCI */
97
/****************************************************************************/
98
#endif  /* mcfpci_h */

powered by: WebSVN 2.1.0

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