Add a MODULE_VERSION declaration. This should prevent duplicate loading
of the module, and allows other modules to depend on and link against the ACPI module. Add a sysctl that allows us to retrieve the ACPI CA version number as well.
This commit is contained in:
parent
46ab006323
commit
2f50c10b5b
@ -163,9 +163,12 @@ static driver_t acpi_driver = {
|
||||
|
||||
devclass_t acpi_devclass;
|
||||
DRIVER_MODULE(acpi, nexus, acpi_driver, acpi_devclass, acpi_modevent, 0);
|
||||
MODULE_VERSION(acpi, 100);
|
||||
|
||||
SYSCTL_INT(_debug, OID_AUTO, acpi_debug_layer, CTLFLAG_RW, &AcpiDbgLayer, 0, "");
|
||||
SYSCTL_INT(_debug, OID_AUTO, acpi_debug_level, CTLFLAG_RW, &AcpiDbgLevel, 0, "");
|
||||
static int acpi_ca_version = ACPI_CA_VERSION;
|
||||
SYSCTL_INT(_debug, OID_AUTO, acpi_ca_version, CTLFLAG_RO, &acpi_ca_version, 0, "");
|
||||
|
||||
/*
|
||||
* ACPI can only be loaded as a module by the loader; activating it after
|
||||
|
Loading…
Reference in New Issue
Block a user