mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
fa053d2f00
The io accessors insw_ns, outsw_ns, insl_ns and outsl_ns are unused (except for one unnecessary use in drivers/net/3c509.c that is addressed in a previous patch) and are only defined in powerpc/ppc, so remove them. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/* include/asm-ppc/mpc8260_pci9.h
|
|
*
|
|
* Undefine the PCI read* and in* macros so we can define them as functions
|
|
* that implement the workaround for the MPC8260 device erratum PCI 9.
|
|
*
|
|
* This header file should only be included at the end of include/asm-ppc/io.h
|
|
* and never included directly anywhere else.
|
|
*
|
|
* Author: andy_lowe@mvista.com
|
|
*
|
|
* 2003 (c) MontaVista Software, Inc. This file is licensed under
|
|
* the terms of the GNU General Public License version 2. This program
|
|
* is licensed "as is" without any warranty of any kind, whether express
|
|
* or implied.
|
|
*/
|
|
#ifndef _PPC_IO_H
|
|
#error "Do not include mpc8260_pci9.h directly."
|
|
#endif
|
|
|
|
#ifdef __KERNEL__
|
|
#ifndef __CONFIG_8260_PCI9_DEFS
|
|
#define __CONFIG_8260_PCI9_DEFS
|
|
|
|
#undef readb
|
|
#undef readw
|
|
#undef readl
|
|
#undef insb
|
|
#undef insw
|
|
#undef insl
|
|
#undef inb
|
|
#undef inw
|
|
#undef inl
|
|
#undef memcpy_fromio
|
|
|
|
extern int readb(volatile unsigned char *addr);
|
|
extern int readw(volatile unsigned short *addr);
|
|
extern unsigned readl(volatile unsigned *addr);
|
|
extern void insb(unsigned port, void *buf, int ns);
|
|
extern void insw(unsigned port, void *buf, int ns);
|
|
extern void insl(unsigned port, void *buf, int nl);
|
|
extern int inb(unsigned port);
|
|
extern int inw(unsigned port);
|
|
extern unsigned inl(unsigned port);
|
|
extern void *memcpy_fromio(void *dest, unsigned long src, size_t count);
|
|
|
|
#endif /* !__CONFIG_8260_PCI9_DEFS */
|
|
#endif /* __KERNEL__ */
|