-/* $OpenBSD: acpi.c,v 1.434 2024/07/14 10:50:39 kettenis Exp $ */
+/* $OpenBSD: acpi.c,v 1.435 2024/07/14 13:58:57 jmatthew Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
int acpi_pci_notify(struct aml_node *, int, void *);
int acpi_submatch(struct device *, void *, void *);
+int acpi_noprint(void *, const char *);
int acpi_print(void *, const char *);
void acpi_map_pmregs(struct acpi_softc *);
return ((*cf->cf_attach->ca_match)(parent, match, aux));
}
+int
+acpi_noprint(void *aux, const char *pnp)
+{
+ return (QUIET);
+}
+
int
acpi_print(void *aux, const char *pnp)
{
NULL
};
+/* Overly abundant devices to avoid printing details for */
+const char *acpi_quiet_hids[] = {
+ "ACPI0007",
+ NULL
+};
+
void
acpi_attach_deps(struct acpi_softc *sc, struct aml_node *node)
{
if (!node->parent->attached) {
node->parent->attached = 1;
- config_found(self, &aaa, acpi_print);
+ if (acpi_matchhids(&aaa, acpi_quiet_hids, "none"))
+ config_found(self, &aaa, acpi_noprint);
+ else
+ config_found(self, &aaa, acpi_print);
}
return (0);