710593c005bd8c50e0176d8d1f35048ea658d763
[coreboot.git] / src / arch / i386 / include / arch / acpigen.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2009 Rudolf Marek <r.marek@assembler.cz>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License v2 as published by
8  * the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19 #ifndef LIBACPI_H
20 #define LIBACPI_H
21 #include <assert.h>
22 #include <stdlib.h>
23 #include <stdint.h>
24
25 void acpigen_patch_len(int len);
26 void acpigen_set_current(char *curr);
27 char *acpigen_get_current(void);
28 int acpigen_write_package(int nr_el);
29 int acpigen_write_byte(unsigned int data);
30 int acpigen_emit_byte(unsigned char data);
31 int acpigen_emit_stream(char *data, int size);
32 int acpigen_write_dword(unsigned int data);
33 int acpigen_write_name(char *name);
34 int acpigen_write_name_dword(char *name, uint32_t val);
35 int acpigen_write_name_byte(char *name, uint8_t val);
36 int acpigen_write_scope(char *name);
37 #endif