From 3fe6b7002bf8da7ecd91c2ab4e8bfdec4e80e02f Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Fri, 9 Oct 2009 20:13:43 +0000 Subject: Add const to get rid of some warnings when passing quoted strings. Remove an unused extern declaration. Signed-off-by: Myles Watson Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4756 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/include/arch/acpi.h | 6 +++--- src/arch/i386/include/arch/acpigen.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/arch/i386/include') diff --git a/src/arch/i386/include/arch/acpi.h b/src/arch/i386/include/arch/acpi.h index f5668c343b..47a8a15947 100644 --- a/src/arch/i386/include/arch/acpi.h +++ b/src/arch/i386/include/arch/acpi.h @@ -336,9 +336,9 @@ unsigned long acpi_fill_madt(unsigned long current); unsigned long acpi_fill_mcfg(unsigned long current); unsigned long acpi_fill_srat(unsigned long current); unsigned long acpi_fill_slit(unsigned long current); -unsigned long acpi_fill_ssdt_generator(unsigned long current, char *oem_table_id); -void acpi_create_ssdt_generator(acpi_header_t *ssdt, char *oem_table_id); -void acpi_create_fadt(acpi_fadt_t *fadt,acpi_facs_t *facs,void *dsdt); +unsigned long acpi_fill_ssdt_generator(unsigned long current, const char *oem_table_id); +void acpi_create_ssdt_generator(acpi_header_t *ssdt, const char *oem_table_id); +void acpi_create_fadt(acpi_fadt_t *fadt,acpi_facs_t *facs, void *dsdt); /* These can be used by the target port */ u8 acpi_checksum(u8 *table, u32 length); diff --git a/src/arch/i386/include/arch/acpigen.h b/src/arch/i386/include/arch/acpigen.h index 63c369d6a8..e672e34578 100644 --- a/src/arch/i386/include/arch/acpigen.h +++ b/src/arch/i386/include/arch/acpigen.h @@ -28,15 +28,15 @@ char *acpigen_get_current(void); int acpigen_write_package(int nr_el); int acpigen_write_byte(unsigned int data); int acpigen_emit_byte(unsigned char data); -int acpigen_emit_stream(char *data, int size); -int acpigen_emit_namestring(char *namepath); +int acpigen_emit_stream(const char *data, int size); +int acpigen_emit_namestring(const char *namepath); int acpigen_write_dword(unsigned int data); int acpigen_write_qword(uint64_t data); -int acpigen_write_name(char *name); -int acpigen_write_name_dword(char *name, uint32_t val); -int acpigen_write_name_qword(char *name, uint64_t val); -int acpigen_write_name_byte(char *name, uint8_t val); -int acpigen_write_scope(char *name); +int acpigen_write_name(const char *name); +int acpigen_write_name_dword(const char *name, uint32_t val); +int acpigen_write_name_qword(const char *name, uint64_t val); +int acpigen_write_name_byte(const char *name, uint8_t val); +int acpigen_write_scope(const char *name); int acpigen_write_PPC(u8 nr); int acpigen_write_empty_PCT(void); int acpigen_write_PSS_package(u32 coreFreq, u32 power, u32 transLat, u32 busmLat, -- cgit v1.2.3