ide.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * linux/include/asm-m68k/ide.h
  3. *
  4. * Copyright (C) 1994-1996 Linus Torvalds & authors
  5. */
  6. /* Copyright(c) 1996 Kars de Jong */
  7. /* Based on the ide driver from 1.2.13pl8 */
  8. /*
  9. * Credits (alphabetical):
  10. *
  11. * - Bjoern Brauel
  12. * - Kars de Jong
  13. * - Torsten Ebeling
  14. * - Dwight Engen
  15. * - Thorsten Floeck
  16. * - Roman Hodek
  17. * - Guenther Kelleter
  18. * - Chris Lawrence
  19. * - Michael Rausch
  20. * - Christian Sauer
  21. * - Michael Schmitz
  22. * - Jes Soerensen
  23. * - Michael Thurm
  24. * - Geert Uytterhoeven
  25. */
  26. #ifndef _M68K_IDE_H
  27. #define _M68K_IDE_H
  28. #ifdef __KERNEL__
  29. #include <asm/setup.h>
  30. #include <asm/io.h>
  31. #include <asm/irq.h>
  32. /*
  33. * Get rid of defs from io.h - ide has its private and conflicting versions
  34. * Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we
  35. * always use the `raw' MMIO versions
  36. */
  37. #undef readb
  38. #undef readw
  39. #undef writeb
  40. #undef writew
  41. #define readb in_8
  42. #define readw in_be16
  43. #define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n)
  44. #define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n)
  45. #define writeb(val, port) out_8(port, val)
  46. #define writew(val, port) out_be16(port, val)
  47. #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
  48. #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
  49. #endif /* __KERNEL__ */
  50. #endif /* _M68K_IDE_H */