Add MODULE_DEPEND entries so some of these drivers can eventually be

loaded separately from ACPI (i.e., embedded use).
This commit is contained in:
njl 2004-04-09 18:14:32 +00:00
parent 2117917453
commit 9acc8ad69e
13 changed files with 14 additions and 1 deletions

View File

@ -83,6 +83,7 @@ static driver_t acpi_acad_driver = {
static devclass_t acpi_acad_devclass;
DRIVER_MODULE(acpi_acad, acpi, acpi_acad_driver, acpi_acad_devclass, 0, 0);
MODULE_DEPEND(acpi_acad, acpi, 1, 1, 1);
static void
acpi_acad_get_status(void *context)

View File

@ -83,6 +83,7 @@ static driver_t acpi_button_driver = {
static devclass_t acpi_button_devclass;
DRIVER_MODULE(acpi_button, acpi, acpi_button_driver, acpi_button_devclass,
0, 0);
MODULE_DEPEND(acpi_button, acpi, 1, 1, 1);
static int
acpi_button_probe(device_t dev)

View File

@ -110,6 +110,7 @@ static driver_t acpi_cmbat_driver = {
static devclass_t acpi_cmbat_devclass;
DRIVER_MODULE(acpi_cmbat, acpi, acpi_cmbat_driver, acpi_cmbat_devclass, 0, 0);
MODULE_DEPEND(acpi_cmbat, acpi, 1, 1, 1);
static int
acpi_cmbat_info_expired(struct timespec *lastupdated)

View File

@ -184,6 +184,7 @@ static driver_t acpi_cpu_driver = {
static devclass_t acpi_cpu_devclass;
DRIVER_MODULE(acpi_cpu, acpi, acpi_cpu_driver, acpi_cpu_devclass, 0, 0);
MODULE_DEPEND(acpi_cpu, acpi, 1, 1, 1);
static int
acpi_cpu_probe(device_t dev)

View File

@ -352,6 +352,7 @@ static driver_t acpi_ec_driver = {
static devclass_t acpi_ec_devclass;
DRIVER_MODULE(acpi_ec, acpi, acpi_ec_driver, acpi_ec_devclass, 0, 0);
MODULE_DEPEND(acpi_ec, acpi, 1, 1, 1);
/*
* Look for an ECDT and if we find one, set up default GPE and

View File

@ -88,6 +88,7 @@ static driver_t acpi_isab_driver = {
};
DRIVER_MODULE(acpi_isab, acpi, acpi_isab_driver, isab_devclass, 0, 0);
MODULE_DEPEND(acpi_isab, acpi, 1, 1, 1);
static int
acpi_isab_probe(device_t dev)

View File

@ -75,6 +75,7 @@ static driver_t acpi_lid_driver = {
static devclass_t acpi_lid_devclass;
DRIVER_MODULE(acpi_lid, acpi, acpi_lid_driver, acpi_lid_devclass, 0, 0);
MODULE_DEPEND(acpi_lid, acpi, 1, 1, 1);
static int
acpi_lid_probe(device_t dev)

View File

@ -123,8 +123,9 @@ static driver_t acpi_pci_driver = {
};
DRIVER_MODULE(acpi_pci, pcib, acpi_pci_driver, pci_devclass, 0, 0);
MODULE_VERSION(acpi_pci, 1);
MODULE_DEPEND(acpi_pci, acpi, 1, 1, 1);
MODULE_DEPEND(acpi_pci, pci, 1, 1, 1);
MODULE_VERSION(acpi_pci, 1);
static int
acpi_pci_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)

View File

@ -110,6 +110,7 @@ static driver_t acpi_pcib_acpi_driver = {
};
DRIVER_MODULE(acpi_pcib, acpi, acpi_pcib_acpi_driver, pcib_devclass, 0, 0);
MODULE_DEPEND(acpi_pcib, acpi, 1, 1, 1);
static int
acpi_pcib_acpi_probe(device_t dev)

View File

@ -106,6 +106,7 @@ static driver_t acpi_pcib_pci_driver = {
};
DRIVER_MODULE(acpi_pcib, pci, acpi_pcib_pci_driver, pcib_devclass, 0, 0);
MODULE_DEPEND(acpi_pcib, acpi, 1, 1, 1);
static int
acpi_pcib_pci_probe(device_t dev)

View File

@ -568,6 +568,7 @@ static driver_t acpi_sysresource_driver = {
static devclass_t acpi_sysresource_devclass;
DRIVER_MODULE(acpi_sysresource, acpi, acpi_sysresource_driver,
acpi_sysresource_devclass, 0, 0);
MODULE_DEPEND(acpi_sysresource, acpi, 1, 1, 1);
static int
acpi_sysresource_probe(device_t dev)

View File

@ -137,6 +137,7 @@ static driver_t acpi_tz_driver = {
static devclass_t acpi_tz_devclass;
DRIVER_MODULE(acpi_tz, acpi, acpi_tz_driver, acpi_tz_devclass, 0, 0);
MODULE_DEPEND(acpi_tz, acpi, 1, 1, 1);
static struct sysctl_ctx_list acpi_tz_sysctl_ctx;
static struct sysctl_oid *acpi_tz_sysctl_tree;

View File

@ -87,6 +87,7 @@ static driver_t acpi_timer_driver = {
static devclass_t acpi_timer_devclass;
DRIVER_MODULE(acpi_timer, acpi, acpi_timer_driver, acpi_timer_devclass, 0, 0);
MODULE_DEPEND(acpi_timer, acpi, 1, 1, 1);
static struct timecounter acpi_timer_timecounter = {
acpi_timer_get_timecount_safe,