1 #ifndef LINUXBIOS_TABLE_H
2 #define LINUXBIOS_TABLE_H
4 #include <boot/linuxbios_tables.h>
8 /* This file holds function prototypes for building the linuxbios table. */
9 unsigned long write_linuxbios_table(
10 unsigned long low_table_start, unsigned long low_table_end,
11 unsigned long rom_table_start, unsigned long rom_table_end);
13 struct lb_header *lb_table_init(unsigned long addr);
14 struct lb_record *lb_first_record(struct lb_header *header);
15 struct lb_record *lb_last_record(struct lb_header *header);
16 struct lb_record *lb_next_record(struct lb_record *rec);
17 struct lb_record *lb_new_record(struct lb_header *header);
18 struct lb_memory *lb_memory(struct lb_header *header);
19 void lb_memory_range(struct lb_memory *mem,
20 uint32_t type, uint64_t startk, uint64_t sizek);
21 struct lb_mainboard *lb_mainboard(struct lb_header *header);
22 unsigned long lb_table_fini(struct lb_header *header);
24 /* Routines to extract part so the linuxBIOS table or information
25 * from the linuxBIOS table.
27 struct lb_memory *get_lb_mem(void);
29 extern struct cmos_option_table option_table;
31 #endif /* LINUXBIOS_TABLE_H */