Skip to content

Commit 99da1ff

Browse files
author
Ingo Molnar
committed
x86/boot/e820: Split minimal UAPI types out into uapi/asm/e820/types.h
bootparam.h, which defines the legacy 'zeropage' boot parameter area, requires a small amount of e280 defines in the UAPI space - provide them. No change in functionality. Cc: Alex Thorlton <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Dan Williams <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Huang, Ying <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul Jackson <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Wei Yang <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 66441bd commit 99da1ff

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

arch/x86/include/asm/acpi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ extern u8 acpi_sci_flags;
5252
extern int acpi_sci_override_gsi;
5353
void acpi_pic_sci_set_trigger(unsigned int, u16);
5454

55+
struct device;
56+
5557
extern int (*__acpi_register_gsi)(struct device *dev, u32 gsi,
5658
int trigger, int polarity);
5759
extern void (*__acpi_unregister_gsi)(u32 gsi);

arch/x86/include/asm/e820/types.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#ifndef _ASM_E820_TYPES_H
22
#define _ASM_E820_TYPES_H
33

4+
#include <uapi/asm/e820/types.h>
5+
46
/* Our map: */
57
#define E820MAP 0x2d0
68

7-
/* The maximum number of entries in E820MAP: */
8-
#define E820MAX 128
9-
109
/*
1110
* The legacy E820 BIOS limits us to 128 (E820MAX) nodes due to the
1211
* constrained space in the zeropage.
@@ -68,16 +67,6 @@
6867
#ifndef __ASSEMBLY__
6968
#include <linux/types.h>
7069

71-
/*
72-
* A single E820 map entry, describing a memory range of [addr...addr+size-1],
73-
* of 'type' memory type:
74-
*/
75-
struct e820entry {
76-
__u64 addr;
77-
__u64 size;
78-
__u32 type;
79-
} __attribute__((packed));
80-
8170
/*
8271
* The whole array of E820 entries:
8372
*/

arch/x86/include/uapi/asm/bootparam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <linux/screen_info.h>
3535
#include <linux/apm_bios.h>
3636
#include <linux/edd.h>
37-
#include <asm/e820/api.h>
37+
#include <uapi/asm/e820/types.h>
3838
#include <asm/ist.h>
3939
#include <video/edid.h>
4040

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef _UAPI_ASM_E820_TYPES_H
2+
#define _UAPI_ASM_E820_TYPES_H
3+
4+
/* The maximum number of entries in E820MAP: */
5+
#define E820MAX 128
6+
7+
#ifndef __ASSEMBLY__
8+
9+
/*
10+
* A single E820 map entry, describing a memory range of [addr...addr+size-1],
11+
* of 'type' memory type:
12+
*/
13+
struct e820entry {
14+
__u64 addr;
15+
__u64 size;
16+
__u32 type;
17+
} __attribute__((packed));
18+
19+
#endif /* __ASSEMBLY__ */
20+
21+
#endif /* _UAPI_ASM_E820_TYPES_H */

0 commit comments

Comments
 (0)