1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 1994-1996 Linus Torvalds & authors
6 /* Copyright(c) 1996 Kars de Jong */
7 /* Based on the ide driver from 1.2.13pl8 */
10 * Credits (alphabetical):
25 * - Geert Uytterhoeven
32 #include <asm/setup.h>
39 * Get rid of defs from io.h - ide has its private and conflicting versions
40 * Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we
41 * always use the `raw' MMIO versions
50 #define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n)
51 #define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n)
52 #define writeb(val, port) out_8(port, val)
53 #define writew(val, port) out_be16(port, val)
54 #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
55 #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
59 #define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n)
60 #define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n)
61 #define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n)
62 #define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n)
64 #endif /* CONFIG_MMU */
66 #endif /* __KERNEL__ */
67 #endif /* _M68K_IDE_H */