sgi.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * sgi.h: Definitions specific to SGI machines.
  7. *
  8. * Copyright (C) 1996 David S. Miller (dm@sgi.com)
  9. */
  10. #ifndef _ASM_SGI_SGI_H
  11. #define _ASM_SGI_SGI_H
  12. /* UP=UniProcessor MP=MultiProcessor(capable) */
  13. enum sgi_mach {
  14. ip4, /* R2k UP */
  15. ip5, /* R2k MP */
  16. ip6, /* R3k UP */
  17. ip7, /* R3k MP */
  18. ip9, /* R3k UP */
  19. ip12, /* R3kA UP, Indigo */
  20. ip15, /* R3kA MP */
  21. ip17, /* R4K UP */
  22. ip19, /* R4K MP */
  23. ip20, /* R4K UP, Indigo */
  24. ip21, /* R8k/TFP MP */
  25. ip22, /* R4x00 UP, Indy, Indigo2 */
  26. ip25, /* R10k MP */
  27. ip26, /* R8k/TFP UP, Indigo2 */
  28. ip27, /* R10k MP, R12k MP, R14k MP, Origin 200/2k, Onyx2 */
  29. ip28, /* R10k UP, Indigo2 Impact R10k */
  30. ip30, /* R10k MP, R12k MP, R14k MP, Octane */
  31. ip32, /* R5k UP, RM5200 UP, RM7k UP, R10k UP, R12k UP, O2 */
  32. ip35, /* R14k MP, R16k MP, Origin 300/3k, Onyx3, Fuel, Tezro */
  33. };
  34. extern enum sgi_mach sgimach;
  35. extern void sgi_sysinit(void);
  36. /* Many I/O space registers are byte sized and are contained within
  37. * one byte per word, specifically the MSB, this macro helps out.
  38. */
  39. #ifdef __MIPSEL__
  40. #define SGI_MSB(regaddr) (regaddr)
  41. #else
  42. #define SGI_MSB(regaddr) ((regaddr) | 0x3)
  43. #endif
  44. #endif /* _ASM_SGI_SGI_H */