mca.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* -*- mode: c; c-basic-offset: 8 -*- */
  2. /* Platform specific MCA defines */
  3. #ifndef _ASM_X86_MCA_H
  4. #define _ASM_X86_MCA_H
  5. /* Maximal number of MCA slots - actually, some machines have less, but
  6. * they all have sufficient number of POS registers to cover 8.
  7. */
  8. #define MCA_MAX_SLOT_NR 8
  9. /* Most machines have only one MCA bus. The only multiple bus machines
  10. * I know have at most two */
  11. #define MAX_MCA_BUSSES 2
  12. #define MCA_PRIMARY_BUS 0
  13. #define MCA_SECONDARY_BUS 1
  14. /* Dummy slot numbers on primary MCA for integrated functions */
  15. #define MCA_INTEGSCSI (MCA_MAX_SLOT_NR)
  16. #define MCA_INTEGVIDEO (MCA_MAX_SLOT_NR+1)
  17. #define MCA_MOTHERBOARD (MCA_MAX_SLOT_NR+2)
  18. /* Dummy POS values for integrated functions */
  19. #define MCA_DUMMY_POS_START 0x10000
  20. #define MCA_INTEGSCSI_POS (MCA_DUMMY_POS_START+1)
  21. #define MCA_INTEGVIDEO_POS (MCA_DUMMY_POS_START+2)
  22. #define MCA_MOTHERBOARD_POS (MCA_DUMMY_POS_START+3)
  23. /* MCA registers */
  24. #define MCA_MOTHERBOARD_SETUP_REG 0x94
  25. #define MCA_ADAPTER_SETUP_REG 0x96
  26. #define MCA_POS_REG(n) (0x100+(n))
  27. #define MCA_ENABLED 0x01 /* POS 2, set if adapter enabled */
  28. /* Max number of adapters, including both slots and various integrated
  29. * things.
  30. */
  31. #define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3)
  32. #endif /* _ASM_X86_MCA_H */