acpi: remove unused acpi_quirks_osi_* functions

This commit is contained in:
jmcneill 2020-12-06 11:38:28 +00:00
parent 475cad6763
commit 7e22a6bccc
2 changed files with 3 additions and 63 deletions

View File

@ -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 @@ acpi_find_quirks(void)
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

View File

@ -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 @@ struct acpi_quirk {
#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);