162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci** asm/bootinfo-vme.h -- VME-specific boot information definitions
462306a36Sopenharmony_ci*/
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _UAPI_ASM_M68K_BOOTINFO_VME_H
762306a36Sopenharmony_ci#define _UAPI_ASM_M68K_BOOTINFO_VME_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include <linux/types.h>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci    /*
1462306a36Sopenharmony_ci     *  VME-specific tags
1562306a36Sopenharmony_ci     */
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define BI_VME_TYPE		0x8000	/* VME sub-architecture (__be32) */
1862306a36Sopenharmony_ci#define BI_VME_BRDINFO		0x8001	/* VME board information (struct) */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci    /*
2262306a36Sopenharmony_ci     *  VME models (BI_VME_TYPE)
2362306a36Sopenharmony_ci     */
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#define VME_TYPE_TP34V		0x0034	/* Tadpole TP34V */
2662306a36Sopenharmony_ci#define VME_TYPE_MVME147	0x0147	/* Motorola MVME147 */
2762306a36Sopenharmony_ci#define VME_TYPE_MVME162	0x0162	/* Motorola MVME162 */
2862306a36Sopenharmony_ci#define VME_TYPE_MVME166	0x0166	/* Motorola MVME166 */
2962306a36Sopenharmony_ci#define VME_TYPE_MVME167	0x0167	/* Motorola MVME167 */
3062306a36Sopenharmony_ci#define VME_TYPE_MVME172	0x0172	/* Motorola MVME172 */
3162306a36Sopenharmony_ci#define VME_TYPE_MVME177	0x0177	/* Motorola MVME177 */
3262306a36Sopenharmony_ci#define VME_TYPE_BVME4000	0x4000	/* BVM Ltd. BVME4000 */
3362306a36Sopenharmony_ci#define VME_TYPE_BVME6000	0x6000	/* BVM Ltd. BVME6000 */
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci#ifndef __ASSEMBLY__
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci/*
3962306a36Sopenharmony_ci * Board ID data structure - pointer to this retrieved from Bug by head.S
4062306a36Sopenharmony_ci *
4162306a36Sopenharmony_ci * BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
4262306a36Sopenharmony_ci * Motorola VME boards.  Contains board number, Bug version, board
4362306a36Sopenharmony_ci * configuration options, etc.
4462306a36Sopenharmony_ci *
4562306a36Sopenharmony_ci * Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc)
4662306a36Sopenharmony_ci */
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_citypedef struct {
4962306a36Sopenharmony_ci	char	bdid[4];
5062306a36Sopenharmony_ci	__u8	rev, mth, day, yr;
5162306a36Sopenharmony_ci	__be16	size, reserved;
5262306a36Sopenharmony_ci	__be16	brdno;
5362306a36Sopenharmony_ci	char	brdsuffix[2];
5462306a36Sopenharmony_ci	__be32	options;
5562306a36Sopenharmony_ci	__be16	clun, dlun, ctype, dnum;
5662306a36Sopenharmony_ci	__be32	option2;
5762306a36Sopenharmony_ci} t_bdid, *p_bdid;
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci#endif /* __ASSEMBLY__ */
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci    /*
6362306a36Sopenharmony_ci     *  Latest VME bootinfo versions
6462306a36Sopenharmony_ci     */
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci#define MVME147_BOOTI_VERSION	MK_BI_VERSION(2, 0)
6762306a36Sopenharmony_ci#define MVME16x_BOOTI_VERSION	MK_BI_VERSION(2, 0)
6862306a36Sopenharmony_ci#define BVME6000_BOOTI_VERSION	MK_BI_VERSION(2, 0)
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ci#endif /* _UAPI_ASM_M68K_BOOTINFO_VME_H */
72