ide.h 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * linux/include/asm-alpha/ide.h
  3. *
  4. * Copyright (C) 1994-1996 Linus Torvalds & authors
  5. */
  6. /*
  7. * This file contains the alpha architecture specific IDE code.
  8. */
  9. #ifndef __ASMalpha_IDE_H
  10. #define __ASMalpha_IDE_H
  11. #ifdef __KERNEL__
  12. static inline int ide_default_irq(unsigned long base)
  13. {
  14. switch (base) {
  15. case 0x1f0: return 14;
  16. case 0x170: return 15;
  17. case 0x1e8: return 11;
  18. case 0x168: return 10;
  19. default:
  20. return 0;
  21. }
  22. }
  23. static inline unsigned long ide_default_io_base(int index)
  24. {
  25. switch (index) {
  26. case 0: return 0x1f0;
  27. case 1: return 0x170;
  28. case 2: return 0x1e8;
  29. case 3: return 0x168;
  30. default:
  31. return 0;
  32. }
  33. }
  34. #include <asm-generic/ide_iops.h>
  35. #endif /* __KERNEL__ */
  36. #endif /* __ASMalpha_IDE_H */