2 * This file is part of the coreboot project.
4 * Copyright (C) 2009 Rudolf Marek <r.marek@assembler.cz>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
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.
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
38 void acpigen_patch_len(int len);
39 void acpigen_set_current(char *curr);
40 char *acpigen_get_current(void);
41 int acpigen_write_package(int nr_el);
42 int acpigen_write_byte(unsigned int data);
43 int acpigen_emit_byte(unsigned char data);
44 int acpigen_emit_stream(const char *data, int size);
45 int acpigen_emit_namestring(const char *namepath);
46 int acpigen_write_dword(unsigned int data);
47 int acpigen_write_qword(uint64_t data);
48 int acpigen_write_name(const char *name);
49 int acpigen_write_name_dword(const char *name, uint32_t val);
50 int acpigen_write_name_qword(const char *name, uint64_t val);
51 int acpigen_write_name_byte(const char *name, uint8_t val);
52 int acpigen_write_scope(const char *name);
53 int acpigen_write_PPC(u8 nr);
54 int acpigen_write_empty_PCT(void);
55 int acpigen_write_PSS_package(u32 coreFreq, u32 power, u32 transLat, u32 busmLat,
56 u32 control, u32 status);
57 typedef enum { SW_ALL=0xfc, SW_ANY=0xfd, HW_ALL=0xfe } PSD_coord;
58 int acpigen_write_PSD_package(u32 domain, u32 numprocs, PSD_coord coordtype);
59 int acpigen_write_CST_package(struct cst_entry *entry, int nentries);
60 int acpigen_write_processor(u8 cpuindex, u32 pblock_addr, u8 pblock_len);
61 int acpigen_write_mem32fixed(int readwrite, u32 base, u32 size);
62 int acpigen_write_io16(u16 min, u16 max, u8 align, u8 len, u8 decode16);
63 int acpigen_write_register(int type, int width, int offset, int addrsize, u64 address);
64 int acpigen_write_resourcetemplate_header(void);
65 int acpigen_write_resourcetemplate_footer(int len);
66 int acpigen_write_mainboard_resource_template(void);
67 int acpigen_write_mainboard_resources(const char *scope, const char *name);
69 int get_cst_entries(struct cst_entry **) __attribute__((weak));