x86: Clean up coreboot_tables.h

Clean up this file a little bit:
- Remove inclusion of <linux/compiler.h>
- Use tab in the macro definition

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Bin Meng 2016-02-27 22:57:57 -08:00
parent 1329020d21
commit f2d0690e28

View File

@ -9,8 +9,6 @@
#ifndef _COREBOOT_TABLES_H
#define _COREBOOT_TABLES_H
#include <linux/compiler.h>
struct cbuint64 {
u32 lo;
u32 hi;
@ -100,7 +98,7 @@ struct cb_serial {
u32 baud;
};
#define CB_TAG_CONSOLE 0x00010
#define CB_TAG_CONSOLE 0x0010
struct cb_console {
u32 tag;
@ -115,7 +113,7 @@ struct cb_console {
#define CB_TAG_CONSOLE_SROM 4 /* OBSOLETE */
#define CB_TAG_CONSOLE_EHCI 5
#define CB_TAG_FORWARD 0x00011
#define CB_TAG_FORWARD 0x0011
struct cb_forward {
u32 tag;
@ -124,10 +122,10 @@ struct cb_forward {
};
#define CB_TAG_FRAMEBUFFER 0x0012
struct cb_framebuffer {
u32 tag;
u32 size;
u64 physical_address;
u32 x_resolution;
u32 y_resolution;
@ -145,6 +143,7 @@ struct cb_framebuffer {
#define CB_TAG_GPIO 0x0013
#define GPIO_MAX_NAME_LENGTH 16
struct cb_gpio {
u32 port;
u32 polarity;
@ -155,12 +154,12 @@ struct cb_gpio {
struct cb_gpios {
u32 tag;
u32 size;
u32 count;
struct cb_gpio gpios[0];
};
#define CB_TAG_FDT 0x0014
struct cb_fdt {
uint32_t tag;
uint32_t size; /* size of the entire entry */
@ -168,6 +167,7 @@ struct cb_fdt {
};
#define CB_TAG_VDAT 0x0015
struct cb_vdat {
uint32_t tag;
uint32_t size; /* size of the entire entry */
@ -178,6 +178,7 @@ struct cb_vdat {
#define CB_TAG_TIMESTAMPS 0x0016
#define CB_TAG_CBMEM_CONSOLE 0x0017
#define CB_TAG_MRC_CACHE 0x0018
struct cb_cbmem_tab {
uint32_t tag;
uint32_t size;
@ -185,6 +186,7 @@ struct cb_cbmem_tab {
};
#define CB_TAG_VBNV 0x0019
struct cb_vbnv {
uint32_t tag;
uint32_t size;
@ -193,6 +195,7 @@ struct cb_vbnv {
};
#define CB_TAG_CMOS_OPTION_TABLE 0x00c8
struct cb_cmos_option_table {
u32 tag;
u32 size;
@ -200,7 +203,9 @@ struct cb_cmos_option_table {
};
#define CB_TAG_OPTION 0x00c9
#define CMOS_MAX_NAME_LENGTH 32
struct cb_cmos_entries {
u32 tag;
u32 size;
@ -211,9 +216,9 @@ struct cb_cmos_entries {
u8 name[CMOS_MAX_NAME_LENGTH];
};
#define CB_TAG_OPTION_ENUM 0x00ca
#define CMOS_MAX_TEXT_LENGTH 32
struct cb_cmos_enums {
u32 tag;
u32 size;
@ -224,6 +229,7 @@ struct cb_cmos_enums {
#define CB_TAG_OPTION_DEFAULTS 0x00cb
#define CMOS_IMAGE_BUFFER_SIZE 128
struct cb_cmos_defaults {
u32 tag;
u32 size;
@ -235,6 +241,7 @@ struct cb_cmos_defaults {
#define CB_TAG_OPTION_CHECKSUM 0x00cc
#define CHECKSUM_NONE 0
#define CHECKSUM_PCBIOS 1
struct cb_cmos_checksum {
u32 tag;
u32 size;