Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi acpi: remove unused acpi_quirks_osi_* functions
details: https://anonhg.NetBSD.org/src/rev/97e302eb3cbd
branches: trunk
changeset: 1016910:97e302eb3cbd
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 06 11:38:28 2020 +0000
description:
acpi: remove unused acpi_quirks_osi_* functions
diffstat:
sys/dev/acpi/acpi_quirks.c | 62 +--------------------------------------------
sys/dev/acpi/acpivar.h | 4 +--
2 files changed, 3 insertions(+), 63 deletions(-)
diffs (98 lines):
diff -r 9acb5e05d7f9 -r 97e302eb3cbd sys/dev/acpi/acpi_quirks.c
--- a/sys/dev/acpi/acpi_quirks.c Sun Dec 06 11:35:27 2020 +0000
+++ b/sys/dev/acpi/acpi_quirks.c Sun Dec 06 11:38:28 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_quirks.c,v 1.21 2020/05/04 20:06:38 jdolecek Exp $ */
+/* $NetBSD: acpi_quirks.c,v 1.22 2020/12/06 11:38:28 jmcneill Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.21 2020/05/04 20:06:38 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.22 2020/12/06 11:38:28 jmcneill Exp $");
#include "opt_acpi.h"
@@ -211,61 +211,3 @@
return 0;
}
-
-/*
- * Add or delete a string to the list that should return
- * true when _OSI is being queried. The defaults are:
- *
- * "Windows 2000" # Windows 2000
- * "Windows 2001" # Windows XP
- * "Windows 2001 SP1" # Windows XP SP1
- * "Windows 2001.1" # Windows Server 2003
- * "Windows 2001 SP2" # Windows XP SP2
- * "Windows 2001.1 SP1" # Windows Server 2003 SP1
- * "Windows 2006" # Windows Vista
- * "Windows 2006.1" # Windows Server 2008
- * "Windows 2006 SP1" # Windows Vista SP1
- * "Windows 2006 SP2" # Windows Vista SP2
- * "Windows 2009" # Windows 7 and Server 2008
- */
-int
-acpi_quirks_osi_add(const char *str)
-{
- ACPI_STATUS rv;
-
- if (str == NULL || *str == '\0')
- return EINVAL;
-
- rv = AcpiInstallInterface(__UNCONST(str));
-
- return (rv != AE_OK) ? EIO : 0;
-}
-
-int
-acpi_quirks_osi_del(const char *str)
-{
- ACPI_STATUS rv;
-
- if (str == NULL || *str == '\0')
- return EINVAL;
-
- rv = AcpiRemoveInterface(__UNCONST(str));
-
- return (rv != AE_OK) ? EIO : 0;
-}
-
-#if 0
-static void
-acpi_quirks_osi_linux(void)
-{
- (void)acpi_quirks_osi_add("Linux");
-}
-
-static void
-acpi_quirks_osi_vista(void)
-{
- (void)acpi_quirks_osi_del("Windows 2006");
- (void)acpi_quirks_osi_del("Windows 2006 SP1");
- (void)acpi_quirks_osi_del("Windows 2006 SP2");
-}
-#endif
diff -r 9acb5e05d7f9 -r 97e302eb3cbd sys/dev/acpi/acpivar.h
--- a/sys/dev/acpi/acpivar.h Sun Dec 06 11:35:27 2020 +0000
+++ b/sys/dev/acpi/acpivar.h Sun Dec 06 11:38:28 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpivar.h,v 1.82 2020/01/17 17:06:32 jmcneill Exp $ */
+/* $NetBSD: acpivar.h,v 1.83 2020/12/06 11:38:28 jmcneill Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -382,8 +382,6 @@
#define ACPI_QUIRK_OLDBIOS 0x00000010 /* BIOS date blacklisted */
int acpi_find_quirks(void);
-int acpi_quirks_osi_add(const char *);
-int acpi_quirks_osi_del(const char *);
#ifdef ACPI_DEBUG
void acpi_debug_init(void);
Home |
Main Index |
Thread Index |
Old Index