| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
#include <acpi/acpi_osc.h> |
| 4 |
|
| 5 |
/* |
| 6 |
* Platform-Wide _OSC Operating System Capabilities |
| 7 |
* |
| 8 |
* Arg0: A Buffer containing a UUID |
| 9 |
* Arg1: An Integer containing a Revision ID of the buffer format |
| 10 |
* Arg2: An Integer containing a count of entries in Arg3 |
| 11 |
* Arg3: A Buffer containing a list of DWORD capabilities |
| 12 |
*/ |
| 13 |
Method (_OSC, 4, NotSerialized) { |
| 14 |
CreateDWordField (Arg3, 0, CDW1) |
| 15 |
If (Arg0 == ToUUID (OSC_SB_UUID)) { |
| 16 |
/* Don't mask any capability bits off. */ |
| 17 |
Return (Arg3) |
| 18 |
} Else { |
| 19 |
CDW1 |= OSC_CDW1_UNRECOGNIZED_UUID |
| 20 |
Return (Arg3) |
| 21 |
} |
| 22 |
} |