machines.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * machines.h: Defines for taking apart the machine type value in the
  4. * idprom and determining the kind of machine we are on.
  5. *
  6. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  7. * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au)
  8. */
  9. #ifndef _SPARC_MACHINES_H
  10. #define _SPARC_MACHINES_H
  11. struct Sun_Machine_Models {
  12. char *name;
  13. unsigned char id_machtype;
  14. };
  15. /* Current number of machines we know about that has an IDPROM
  16. * machtype entry including one entry for the 0x80 OBP machines.
  17. */
  18. // reduced along with table in arch/m68k/sun3/idprom.c
  19. // sun3 port doesn't need to know about sparc machines.
  20. //#define NUM_SUN_MACHINES 23
  21. #define NUM_SUN_MACHINES 8
  22. /* The machine type in the idprom area looks like this:
  23. *
  24. * ---------------
  25. * | ARCH | MACH |
  26. * ---------------
  27. * 7 4 3 0
  28. *
  29. * The ARCH field determines the architecture line (sun4, sun4c, etc).
  30. * The MACH field determines the machine make within that architecture.
  31. */
  32. #define SM_ARCH_MASK 0xf0
  33. #define SM_SUN3 0x10
  34. #define SM_SUN4 0x20
  35. #define SM_SUN3X 0x40
  36. #define SM_SUN4C 0x50
  37. #define SM_SUN4M 0x70
  38. #define SM_SUN4M_OBP 0x80
  39. #define SM_TYP_MASK 0x0f
  40. /* Sun3 machines */
  41. #define SM_3_160 0x01 /* Sun 3/160 series */
  42. #define SM_3_50 0x02 /* Sun 3/50 series */
  43. #define SM_3_260 0x03 /* Sun 3/260 series */
  44. #define SM_3_110 0x04 /* Sun 3/110 series */
  45. #define SM_3_60 0x07 /* Sun 3/60 series */
  46. #define SM_3_E 0x08 /* Sun 3/E series */
  47. /* Sun3x machines */
  48. #define SM_3_460 0x01 /* Sun 3/460 (460,470,480) series */
  49. #define SM_3_80 0x02 /* Sun 3/80 series */
  50. /* Sun4 machines */
  51. #define SM_4_260 0x01 /* Sun 4/200 series */
  52. #define SM_4_110 0x02 /* Sun 4/100 series */
  53. #define SM_4_330 0x03 /* Sun 4/300 series */
  54. #define SM_4_470 0x04 /* Sun 4/400 series */
  55. /* Sun4c machines Full Name - PROM NAME */
  56. #define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */
  57. #define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */
  58. #define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */
  59. #define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */
  60. #define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */
  61. #define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */
  62. #define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */
  63. /* Sun4m machines, these predate the OpenBoot. These values only mean
  64. * something if the value in the ARCH field is SM_SUN4M, if it is
  65. * SM_SUN4M_OBP then you have the following situation:
  66. * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
  67. * 2) You have to consult OpenBoot to determine which machine this is.
  68. */
  69. #define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
  70. #define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
  71. #define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
  72. /* Sun4d machines -- N/A */
  73. /* Sun4e machines -- N/A */
  74. /* Sun4u machines -- N/A */
  75. #endif /* !(_SPARC_MACHINES_H) */