forked from luck/tmp_suning_uos_patched
f94116aeec
* Remove superfluous <asm/macints.h> include. * No need to re-define in/out*() macros as they are no longer used by m68k host drivers. * readl() and writel() are not used by core IDE code. * Use raw_*_swapw() directly in {falcon,q40}ide.c and remove {in,out}sw_swapw() macros. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michael Schmitz <schmitz@debian.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
58 lines
1.3 KiB
C
58 lines
1.3 KiB
C
/*
|
|
* linux/include/asm-m68k/ide.h
|
|
*
|
|
* Copyright (C) 1994-1996 Linus Torvalds & authors
|
|
*/
|
|
|
|
/* Copyright(c) 1996 Kars de Jong */
|
|
/* Based on the ide driver from 1.2.13pl8 */
|
|
|
|
/*
|
|
* Credits (alphabetical):
|
|
*
|
|
* - Bjoern Brauel
|
|
* - Kars de Jong
|
|
* - Torsten Ebeling
|
|
* - Dwight Engen
|
|
* - Thorsten Floeck
|
|
* - Roman Hodek
|
|
* - Guenther Kelleter
|
|
* - Chris Lawrence
|
|
* - Michael Rausch
|
|
* - Christian Sauer
|
|
* - Michael Schmitz
|
|
* - Jes Soerensen
|
|
* - Michael Thurm
|
|
* - Geert Uytterhoeven
|
|
*/
|
|
|
|
#ifndef _M68K_IDE_H
|
|
#define _M68K_IDE_H
|
|
|
|
#ifdef __KERNEL__
|
|
#include <asm/setup.h>
|
|
#include <asm/io.h>
|
|
#include <asm/irq.h>
|
|
|
|
/*
|
|
* Get rid of defs from io.h - ide has its private and conflicting versions
|
|
* Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we
|
|
* always use the `raw' MMIO versions
|
|
*/
|
|
#undef readb
|
|
#undef readw
|
|
#undef writeb
|
|
#undef writew
|
|
|
|
#define readb in_8
|
|
#define readw in_be16
|
|
#define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n)
|
|
#define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n)
|
|
#define writeb(val, port) out_8(port, val)
|
|
#define writew(val, port) out_be16(port, val)
|
|
#define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
|
|
#define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* _M68K_IDE_H */
|