Skip to content

Commit 1cf70ae

Browse files
changbindurafaeljw
authored andcommitted
Documentation: ACPI: move osi.txt to firmware-guide/acpi and convert to reST
This converts the plain text documentation to reStructuredText format and adds it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du <changbin.du@gmail.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent c24bc66 commit 1cf70ae

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎Documentation/firmware-guide/acpi/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ ACPI Support
99

1010
namespace
1111
enumeration
12+
osi
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
==========================
14
ACPI _OSI and _REV methods
2-
--------------------------
5+
==========================
36

47
An ACPI BIOS can use the "Operating System Interfaces" method (_OSI)
58
to find out what the operating system supports. Eg. If BIOS
@@ -14,7 +17,7 @@ This document explains how and why the BIOS and Linux should use these methods.
1417
It also explains how and why they are widely misused.
1518

1619
How to use _OSI
17-
---------------
20+
===============
1821

1922
Linux runs on two groups of machines -- those that are tested by the OEM
2023
to be compatible with Linux, and those that were never tested with Linux,
@@ -62,7 +65,7 @@ the string when that support is added to the kernel.
6265
That was easy. Read on, to find out how to do it wrong.
6366

6467
Before _OSI, there was _OS
65-
--------------------------
68+
==========================
6669

6770
ACPI 1.0 specified "_OS" as an
6871
"object that evaluates to a string that identifies the operating system."
@@ -96,7 +99,7 @@ That is the *only* viable strategy, as that is what modern Windows does,
9699
and so doing otherwise could steer the BIOS down an untested path.
97100

98101
_OSI is born, and immediately misused
99-
--------------------------------------
102+
=====================================
100103

101104
With _OSI, the *BIOS* provides the string describing an interface,
102105
and asks the OS: "YES/NO, are you compatible with this interface?"
@@ -144,7 +147,7 @@ catastrophic failure resulting from the BIOS taking paths that
144147
were never validated under *any* OS.
145148

146149
Do not use _REV
147-
---------------
150+
===============
148151

149152
Since _OSI("Linux") went away, some BIOS writers used _REV
150153
to support Linux and Windows differences in the same BIOS.
@@ -164,7 +167,7 @@ from mid-2015 onward. The ACPI specification will also be updated
164167
to reflect that _REV is deprecated, and always returns 2.
165168

166169
Apple Mac and _OSI("Darwin")
167-
----------------------------
170+
============================
168171

169172
On Apple's Mac platforms, the ACPI BIOS invokes _OSI("Darwin")
170173
to determine if the machine is running Apple OSX.

0 commit comments

Comments
 (0)