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