diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-04-02 13:54:30 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-04-02 13:54:30 +0000 |
commit | e8c3a9bb9311c0efecbba67271f359018b5fc841 (patch) | |
tree | 0aa96760a4cd43694bab27526327eef9ffabfa20 /sys/dev | |
parent | a96f209b813a1b09f6262d9eeb0f5d3481bf779d (diff) |
Reduce dmesg spam by knocking out some acpi hardware IDs that don't need a
driver.
ok mpi@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/acpi.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 5b62494cffc..b96a0729268 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.308 2016/03/29 18:04:09 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.309 2016/04/02 13:54:29 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2753,6 +2753,23 @@ acpi_parsehid(struct aml_node *node, void *arg, char *outcdev, char *outdev, return (0); } +/* Devices for which we don't want to attach a driver */ +const char *acpi_skip_hids[] = { + "INT0800", /* Intel 82802Firmware Hub Device */ + "PNP0000", /* 8259-compatible Programmable Interrupt Controller */ + "PNP0100", /* PC-class System Timer */ + "PNP0200", /* PC-class DMA Controller */ + "PNP0800", /* Microsoft Sound System Compatible Device */ + "PNP0A03", /* PCI Bus */ + "PNP0A08", /* PCI Express Bus */ + "PNP0B00", /* AT Real-Time Clock */ + "PNP0C01", /* System Board */ + "PNP0C02", /* PNP Motherboard Resources */ + "PNP0C04", /* x87-compatible Floating Point Processing Unit */ + "PNP0C0F", /* PCI Interrupt Link Device */ + NULL +}; + int acpi_foundhid(struct aml_node *node, void *arg) { @@ -2773,7 +2790,7 @@ acpi_foundhid(struct aml_node *node, void *arg) sta = STA_PRESENT | STA_ENABLED | STA_DEV_OK | 0x1000; if ((sta & STA_PRESENT) == 0) - return 0; + return (0); memset(&aaa, 0, sizeof(aaa)); aaa.aaa_iot = sc->sc_iot; @@ -2781,6 +2798,9 @@ acpi_foundhid(struct aml_node *node, void *arg) aaa.aaa_node = node->parent; aaa.aaa_dev = dev; + if (acpi_matchhids(&aaa, acpi_skip_hids, "none")) + return (0); + #ifndef SMALL_KERNEL if (!strcmp(cdev, ACPI_DEV_MOUSE)) { for (i = 0; i < nitems(sbtn_pnp); i++) { |