4 * Internal header for coreboot table access.
6 * Copyright 2017 Google Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License v2.0 as published by
10 * the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 #ifndef __COREBOOT_TABLE_H
19 #define __COREBOOT_TABLE_H
23 /* List of coreboot entry structures that is used */
31 /* Coreboot table header structure */
32 struct coreboot_table_header
{
41 /* Retrieve coreboot table entry with tag *tag* and copy it to data */
42 int coreboot_table_find(int tag
, void *data
, size_t data_size
);
44 /* Initialize coreboot table module given a pointer to iomem */
45 int coreboot_table_init(void __iomem
*ptr
);
47 /* Cleanup coreboot table module */
48 int coreboot_table_exit(void);
50 #endif /* __COREBOOT_TABLE_H */