* [PATCH][2.6-test4][2/6]Support for HPET based timer
@ 2003-08-28 23:43 Pallipadi, Venkatesh
0 siblings, 0 replies; only message in thread
From: Pallipadi, Venkatesh @ 2003-08-28 23:43 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel, Nakajima, Jun
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
2/6 - hpet2.patch - acpi boot time parsing changes to look for HPET
diff -purN linux-2.6.0-test4/arch/i386/kernel/acpi/boot.c linux-2.6.0-test4-hpet/arch/i386/kernel/acpi/boot.c
--- linux-2.6.0-test4/arch/i386/kernel/acpi/boot.c 2003-08-22 16:59:02.000000000 -0700
+++ linux-2.6.0-test4-hpet/arch/i386/kernel/acpi/boot.c 2003-08-28 12:18:15.000000000 -0700
@@ -269,6 +269,27 @@ acpi_scan_rsdp (
return 0;
}
+#ifdef CONFIG_HPET_TIMER
+extern unsigned long hpet_address;
+
+static int __init acpi_parse_hpet(unsigned long phys, unsigned long size)
+{
+ struct acpi_table_hpet *hpet_tbl;
+
+ hpet_tbl = __va(phys);
+
+ if (hpet_tbl->addr.space_id != ACPI_SPACE_MEM) {
+ printk(KERN_WARNING PREFIX "HPET timers must be located in "
+ "memory.\n");
+ return -1;
+ }
+
+ hpet_address = hpet_tbl->addr.addrl;
+ printk(KERN_INFO PREFIX "HPET id: %#x base: %#lx\n", hpet_tbl->id,
+ hpet_address);
+ return 0;
+}
+#endif
unsigned long __init
acpi_find_rsdp (void)
@@ -458,6 +479,9 @@ acpi_boot_init (void)
clustered_apic_check();
}
#endif
+#ifdef CONFIG_HPET_TIMER
+ acpi_table_parse(ACPI_HPET, acpi_parse_hpet);
+#endif
return 0;
}
[-- Attachment #2: hpet02.ZIP --]
[-- Type: application/x-zip-compressed, Size: 662 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-28 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-28 23:43 [PATCH][2.6-test4][2/6]Support for HPET based timer Pallipadi, Venkatesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).