Skip to content

Commit cf288bd

Browse files
committed
m68k/UAPI: Move VME Board ID definition to <asm/bootinfo-vme.h>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 8693d61 commit cf288bd

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

‎arch/m68k/include/asm/mvme16xhw.h‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33

44
#include <asm/irq.h>
55

6-
/* Board ID data structure - pointer to this retrieved from Bug by head.S */
7-
8-
/* Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc) */
9-
10-
typedef struct {
11-
char bdid[4];
12-
u_char rev, mth, day, yr;
13-
u_short size, reserved;
14-
u_short brdno;
15-
char brdsuffix[2];
16-
u_long options;
17-
u_short clun, dlun, ctype, dnum;
18-
u_long option2;
19-
} t_bdid, *p_bdid;
20-
216

227
typedef struct {
238
u_char ack_icr,

‎arch/m68k/include/uapi/asm/bootinfo-vme.h‎

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,32 @@
2828
#define VME_TYPE_BVME4000 0x4000 /* BVM Ltd. BVME4000 */
2929
#define VME_TYPE_BVME6000 0x6000 /* BVM Ltd. BVME6000 */
3030

31-
/* BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
31+
32+
#ifndef __ASSEMBLY__
33+
34+
/*
35+
* Board ID data structure - pointer to this retrieved from Bug by head.S
36+
*
37+
* BI_VME_BRDINFO is a 32 byte struct as returned by the Bug code on
3238
* Motorola VME boards. Contains board number, Bug version, board
33-
* configuration options, etc. See include/asm/mvme16xhw.h for details.
39+
* configuration options, etc.
40+
*
41+
* Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc)
3442
*/
3543

44+
typedef struct {
45+
char bdid[4];
46+
u_char rev, mth, day, yr;
47+
u_short size, reserved;
48+
u_short brdno;
49+
char brdsuffix[2];
50+
u_long options;
51+
u_short clun, dlun, ctype, dnum;
52+
u_long option2;
53+
} t_bdid, *p_bdid;
54+
55+
#endif /* __ASSEMBLY__ */
56+
3657

3758
/*
3859
* Latest VME bootinfo versions

0 commit comments

Comments
 (0)