diff options
author | njl <njl@FreeBSD.org> | 2003-12-09 02:45:16 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-12-09 02:45:16 +0000 |
commit | 2a9caa496cc3521e5c9352c255b827c90efb3839 (patch) | |
tree | 24e5ad5d8b4fb5681ddaa34c6ae30814c80ffe56 /sys/contrib/dev/acpica/osunixxf.c | |
parent | dc49a5b908c59c6ae7c8b069908225dd6c21c041 (diff) | |
download | FreeBSD-src-2a9caa496cc3521e5c9352c255b827c90efb3839.zip FreeBSD-src-2a9caa496cc3521e5c9352c255b827c90efb3839.tar.gz |
Import ACPI-CA 20031203
Diffstat (limited to 'sys/contrib/dev/acpica/osunixxf.c')
-rw-r--r-- | sys/contrib/dev/acpica/osunixxf.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/osunixxf.c b/sys/contrib/dev/acpica/osunixxf.c index 0e8e26b..eb42b92 100644 --- a/sys/contrib/dev/acpica/osunixxf.c +++ b/sys/contrib/dev/acpica/osunixxf.c @@ -243,8 +243,9 @@ AcpiOsTableOverride ( return (AE_BAD_PARAMETER); } + /* TODO: Add table-getting code here */ *NewTable = NULL; - return (AE_OK); + return (AE_NO_ACPI_TABLES); } @@ -455,7 +456,7 @@ AcpiOsMapMemory ( ACPI_SIZE length, void **there) { - *there = (void *) (uintptr_t) where; + *there = ACPI_TO_POINTER (where); return AE_OK; } @@ -792,6 +793,10 @@ AcpiOsStall ( UINT32 microseconds) { + if (microseconds) + { + usleep (microseconds); + } return; } @@ -815,7 +820,13 @@ AcpiOsSleep ( UINT32 milliseconds) { - usleep (((seconds * 1000) + milliseconds) * 1000); + sleep (seconds + (milliseconds / 1000)); /* Sleep for whole seconds */ + + /* + * Arg to usleep() must be less than 1,000,000 (1 second) + */ + usleep ((milliseconds % 1000) * 1000); /* Sleep for remaining usecs */ + return; } |