[syslinux:master] acpi: Adding missing rsdt.c
syslinux-bot for Erwan Velu
erwan.velu at free.fr
Sun Feb 6 14:06:40 PST 2011
Commit-ID: 1984bfc3b603d3286d95a0d440a5bf0d3aeb49dd
Gitweb: http://syslinux.zytor.com/commit/1984bfc3b603d3286d95a0d440a5bf0d3aeb49dd
Author: Erwan Velu <erwan.velu at free.fr>
AuthorDate: Wed, 2 Dec 2009 13:04:47 +0100
Committer: Erwan Velu <erwan.velu at free.fr>
CommitDate: Fri, 4 Dec 2009 10:19:00 +0100
acpi: Adding missing rsdt.c
Impact: addding missing file
Adding missing rsdt.c file
---
com32/{hdt/hdt-ata.c => gpllib/acpi/rsdt.c} | 32 +++++++++++++++++++-------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/com32/hdt/hdt-ata.c b/com32/gpllib/acpi/rsdt.c
similarity index 73%
copy from com32/hdt/hdt-ata.c
copy to com32/gpllib/acpi/rsdt.c
index 9ba17ba..db2b201 100644
--- a/com32/hdt/hdt-ata.c
+++ b/com32/gpllib/acpi/rsdt.c
@@ -24,15 +24,29 @@
* OTHER DEALINGS IN THE SOFTWARE.
*
* -----------------------------------------------------------------------
- */
+*/
-#include <string.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <console.h>
-#include <disk/geom.h>
-#include <disk/util.h>
+#include <string.h>
+#include <memory.h>
+#include <dprintf.h>
+#include "acpi/acpi.h"
+
+int parse_rsdt(s_acpi * acpi)
+{
+ /* Let's seach for RSDT table */
+ uint8_t *q;
+
+ /* Let's start for the base address */
+ q = (uint64_t *) acpi->rsdt.address;
+
+ /* Searching for MADT with APIC signature */
+ if (memcmp(q, "RSDT", 4) == 0) {
+ s_rsdt *r = &acpi->rsdt;
+ r->valid = true;
+ q=get_acpi_description_header(q, &r->header);
+ return RSDT_TABLE_FOUND;
+ }
-#include "com32io.h"
-#include "hdt-common.h"
-#include "hdt-ata.h"
+ return -RSDT_TABLE_FOUND;
+}
More information about the Syslinux-commits
mailing list