diff options
author | msmith <msmith@FreeBSD.org> | 2001-09-01 22:41:53 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-09-01 22:41:53 +0000 |
commit | 2f50c10b5b95be7203fda0612de32a1569095906 (patch) | |
tree | 3575e38a01d19ab1b11c055016973a56aadf0a3c /sys | |
parent | 46ab006323dc2c9a57c5b7399582ccbdb38ec5fa (diff) | |
download | FreeBSD-src-2f50c10b5b95be7203fda0612de32a1569095906.zip FreeBSD-src-2f50c10b5b95be7203fda0612de32a1569095906.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpica/acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index fe67b1b..f34ca6a 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -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 |