Skip to content

Commit dc6ae5e

Browse files
Jate Sujjavanichgregungerer
Jate Sujjavanich
authored andcommitted
m68knommu: arch/m68k/include/asm/ide.h fix for nommu
The arch/m68k/include/asm/ide.h produces errors when the IDE driver is compiled for my 523x uClinux system under kernel. The header makes some redefines of operators not defined in the arch/m68k/include/asm/io_no.h header. There are no separate mmio and iospace defines. Signed-off-by: Jate Sujjavanich <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
1 parent da5cabf commit dc6ae5e

File tree

1 file changed

+11
-2
lines changed
  • arch/m68k/include/asm

1 file changed

+11
-2
lines changed

arch/m68k/include/asm/ide.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* linux/include/asm-m68k/ide.h
3-
*
42
* Copyright (C) 1994-1996 Linus Torvalds & authors
53
*/
64

@@ -34,6 +32,8 @@
3432
#include <asm/io.h>
3533
#include <asm/irq.h>
3634

35+
#ifdef CONFIG_MMU
36+
3737
/*
3838
* Get rid of defs from io.h - ide has its private and conflicting versions
3939
* Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we
@@ -53,5 +53,14 @@
5353
#define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
5454
#define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
5555

56+
#else
57+
58+
#define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n)
59+
#define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n)
60+
#define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n)
61+
#define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n)
62+
63+
#endif /* CONFIG_MMU */
64+
5665
#endif /* __KERNEL__ */
5766
#endif /* _M68K_IDE_H */

0 commit comments

Comments
 (0)