···11-/****************************************************************************/22-33-/*44- * mcfpci.h -- PCI bridge on ColdFire eval boards.55- *66- * (C) Copyright 2000, Greg Ungerer (gerg@snapgear.com)77- * (C) Copyright 2000, Lineo Inc. (www.lineo.com)88- */99-1010-/****************************************************************************/1111-#ifndef mcfpci_h1212-#define mcfpci_h1313-/****************************************************************************/1414-1515-1616-#ifdef CONFIG_PCI1717-1818-/*1919- * Address regions in the PCI address space are not mapped into the2020- * normal memory space of the ColdFire. They must be accessed via2121- * handler routines. This is easy for I/O space (inb/outb/etc) but2222- * needs some code changes to support ordinary memory. Interrupts2323- * also need to be vectored through the PCI handler first, then it2424- * will call the actual driver sub-handlers.2525- */2626-2727-/*2828- * Un-define all the standard I/O access routines.2929- */3030-#undef inb3131-#undef inw3232-#undef inl3333-#undef inb_p3434-#undef inw_p3535-#undef insb3636-#undef insw3737-#undef insl3838-#undef outb3939-#undef outw4040-#undef outl4141-#undef outb_p4242-#undef outw_p4343-#undef outsb4444-#undef outsw4545-#undef outsl4646-4747-#undef request_irq4848-#undef free_irq4949-5050-#undef bus_to_virt5151-#undef virt_to_bus5252-5353-5454-/*5555- * Re-direct all I/O memory accesses functions to PCI specific ones.5656- */5757-#define inb pci_inb5858-#define inw pci_inw5959-#define inl pci_inl6060-#define inb_p pci_inb6161-#define inw_p pci_inw6262-#define insb pci_insb6363-#define insw pci_insw6464-#define insl pci_insl6565-6666-#define outb pci_outb6767-#define outw pci_outw6868-#define outl pci_outl6969-#define outb_p pci_outb7070-#define outw_p pci_outw7171-#define outsb pci_outsb7272-#define outsw pci_outsw7373-#define outsl pci_outsl7474-7575-#define request_irq pci_request_irq7676-#define free_irq pci_free_irq7777-7878-#define virt_to_bus pci_virt_to_bus7979-#define bus_to_virt pci_bus_to_virt8080-8181-#define CONFIG_COMEMPCI 18282-8383-8484-/*8585- * Prototypes of the real PCI functions (defined in bios32.c).8686- */8787-unsigned char pci_inb(unsigned int addr);8888-unsigned short pci_inw(unsigned int addr);8989-unsigned int pci_inl(unsigned int addr);9090-void pci_insb(void *addr, void *buf, int len);9191-void pci_insw(void *addr, void *buf, int len);9292-void pci_insl(void *addr, void *buf, int len);9393-9494-void pci_outb(unsigned char val, unsigned int addr);9595-void pci_outw(unsigned short val, unsigned int addr);9696-void pci_outl(unsigned int val, unsigned int addr);9797-void pci_outsb(void *addr, void *buf, int len);9898-void pci_outsw(void *addr, void *buf, int len);9999-void pci_outsl(void *addr, void *buf, int len);100100-101101-int pci_request_irq(unsigned int irq,102102- void (*handler)(int, void *, struct pt_regs *),103103- unsigned long flags,104104- const char *device,105105- void *dev_id);106106-void pci_free_irq(unsigned int irq, void *dev_id);107107-108108-void *pci_bmalloc(int size);109109-void pci_bmfree(void *bmp, int len);110110-void pci_copytoshmem(unsigned long bmp, void *src, int size);111111-void pci_copyfromshmem(void *dst, unsigned long bmp, int size);112112-unsigned long pci_virt_to_bus(volatile void *address);113113-void *pci_bus_to_virt(unsigned long address);114114-void pci_bmcpyto(void *dst, void *src, int len);115115-void pci_bmcpyfrom(void *dst, void *src, int len);116116-117117-#endif /* CONFIG_PCI */118118-/****************************************************************************/119119-#endif /* mcfpci_h */