ohare.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _ASM_POWERPC_OHARE_H
  2. #define _ASM_POWERPC_OHARE_H
  3. #ifdef __KERNEL__
  4. /*
  5. * ohare.h: definitions for using the "O'Hare" I/O controller chip.
  6. *
  7. * Copyright (C) 1997 Paul Mackerras.
  8. *
  9. * BenH: Changed to match those of heathrow (but not all of them). Please
  10. * check if I didn't break anything (especially the media bay).
  11. */
  12. /* offset from ohare base for feature control register */
  13. #define OHARE_MBCR 0x34
  14. #define OHARE_FCR 0x38
  15. /*
  16. * Bits in feature control register.
  17. * These were mostly derived by experiment on a powerbook 3400
  18. * and may differ for other machines.
  19. */
  20. #define OH_SCC_RESET 1
  21. #define OH_BAY_POWER_N 2 /* a guess */
  22. #define OH_BAY_PCI_ENABLE 4 /* a guess */
  23. #define OH_BAY_IDE_ENABLE 8
  24. #define OH_BAY_FLOPPY_ENABLE 0x10
  25. #define OH_IDE0_ENABLE 0x20
  26. #define OH_IDE0_RESET_N 0x40 /* a guess */
  27. #define OH_BAY_DEV_MASK 0x1c
  28. #define OH_BAY_RESET_N 0x80
  29. #define OH_IOBUS_ENABLE 0x100 /* IOBUS seems to be IDE */
  30. #define OH_SCC_ENABLE 0x200
  31. #define OH_MESH_ENABLE 0x400
  32. #define OH_FLOPPY_ENABLE 0x800
  33. #define OH_SCCA_IO 0x4000
  34. #define OH_SCCB_IO 0x8000
  35. #define OH_VIA_ENABLE 0x10000 /* Is apparently wrong, to be verified */
  36. #define OH_IDE1_RESET_N 0x800000
  37. /*
  38. * Bits to set in the feature control register on PowerBooks.
  39. */
  40. #define PBOOK_FEATURES (OH_IDE_ENABLE | OH_SCC_ENABLE | \
  41. OH_MESH_ENABLE | OH_SCCA_IO | OH_SCCB_IO)
  42. /*
  43. * A magic value to put into the feature control register of the
  44. * "ohare" I/O controller on Starmaxes to enable the IDE CD interface.
  45. * Contributed by Harry Eaton.
  46. */
  47. #define STARMAX_FEATURES 0xbeff7a
  48. #endif /* __KERNEL__ */
  49. #endif /* _ASM_POWERPC_OHARE_H */