blob: 710593c005bd8c50e0176d8d1f35048ea658d763 [file] [log] [blame]
Rudolf Marek293b5f52009-02-01 18:35:15 +00001/*
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
25void acpigen_patch_len(int len);
26void acpigen_set_current(char *curr);
27char *acpigen_get_current(void);
28int acpigen_write_package(int nr_el);
29int acpigen_write_byte(unsigned int data);
30int acpigen_emit_byte(unsigned char data);
31int acpigen_emit_stream(char *data, int size);
32int acpigen_write_dword(unsigned int data);
33int acpigen_write_name(char *name);
34int acpigen_write_name_dword(char *name, uint32_t val);
35int acpigen_write_name_byte(char *name, uint8_t val);
36int acpigen_write_scope(char *name);
37#endif