ide.h 814 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * linux/include/asm-arm/ide.h
  3. *
  4. * Copyright (C) 1994-1996 Linus Torvalds & authors
  5. */
  6. /*
  7. * This file contains the ARM architecture specific IDE code.
  8. */
  9. #ifndef __ASMARM_IDE_H
  10. #define __ASMARM_IDE_H
  11. #ifdef __KERNEL__
  12. #ifndef MAX_HWIFS
  13. #define MAX_HWIFS 4
  14. #endif
  15. #if !defined(CONFIG_ARCH_L7200)
  16. # define IDE_ARCH_OBSOLETE_INIT
  17. # ifdef CONFIG_ARCH_CLPS7500
  18. # define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
  19. # else
  20. # define ide_default_io_ctl(base) (0)
  21. # endif
  22. #endif /* !ARCH_L7200 */
  23. #define __ide_mm_insw(port,addr,len) readsw(port,addr,len)
  24. #define __ide_mm_insl(port,addr,len) readsl(port,addr,len)
  25. #define __ide_mm_outsw(port,addr,len) writesw(port,addr,len)
  26. #define __ide_mm_outsl(port,addr,len) writesl(port,addr,len)
  27. #endif /* __KERNEL__ */
  28. #endif /* __ASMARM_IDE_H */