[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-24
Subject:    ACPI: Add support for HPET tables (Andi Kleen)
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2002-09-27 21:39:22
[Download RAW message or body]

ChangeSet 1.676.8.4, 2002/09/27 14:39:22-07:00, agrover@groveronline.com

	ACPI: Add support for HPET tables (Andi Kleen)


# This patch includes the following deltas:
#	           ChangeSet	1.676.8.3 -> 1.676.8.4
#	include/linux/acpi.h	1.9     -> 1.10   
#	drivers/acpi/tables.c	1.5     -> 1.6    
#

 drivers/acpi/tables.c |    5 +++--
 include/linux/acpi.h  |   21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)


diff -Nru a/drivers/acpi/tables.c b/drivers/acpi/tables.c
--- a/drivers/acpi/tables.c	Fri Jun 20 14:22:54 2003
+++ b/drivers/acpi/tables.c	Fri Jun 20 14:22:54 2003
@@ -55,7 +55,8 @@
 	[ACPI_SPCR]		= "SPCR",
 	[ACPI_SRAT]		= "SRAT",
 	[ACPI_SSDT]		= "SSDT",
-	[ACPI_SPMI]		= "SPMI"
+	[ACPI_SPMI]		= "SPMI",
+	[ACPI_HPET]		= "HPET"
 };
 
 /* System Description Table (RSDT/XSDT) */
@@ -320,7 +321,7 @@
 			handler(entry);
 		}
 		entry = (acpi_table_entry_header *)
-			((unsigned long) entry += entry->length);
+			((unsigned long) entry + entry->length);
 	}
 
 	return count;
diff -Nru a/include/linux/acpi.h b/include/linux/acpi.h
--- a/include/linux/acpi.h	Fri Jun 20 14:22:54 2003
+++ b/include/linux/acpi.h	Fri Jun 20 14:22:54 2003
@@ -228,6 +228,26 @@
 	ACPI_INTERRUPT_COUNT
 };
 
+#define	ACPI_SPACE_MEM		0
+
+struct acpi_gen_regaddr {
+	u8  space_id;
+	u8  bit_width;
+	u8  bit_offset;
+	u8  resv;
+	u32 addrl;
+	u32 addrh;
+} __attribute__ ((packed));
+
+struct acpi_table_hpet {
+	struct acpi_table_header header;
+	u32 id;
+	struct acpi_gen_regaddr addr;
+	u8 number;
+	u16 min_tick;
+	u8 page_protect;
+} __attribute__ ((packed));
+
 /*
  * System Resource Affinity Table (SRAT)
  *   see http://www.microsoft.com/hwdev/design/srat.htm
@@ -333,6 +353,7 @@
 	ACPI_SRAT,
 	ACPI_SSDT,
 	ACPI_SPMI,
+	ACPI_HPET,
 	ACPI_TABLE_COUNT
 };
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic