mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-18 08:23:30 +00:00

__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code. This is a completely mechanical patch (done with a simple "sed -i" statement). Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/20250611114056.118309-2-thuth@redhat.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
72 lines
1.8 KiB
C
72 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
** asm/bootinfo-vme.h -- VME-specific boot information definitions
|
|
*/
|
|
|
|
#ifndef _UAPI_ASM_M68K_BOOTINFO_VME_H
|
|
#define _UAPI_ASM_M68K_BOOTINFO_VME_H
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
/*
|
|
* VME-specific tags
|
|
*/
|
|
|
|
#define BI_VME_TYPE 0x8000 /* VME sub-architecture (__be32) */
|
|
#define BI_VME_BRDINFO 0x8001 /* VME board information (struct) */
|
|
|
|
|
|
/*
|
|
* VME models (BI_VME_TYPE)
|
|
*/
|
|
|
|
#define VME_TYPE_TP34V 0x0034 /* Tadpole TP34V */
|
|
#define VME_TYPE_MVME147 0x0147 /* Motorola MVME147 */
|
|
#define VME_TYPE_MVME162 0x0162 /* Motorola MVME162 */
|
|
#define VME_TYPE_MVME166 0x0166 /* Motorola MVME166 */
|
|
#define VME_TYPE_MVME167 0x0167 /* Motorola MVME167 */
|
|
#define VME_TYPE_MVME172 0x0172 /* Motorola MVME172 */
|
|
#define VME_TYPE_MVME177 0x0177 /* Motorola MVME177 */
|
|
#define VME_TYPE_BVME4000 0x4000 /* BVM Ltd. BVME4000 */
|
|
#define VME_TYPE_BVME6000 0x6000 /* BVM Ltd. BVME6000 */
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/*
|
|
* Board ID data structure - pointer to this retrieved from Bug by head.S
|
|
*
|
|
* BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
|
|
* Motorola VME boards. Contains board number, Bug version, board
|
|
* configuration options, etc.
|
|
*
|
|
* Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc)
|
|
*/
|
|
|
|
typedef struct {
|
|
char bdid[4];
|
|
__u8 rev, mth, day, yr;
|
|
__be16 size, reserved;
|
|
__be16 brdno;
|
|
char brdsuffix[2];
|
|
__be32 options;
|
|
__be16 clun, dlun, ctype, dnum;
|
|
__be32 option2;
|
|
} t_bdid, *p_bdid;
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
|
|
/*
|
|
* Latest VME bootinfo versions
|
|
*/
|
|
|
|
#define MVME147_BOOTI_VERSION MK_BI_VERSION(2, 0)
|
|
#define MVME16x_BOOTI_VERSION MK_BI_VERSION(2, 0)
|
|
#define BVME6000_BOOTI_VERSION MK_BI_VERSION(2, 0)
|
|
|
|
|
|
#endif /* _UAPI_ASM_M68K_BOOTINFO_VME_H */
|