machines.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * machines.h: Defines for taking apart the machine type value in the
  3. * idprom and determining the kind of machine we are on.
  4. *
  5. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  6. */
  7. #ifndef _SPARC_MACHINES_H
  8. #define _SPARC_MACHINES_H
  9. struct Sun_Machine_Models {
  10. char *name;
  11. unsigned char id_machtype;
  12. };
  13. /* The machine type in the idprom area looks like this:
  14. *
  15. * ---------------
  16. * | ARCH | MACH |
  17. * ---------------
  18. * 7 4 3 0
  19. *
  20. * The ARCH field determines the architecture line (sun4m, etc).
  21. * The MACH field determines the machine make within that architecture.
  22. */
  23. #define SM_ARCH_MASK 0xf0
  24. #define M_LEON 0x30
  25. #define SM_SUN4M 0x70
  26. #define SM_SUN4M_OBP 0x80
  27. #define SM_TYP_MASK 0x0f
  28. /* Leon machines */
  29. #define M_LEON3_SOC 0x02 /* Leon3 SoC */
  30. /* Sun4m machines, these predate the OpenBoot. These values only mean
  31. * something if the value in the ARCH field is SM_SUN4M, if it is
  32. * SM_SUN4M_OBP then you have the following situation:
  33. * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
  34. * 2) You have to consult OpenBoot to determine which machine this is.
  35. */
  36. #define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
  37. #define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
  38. #define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
  39. /* Sun4d machines -- N/A */
  40. /* Sun4e machines -- N/A */
  41. /* Sun4u machines -- N/A */
  42. #endif /* !(_SPARC_MACHINES_H) */