sgi.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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, /* TFP MP */
  25. ip22, /* R4x00 UP, Indigo2 */
  26. ip25, /* R10k MP */
  27. ip26, /* TFP UP, Indigo2 */
  28. ip27, /* R10k MP, R12k MP, Origin */
  29. ip28, /* R10k UP, Indigo2 */
  30. ip30, /* Octane */
  31. ip32, /* O2 */
  32. };
  33. extern enum sgi_mach sgimach;
  34. extern void sgi_sysinit(void);
  35. /* Many I/O space registers are byte sized and are contained within
  36. * one byte per word, specifically the MSB, this macro helps out.
  37. */
  38. #ifdef __MIPSEL__
  39. #define SGI_MSB(regaddr) (regaddr)
  40. #else
  41. #define SGI_MSB(regaddr) ((regaddr) | 0x3)
  42. #endif
  43. #endif /* _ASM_SGI_SGI_H */