--- src/sys/dev/acpica5/acdragonfly.h 2004/07/05 00:07:35 1.2 +++ src/sys/dev/acpica5/acdragonfly.h 2007/01/17 17:31:19 1.3 @@ -1,7 +1,7 @@ /****************************************************************************** * * Name: acfreebsd.h - OS specific defines, etc. - * $Revision: 1.2 $ + * $Revision: 1.3 $ * $DragonFly$ * *****************************************************************************/ @@ -121,8 +121,10 @@ /* DragonFly uses GCC */ #include +#include #include +#define ACPI_UINTPTR_T uintptr_t #ifdef _KERNEL #include "opt_acpi.h" #endif @@ -150,6 +152,13 @@ #endif /* DDB */ #endif /* ACPI_DEBUG_OUTPUT */ +#define ACPI_SPINLOCK struct acpi_spinlock * +struct acpi_spinlock; + +#ifndef ACPI_USE_LOCAL_CACHE +#define ACPI_CACHE_T struct acpicache +struct acpicache; +#endif #else /* _KERNEL */ /* Not building kernel code, so use libc */ @@ -199,4 +208,5 @@ strstr(char *s, char *find) } #endif /* _KERNEL */ +#define inline __inline #endif /* __ACDRAGONFLY_H_ */