18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci** asm/bootinfo-vme.h -- VME-specific boot information definitions
48c2ecf20Sopenharmony_ci*/
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_M68K_BOOTINFO_VME_H
78c2ecf20Sopenharmony_ci#define _UAPI_ASM_M68K_BOOTINFO_VME_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/types.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci    /*
148c2ecf20Sopenharmony_ci     *  VME-specific tags
158c2ecf20Sopenharmony_ci     */
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define BI_VME_TYPE		0x8000	/* VME sub-architecture (__be32) */
188c2ecf20Sopenharmony_ci#define BI_VME_BRDINFO		0x8001	/* VME board information (struct) */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci    /*
228c2ecf20Sopenharmony_ci     *  VME models (BI_VME_TYPE)
238c2ecf20Sopenharmony_ci     */
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define VME_TYPE_TP34V		0x0034	/* Tadpole TP34V */
268c2ecf20Sopenharmony_ci#define VME_TYPE_MVME147	0x0147	/* Motorola MVME147 */
278c2ecf20Sopenharmony_ci#define VME_TYPE_MVME162	0x0162	/* Motorola MVME162 */
288c2ecf20Sopenharmony_ci#define VME_TYPE_MVME166	0x0166	/* Motorola MVME166 */
298c2ecf20Sopenharmony_ci#define VME_TYPE_MVME167	0x0167	/* Motorola MVME167 */
308c2ecf20Sopenharmony_ci#define VME_TYPE_MVME172	0x0172	/* Motorola MVME172 */
318c2ecf20Sopenharmony_ci#define VME_TYPE_MVME177	0x0177	/* Motorola MVME177 */
328c2ecf20Sopenharmony_ci#define VME_TYPE_BVME4000	0x4000	/* BVM Ltd. BVME4000 */
338c2ecf20Sopenharmony_ci#define VME_TYPE_BVME6000	0x6000	/* BVM Ltd. BVME6000 */
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci/*
398c2ecf20Sopenharmony_ci * Board ID data structure - pointer to this retrieved from Bug by head.S
408c2ecf20Sopenharmony_ci *
418c2ecf20Sopenharmony_ci * BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
428c2ecf20Sopenharmony_ci * Motorola VME boards.  Contains board number, Bug version, board
438c2ecf20Sopenharmony_ci * configuration options, etc.
448c2ecf20Sopenharmony_ci *
458c2ecf20Sopenharmony_ci * Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc)
468c2ecf20Sopenharmony_ci */
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_citypedef struct {
498c2ecf20Sopenharmony_ci	char	bdid[4];
508c2ecf20Sopenharmony_ci	__u8	rev, mth, day, yr;
518c2ecf20Sopenharmony_ci	__be16	size, reserved;
528c2ecf20Sopenharmony_ci	__be16	brdno;
538c2ecf20Sopenharmony_ci	char	brdsuffix[2];
548c2ecf20Sopenharmony_ci	__be32	options;
558c2ecf20Sopenharmony_ci	__be16	clun, dlun, ctype, dnum;
568c2ecf20Sopenharmony_ci	__be32	option2;
578c2ecf20Sopenharmony_ci} t_bdid, *p_bdid;
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci    /*
638c2ecf20Sopenharmony_ci     *  Latest VME bootinfo versions
648c2ecf20Sopenharmony_ci     */
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define MVME147_BOOTI_VERSION	MK_BI_VERSION(2, 0)
678c2ecf20Sopenharmony_ci#define MVME16x_BOOTI_VERSION	MK_BI_VERSION(2, 0)
688c2ecf20Sopenharmony_ci#define BVME6000_BOOTI_VERSION	MK_BI_VERSION(2, 0)
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_M68K_BOOTINFO_VME_H */
72