bootinfo-vme.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. ** asm/bootinfo-vme.h -- VME-specific boot information definitions
  4. */
  5. #ifndef _UAPI_ASM_M68K_BOOTINFO_VME_H
  6. #define _UAPI_ASM_M68K_BOOTINFO_VME_H
  7. #include <linux/types.h>
  8. /*
  9. * VME-specific tags
  10. */
  11. #define BI_VME_TYPE 0x8000 /* VME sub-architecture (__be32) */
  12. #define BI_VME_BRDINFO 0x8001 /* VME board information (struct) */
  13. /*
  14. * VME models (BI_VME_TYPE)
  15. */
  16. #define VME_TYPE_TP34V 0x0034 /* Tadpole TP34V */
  17. #define VME_TYPE_MVME147 0x0147 /* Motorola MVME147 */
  18. #define VME_TYPE_MVME162 0x0162 /* Motorola MVME162 */
  19. #define VME_TYPE_MVME166 0x0166 /* Motorola MVME166 */
  20. #define VME_TYPE_MVME167 0x0167 /* Motorola MVME167 */
  21. #define VME_TYPE_MVME172 0x0172 /* Motorola MVME172 */
  22. #define VME_TYPE_MVME177 0x0177 /* Motorola MVME177 */
  23. #define VME_TYPE_BVME4000 0x4000 /* BVM Ltd. BVME4000 */
  24. #define VME_TYPE_BVME6000 0x6000 /* BVM Ltd. BVME6000 */
  25. #ifndef __ASSEMBLY__
  26. /*
  27. * Board ID data structure - pointer to this retrieved from Bug by head.S
  28. *
  29. * BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
  30. * Motorola VME boards. Contains board number, Bug version, board
  31. * configuration options, etc.
  32. *
  33. * Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc)
  34. */
  35. typedef struct {
  36. char bdid[4];
  37. __u8 rev, mth, day, yr;
  38. __be16 size, reserved;
  39. __be16 brdno;
  40. char brdsuffix[2];
  41. __be32 options;
  42. __be16 clun, dlun, ctype, dnum;
  43. __be32 option2;
  44. } t_bdid, *p_bdid;
  45. #endif /* __ASSEMBLY__ */
  46. /*
  47. * Latest VME bootinfo versions
  48. */
  49. #define MVME147_BOOTI_VERSION MK_BI_VERSION(2, 0)
  50. #define MVME16x_BOOTI_VERSION MK_BI_VERSION(2, 0)
  51. #define BVME6000_BOOTI_VERSION MK_BI_VERSION(2, 0)
  52. #endif /* _UAPI_ASM_M68K_BOOTINFO_VME_H */