Removing old ACPI loader, which isn't used in Haiku.

ACPI hasn't been tested on BeOS in ages. So time to remove
old BeOS code.
This commit is contained in:
Fredrik Holmqvist
2012-09-29 12:31:24 +02:00
parent e8c6eee0ca
commit 7ba2bcac6f
3 changed files with 0 additions and 72 deletions
-1
View File
@@ -1,6 +1,5 @@
SubDir HAIKU_TOP src add-ons kernel drivers disk ;
SubInclude HAIKU_TOP src add-ons kernel drivers disk acpi_loader ;
SubInclude HAIKU_TOP src add-ons kernel drivers disk floppy ;
SubInclude HAIKU_TOP src add-ons kernel drivers disk scsi ;
SubInclude HAIKU_TOP src add-ons kernel drivers disk usb ;
@@ -1,15 +0,0 @@
SubDir HAIKU_TOP src add-ons kernel drivers disk acpi_loader ;
SetSubDirSupportedPlatformsBeOSCompatible ;
if $(TARGET_PLATFORM) != haiku {
# Needed for <ACPI.h>. Unfortunately we also get the other headers there,
# that we don't really want.
UsePublicHeaders drivers ;
}
KernelAddon acpi_loader :
acpi_loader.c
;
Depends acpi_loader : acpi ;
@@ -1,56 +0,0 @@
/*
* R5 ACPI Loader. This needs to happen as soon as possible in the boot process
* so we have to break convention and place it here.
*/
#include <KernelExport.h>
#include <Drivers.h>
#include <Errors.h>
#include <ACPI.h>
acpi_module_info *acpi;
status_t
init_hardware (void)
{
return B_OK;
}
status_t
init_driver (void)
{
return get_module(B_ACPI_MODULE_NAME, (module_info**)&acpi);
}
void
uninit_driver (void)
{
put_module(B_ACPI_MODULE_NAME);
}
static const char *acpi_loader_name[] = {
NULL
};
device_hooks acpi_loader_hooks = {
NULL, /* open */
NULL, /* close */
NULL, /* free */
NULL, /* control */
NULL, /* read */
NULL, /* write */
NULL, NULL, NULL, NULL
};
const char**
publish_devices()
{
return acpi_loader_name;
}
device_hooks*
find_device(const char* name)
{
return &acpi_loader_hooks;
}