aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/uapi
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-10-04 05:41:24 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-11-26 05:09:21 -0500
commitabe48101c17eaf1b5d85270272392e6111562626 (patch)
tree4cf0f060b2e2efcfa41592be6aaf8a427dc09939 /arch/m68k/include/uapi
parentcf288bd5b122d12476fd7d9825c292daef5dba58 (diff)
m68k/UAPI: Use proper types (endianness/size) in <asm/bootinfo*.h>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/uapi')
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-amiga.h14
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-apollo.h2
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-atari.h4
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-hp300.h6
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-mac.h2
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo-vme.h17
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo.h29
7 files changed, 40 insertions, 34 deletions
diff --git a/arch/m68k/include/uapi/asm/bootinfo-amiga.h b/arch/m68k/include/uapi/asm/bootinfo-amiga.h
index 28b6da07874a..daad3c58d2da 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-amiga.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-amiga.h
@@ -10,15 +10,15 @@
10 * Amiga-specific tags 10 * Amiga-specific tags
11 */ 11 */
12 12
13#define BI_AMIGA_MODEL 0x8000 /* model (u_long) */ 13#define BI_AMIGA_MODEL 0x8000 /* model (__be32) */
14#define BI_AMIGA_AUTOCON 0x8001 /* AutoConfig device */ 14#define BI_AMIGA_AUTOCON 0x8001 /* AutoConfig device */
15 /* (AmigaOS struct ConfigDev) */ 15 /* (AmigaOS struct ConfigDev) */
16#define BI_AMIGA_CHIP_SIZE 0x8002 /* size of Chip RAM (u_long) */ 16#define BI_AMIGA_CHIP_SIZE 0x8002 /* size of Chip RAM (__be32) */
17#define BI_AMIGA_VBLANK 0x8003 /* VBLANK frequency (u_char) */ 17#define BI_AMIGA_VBLANK 0x8003 /* VBLANK frequency (__u8) */
18#define BI_AMIGA_PSFREQ 0x8004 /* power supply frequency (u_char) */ 18#define BI_AMIGA_PSFREQ 0x8004 /* power supply frequency (__u8) */
19#define BI_AMIGA_ECLOCK 0x8005 /* EClock frequency (u_long) */ 19#define BI_AMIGA_ECLOCK 0x8005 /* EClock frequency (__be32) */
20#define BI_AMIGA_CHIPSET 0x8006 /* native chipset present (u_long) */ 20#define BI_AMIGA_CHIPSET 0x8006 /* native chipset present (__be32) */
21#define BI_AMIGA_SERPER 0x8007 /* serial port period (u_short) */ 21#define BI_AMIGA_SERPER 0x8007 /* serial port period (__be16) */
22 22
23 23
24 /* 24 /*
diff --git a/arch/m68k/include/uapi/asm/bootinfo-apollo.h b/arch/m68k/include/uapi/asm/bootinfo-apollo.h
index 69923697e131..a93e0af1c6fe 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-apollo.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-apollo.h
@@ -10,7 +10,7 @@
10 * Apollo-specific tags 10 * Apollo-specific tags
11 */ 11 */
12 12
13#define BI_APOLLO_MODEL 0x8000 /* model (u_long) */ 13#define BI_APOLLO_MODEL 0x8000 /* model (__be32) */
14 14
15 15
16 /* 16 /*
diff --git a/arch/m68k/include/uapi/asm/bootinfo-atari.h b/arch/m68k/include/uapi/asm/bootinfo-atari.h
index cca0a83fc0e5..a817854049bb 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-atari.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-atari.h
@@ -10,8 +10,8 @@
10 * Atari-specific tags 10 * Atari-specific tags
11 */ 11 */
12 12
13#define BI_ATARI_MCH_COOKIE 0x8000 /* _MCH cookie from TOS (u_long) */ 13#define BI_ATARI_MCH_COOKIE 0x8000 /* _MCH cookie from TOS (__be32) */
14#define BI_ATARI_MCH_TYPE 0x8001 /* special machine type (u_long) */ 14#define BI_ATARI_MCH_TYPE 0x8001 /* special machine type (__be32) */
15 15
16 16
17 /* 17 /*
diff --git a/arch/m68k/include/uapi/asm/bootinfo-hp300.h b/arch/m68k/include/uapi/asm/bootinfo-hp300.h
index 08530e12d4c3..c90cb71ed89a 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-hp300.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-hp300.h
@@ -10,9 +10,9 @@
10 * HP9000/300-specific tags 10 * HP9000/300-specific tags
11 */ 11 */
12 12
13#define BI_HP300_MODEL 0x8000 /* model (u_long) */ 13#define BI_HP300_MODEL 0x8000 /* model (__be32) */
14#define BI_HP300_UART_SCODE 0x8001 /* UART select code (u_long) */ 14#define BI_HP300_UART_SCODE 0x8001 /* UART select code (__be32) */
15#define BI_HP300_UART_ADDR 0x8002 /* phys. addr of UART (u_long) */ 15#define BI_HP300_UART_ADDR 0x8002 /* phys. addr of UART (__be32) */
16 16
17 17
18 /* 18 /*
diff --git a/arch/m68k/include/uapi/asm/bootinfo-mac.h b/arch/m68k/include/uapi/asm/bootinfo-mac.h
index 971046f49bb9..b44ff73898a9 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-mac.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-mac.h
@@ -7,7 +7,7 @@
7 7
8 8
9 /* 9 /*
10 * Macintosh-specific tags (all u_long) 10 * Macintosh-specific tags (all __be32)
11 */ 11 */
12 12
13#define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */ 13#define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */
diff --git a/arch/m68k/include/uapi/asm/bootinfo-vme.h b/arch/m68k/include/uapi/asm/bootinfo-vme.h
index 13ba5e19fe24..a135eb41d672 100644
--- a/arch/m68k/include/uapi/asm/bootinfo-vme.h
+++ b/arch/m68k/include/uapi/asm/bootinfo-vme.h
@@ -6,11 +6,14 @@
6#define _UAPI_ASM_M68K_BOOTINFO_VME_H 6#define _UAPI_ASM_M68K_BOOTINFO_VME_H
7 7
8 8
9#include <linux/types.h>
10
11
9 /* 12 /*
10 * VME-specific tags 13 * VME-specific tags
11 */ 14 */
12 15
13#define BI_VME_TYPE 0x8000 /* VME sub-architecture (u_long) */ 16#define BI_VME_TYPE 0x8000 /* VME sub-architecture (__be32) */
14#define BI_VME_BRDINFO 0x8001 /* VME board information (struct) */ 17#define BI_VME_BRDINFO 0x8001 /* VME board information (struct) */
15 18
16 19
@@ -43,13 +46,13 @@
43 46
44typedef struct { 47typedef struct {
45 char bdid[4]; 48 char bdid[4];
46 u_char rev, mth, day, yr; 49 __u8 rev, mth, day, yr;
47 u_short size, reserved; 50 __be16 size, reserved;
48 u_short brdno; 51 __be16 brdno;
49 char brdsuffix[2]; 52 char brdsuffix[2];
50 u_long options; 53 __be32 options;
51 u_short clun, dlun, ctype, dnum; 54 __be16 clun, dlun, ctype, dnum;
52 u_long option2; 55 __be32 option2;
53} t_bdid, *p_bdid; 56} t_bdid, *p_bdid;
54 57
55#endif /* __ASSEMBLY__ */ 58#endif /* __ASSEMBLY__ */
diff --git a/arch/m68k/include/uapi/asm/bootinfo.h b/arch/m68k/include/uapi/asm/bootinfo.h
index 9d64599d7bf5..cdeb26a015b0 100644
--- a/arch/m68k/include/uapi/asm/bootinfo.h
+++ b/arch/m68k/include/uapi/asm/bootinfo.h
@@ -12,6 +12,9 @@
12#define _UAPI_ASM_M68K_BOOTINFO_H 12#define _UAPI_ASM_M68K_BOOTINFO_H
13 13
14 14
15#include <linux/types.h>
16
17
15#ifndef __ASSEMBLY__ 18#ifndef __ASSEMBLY__
16 19
17 /* 20 /*
@@ -28,15 +31,15 @@
28 */ 31 */
29 32
30struct bi_record { 33struct bi_record {
31 unsigned short tag; /* tag ID */ 34 __be16 tag; /* tag ID */
32 unsigned short size; /* size of record (in bytes) */ 35 __be16 size; /* size of record (in bytes) */
33 unsigned long data[0]; /* data */ 36 __be32 data[0]; /* data */
34}; 37};
35 38
36 39
37struct mem_info { 40struct mem_info {
38 unsigned long addr; /* physical address of memory chunk */ 41 __be32 addr; /* physical address of memory chunk */
39 unsigned long size; /* length of memory chunk (in bytes) */ 42 __be32 size; /* length of memory chunk (in bytes) */
40}; 43};
41 44
42#endif /* __ASSEMBLY__ */ 45#endif /* __ASSEMBLY__ */
@@ -50,10 +53,10 @@ struct mem_info {
50 */ 53 */
51 54
52#define BI_LAST 0x0000 /* last record (sentinel) */ 55#define BI_LAST 0x0000 /* last record (sentinel) */
53#define BI_MACHTYPE 0x0001 /* machine type (u_long) */ 56#define BI_MACHTYPE 0x0001 /* machine type (__be32) */
54#define BI_CPUTYPE 0x0002 /* cpu type (u_long) */ 57#define BI_CPUTYPE 0x0002 /* cpu type (__be32) */
55#define BI_FPUTYPE 0x0003 /* fpu type (u_long) */ 58#define BI_FPUTYPE 0x0003 /* fpu type (__be32) */
56#define BI_MMUTYPE 0x0004 /* mmu type (u_long) */ 59#define BI_MMUTYPE 0x0004 /* mmu type (__be32) */
57#define BI_MEMCHUNK 0x0005 /* memory chunk address and size */ 60#define BI_MEMCHUNK 0x0005 /* memory chunk address and size */
58 /* (struct mem_info) */ 61 /* (struct mem_info) */
59#define BI_RAMDISK 0x0006 /* ramdisk address and size */ 62#define BI_RAMDISK 0x0006 /* ramdisk address and size */
@@ -157,11 +160,11 @@ struct mem_info {
157#ifndef __ASSEMBLY__ 160#ifndef __ASSEMBLY__
158 161
159struct bootversion { 162struct bootversion {
160 unsigned short branch; 163 __be16 branch;
161 unsigned long magic; 164 __be32 magic;
162 struct { 165 struct {
163 unsigned long machtype; 166 __be32 machtype;
164 unsigned long version; 167 __be32 version;
165 } machversions[0]; 168 } machversions[0];
166} __packed; 169} __packed;
167 170