diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2011-04-04 20:14:45 +0200 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-04-04 20:14:45 +0200 |
commit | 18a406bb082e992691cf50df5f984dbd1cd6082b (patch) | |
tree | b2f562f6b7c1599ddac9b82ec919551c887b674c | |
parent | c09eb315a9c426bc9fbb7bfe036648befb65fbd7 (diff) | |
download | syslinux-18a406bb082e992691cf50df5f984dbd1cd6082b.tar.gz |
hdt: flags_to_string is now part of the acpi code
This code is now generic, let's remove it from hdt.
-rw-r--r-- | com32/hdt/hdt-cli-acpi.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/com32/hdt/hdt-cli-acpi.c b/com32/hdt/hdt-cli-acpi.c index 1b608c26..76f54dfa 100644 --- a/com32/hdt/hdt-cli-acpi.c +++ b/com32/hdt/hdt-cli-acpi.c @@ -158,25 +158,6 @@ static void show_local_apic(s_madt * madt) } } -/* M1PS flags have to be interpreted as strings */ -static char *flags_to_string(char *buffer, uint16_t flags) -{ - memset(buffer, 0, sizeof(buffer)); - strcpy(buffer, "default"); - if ((flags & POLARITY_ACTIVE_HIGH) == POLARITY_ACTIVE_HIGH) - strcpy(buffer, "high"); - else if ((flags & POLARITY_ACTIVE_LOW) == POLARITY_ACTIVE_LOW) - strcpy(buffer, "low"); - if ((flags & TRIGGER_EDGE) == TRIGGER_EDGE) - strncat(buffer, " edge", 5); - else if ((flags & TRIGGER_LEVEL) == TRIGGER_LEVEL) - strncat(buffer, " level", 6); - else - strncat(buffer, " default", 8); - - return buffer; -} - /* Display the local apic NMI configuration */ static void show_local_apic_nmi(s_madt * madt) { |