\hypertarget{acpiio_8h_source}{}\doxysection{acpiio.\+h}
\label{acpiio_8h_source}\index{dev/acpica/acpiio.h@{dev/acpica/acpiio.h}}
\mbox{\hyperlink{acpiio_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 1999 Takanori Watanabe <takawata@jp.freebsd.org>}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00003}00003 \textcolor{comment}{ * Copyright (c) 1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00004}00004 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00006}00006 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00007}00007 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00008}00008 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00009}00009 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00011}00011 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00012}00012 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00013}00013 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00014}00014 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00015}00015 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00016}00016 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00017}00017 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00018}00018 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00019}00019 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00020}00020 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00021}00021 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00022}00022 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00023}00023 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00024}00024 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00025}00025 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00027}00027 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00028}00028 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00029}00029 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00030}00030 \textcolor{preprocessor}{\#ifndef \_ACPIIO\_H\_}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00031}00031 \textcolor{preprocessor}{\#define \_ACPIIO\_H\_}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00033}00033 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00034}00034 \textcolor{comment}{ * Core ACPI subsystem ioctls}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00035}00035 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00036}\mbox{\hyperlink{acpiio_8h_a3b4e5d21977e5683906024e4c97b87d4}{00036}} \textcolor{preprocessor}{\#define ACPIIO\_SETSLPSTATE      \_IOW('P', 3, int) }\textcolor{comment}{/* DEPRECATED */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00038}00038 \textcolor{comment}{/* Request S1-\/5 sleep state. User is notified and then sleep proceeds. */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00039}\mbox{\hyperlink{acpiio_8h_a10490eda55e6e5986485ce443c137dcc}{00039}} \textcolor{preprocessor}{\#define ACPIIO\_REQSLPSTATE      \_IOW('P', 4, int)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00040}00040 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00041}00041 \textcolor{comment}{/* Allow suspend to continue (0) or abort it (errno). */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00042}\mbox{\hyperlink{acpiio_8h_a720c14d6e127e9c7102e0014105f6366}{00042}} \textcolor{preprocessor}{\#define ACPIIO\_ACKSLPSTATE      \_IOW('P', 5, int)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00044}\mbox{\hyperlink{structacpi__battinfo}{00044}} \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__battinfo}{acpi\_battinfo}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00045}\mbox{\hyperlink{structacpi__battinfo_a3ce54608d5ae45b03a5748d1e11c9f53}{00045}}     \textcolor{keywordtype}{int}  \mbox{\hyperlink{structacpi__battinfo_a3ce54608d5ae45b03a5748d1e11c9f53}{cap}};                                \textcolor{comment}{/* percent */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00046}\mbox{\hyperlink{structacpi__battinfo_a9bf0efcf401c1aa6768bf352395696d4}{00046}}     \textcolor{keywordtype}{int}  \mbox{\hyperlink{structacpi__battinfo_a9bf0efcf401c1aa6768bf352395696d4}{min}};                                \textcolor{comment}{/* remaining time (in minutes) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00047}\mbox{\hyperlink{structacpi__battinfo_a913820f593289b7dcc3bd8f949936bed}{00047}}     \textcolor{keywordtype}{int}  \mbox{\hyperlink{structacpi__battinfo_a913820f593289b7dcc3bd8f949936bed}{state}};                            \textcolor{comment}{/* battery state */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00048}\mbox{\hyperlink{structacpi__battinfo_a2aee05c4c1b73e2531aa919fdcb40564}{00048}}     \textcolor{keywordtype}{int}  \mbox{\hyperlink{structacpi__battinfo_a2aee05c4c1b73e2531aa919fdcb40564}{rate}};                              \textcolor{comment}{/* emptying rate */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00049}00049 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00051}00051 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00052}00052 \textcolor{comment}{ * Battery Information object.  Note that this object is deprecated in}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00053}00053 \textcolor{comment}{ * ACPI 4.0}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00054}00054 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00055}\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{00055}} \textcolor{preprocessor}{\#define ACPI\_CMBAT\_MAXSTRLEN 32}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00056}\mbox{\hyperlink{structacpi__bif}{00056}} \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bif}{acpi\_bif}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00057}\mbox{\hyperlink{structacpi__bif_af9b828d6abba013237f4590a6fe1faf9}{00057}}     uint32\_t \mbox{\hyperlink{structacpi__bif_af9b828d6abba013237f4590a6fe1faf9}{units}};                        \textcolor{comment}{/* Power Unit (mW or mA). */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00058}\mbox{\hyperlink{acpiio_8h_a022e179dfc2c6e354378e99398aa5449}{00058}} \textcolor{preprocessor}{\#define ACPI\_BIF\_UNITS\_MW       0       }\textcolor{comment}{/* Capacity in mWh, rate in mW. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00059}\mbox{\hyperlink{acpiio_8h_a712e937fefd469c3ab5ea102ed775c95}{00059}} \textcolor{preprocessor}{\#define ACPI\_BIF\_UNITS\_MA       1       }\textcolor{comment}{/* Capacity in mAh, rate in mA. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00060}\mbox{\hyperlink{structacpi__bif_a166b386e2327f4ba215d0867d8a541d1}{00060}}     uint32\_t \mbox{\hyperlink{structacpi__bif_a166b386e2327f4ba215d0867d8a541d1}{dcap}};                  \textcolor{comment}{/* Design Capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00061}\mbox{\hyperlink{structacpi__bif_a14b88f275a74f346815d7edab56888cb}{00061}}     uint32\_t \mbox{\hyperlink{structacpi__bif_a14b88f275a74f346815d7edab56888cb}{lfcap}};                        \textcolor{comment}{/* Last Full capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00062}\mbox{\hyperlink{structacpi__bif_aa0cbee415dc9e4379484b3ce119b5f39}{00062}}     uint32\_t \mbox{\hyperlink{structacpi__bif_aa0cbee415dc9e4379484b3ce119b5f39}{btech}};                        \textcolor{comment}{/* Battery Technology */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00063}\mbox{\hyperlink{structacpi__bif_a03cbdec35c6b1cef16f81099209b2c2e}{00063}}     uint32\_t \mbox{\hyperlink{structacpi__bif_a03cbdec35c6b1cef16f81099209b2c2e}{dvol}};                  \textcolor{comment}{/* Design voltage (mV) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00064}\mbox{\hyperlink{structacpi__bif_a5d41fd987706f2ee2acb117ebf0d8950}{00064}}     uint32\_t \mbox{\hyperlink{structacpi__bif_a5d41fd987706f2ee2acb117ebf0d8950}{wcap}};                  \textcolor{comment}{/* WARN capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00065}\mbox{\hyperlink{structacpi__bif_ae8cc27355a178e49be06b141e6adc8ef}{00065}}     uint32\_t \mbox{\hyperlink{structacpi__bif_ae8cc27355a178e49be06b141e6adc8ef}{lcap}};                  \textcolor{comment}{/* Low capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00066}\mbox{\hyperlink{structacpi__bif_a54d770c304fcf026cbbd9026cdce5516}{00066}}     uint32\_t \mbox{\hyperlink{structacpi__bif_a54d770c304fcf026cbbd9026cdce5516}{gra1}};                  \textcolor{comment}{/* Granularity 1 (Warn to Low) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00067}\mbox{\hyperlink{structacpi__bif_afa2a4a90a33e0c1af7707702e08aa9a2}{00067}}     uint32\_t \mbox{\hyperlink{structacpi__bif_afa2a4a90a33e0c1af7707702e08aa9a2}{gra2}};                  \textcolor{comment}{/* Granularity 2 (Full to Warn) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00068}\mbox{\hyperlink{structacpi__bif_a12fbade897e0a784ba9fd1ee1ff7227b}{00068}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bif_a12fbade897e0a784ba9fd1ee1ff7227b}{model}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];  \textcolor{comment}{/* model identifier */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00069}\mbox{\hyperlink{structacpi__bif_ac9b5e620bfa25f83a04ae4420f6bf0b7}{00069}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bif_ac9b5e620bfa25f83a04ae4420f6bf0b7}{serial}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];        \textcolor{comment}{/* Serial number */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00070}\mbox{\hyperlink{structacpi__bif_ac329aab86124dd7c6cec6eb1813a64ce}{00070}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bif_ac329aab86124dd7c6cec6eb1813a64ce}{type}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];    \textcolor{comment}{/* Type */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00071}\mbox{\hyperlink{structacpi__bif_a092806c26b52df1199211963602120ed}{00071}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bif_a092806c26b52df1199211963602120ed}{oeminfo}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];      \textcolor{comment}{/* OEM information */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00072}00072 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00074}00074 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00075}00075 \textcolor{comment}{ * Members in acpi\_bix are reordered so that the first part is compatible}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00076}00076 \textcolor{comment}{ * with acpi\_bif.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00077}00077 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00078}\mbox{\hyperlink{structacpi__bix}{00078}} \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bix}{acpi\_bix}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00079}00079 \textcolor{comment}{/* \_BIF-\/compatible */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00080}\mbox{\hyperlink{structacpi__bix_ad1db2955d19146e3f7fee7c1ce35530f}{00080}}     uint32\_t \mbox{\hyperlink{structacpi__bix_ad1db2955d19146e3f7fee7c1ce35530f}{units}};                        \textcolor{comment}{/* Power Unit (mW or mA). */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00081}\mbox{\hyperlink{acpiio_8h_a2ef812dcc11e3e033e15115076d2553c}{00081}} \textcolor{preprocessor}{\#define ACPI\_BIX\_UNITS\_MW       0       }\textcolor{comment}{/* Capacity in mWh, rate in mW. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00082}\mbox{\hyperlink{acpiio_8h_a27b4e96270fad8a87860c6b0c04b9af3}{00082}} \textcolor{preprocessor}{\#define ACPI\_BIX\_UNITS\_MA       1       }\textcolor{comment}{/* Capacity in mAh, rate in mA. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00083}\mbox{\hyperlink{structacpi__bix_ae6091f4907b56178a0e4820887103f4c}{00083}}     uint32\_t \mbox{\hyperlink{structacpi__bix_ae6091f4907b56178a0e4820887103f4c}{dcap}};                  \textcolor{comment}{/* Design Capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00084}\mbox{\hyperlink{structacpi__bix_a50f42142d486876f8c794adb9d1624b6}{00084}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a50f42142d486876f8c794adb9d1624b6}{lfcap}};                        \textcolor{comment}{/* Last Full capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00085}\mbox{\hyperlink{structacpi__bix_a9e19dbd89577e3d4be787d48001b9816}{00085}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a9e19dbd89577e3d4be787d48001b9816}{btech}};                        \textcolor{comment}{/* Battery Technology */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00086}\mbox{\hyperlink{structacpi__bix_a9c3a215fa3c100b031888647f0cf66cc}{00086}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a9c3a215fa3c100b031888647f0cf66cc}{dvol}};                  \textcolor{comment}{/* Design voltage (mV) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00087}\mbox{\hyperlink{structacpi__bix_afebb7de90b528346af86e45cbdbedd0c}{00087}}     uint32\_t \mbox{\hyperlink{structacpi__bix_afebb7de90b528346af86e45cbdbedd0c}{wcap}};                  \textcolor{comment}{/* WARN capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00088}\mbox{\hyperlink{structacpi__bix_acaaab14230ec8d6a83bfcc29da124ce8}{00088}}     uint32\_t \mbox{\hyperlink{structacpi__bix_acaaab14230ec8d6a83bfcc29da124ce8}{lcap}};                  \textcolor{comment}{/* Low capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00089}\mbox{\hyperlink{structacpi__bix_aaf2dd362a43311355a1ebbab02832116}{00089}}     uint32\_t \mbox{\hyperlink{structacpi__bix_aaf2dd362a43311355a1ebbab02832116}{gra1}};                  \textcolor{comment}{/* Granularity 1 (Warn to Low) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00090}\mbox{\hyperlink{structacpi__bix_a4fa921f1b5c81656407e3124c2e6da89}{00090}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a4fa921f1b5c81656407e3124c2e6da89}{gra2}};                  \textcolor{comment}{/* Granularity 2 (Full to Warn) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00091}\mbox{\hyperlink{structacpi__bix_af2ca60e763bfb6b5be3f5cf24dabac54}{00091}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_af2ca60e763bfb6b5be3f5cf24dabac54}{model}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];  \textcolor{comment}{/* model identifier */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00092}\mbox{\hyperlink{structacpi__bix_a4e76bd910660c2af5457797347572554}{00092}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_a4e76bd910660c2af5457797347572554}{serial}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];        \textcolor{comment}{/* Serial number */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00093}\mbox{\hyperlink{structacpi__bix_ae90164e0395571882bbca30dc2c7910f}{00093}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_ae90164e0395571882bbca30dc2c7910f}{type}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];    \textcolor{comment}{/* Type */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00094}\mbox{\hyperlink{structacpi__bix_a3810cac72330e02c2516c2efb854e8f0}{00094}}     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_a3810cac72330e02c2516c2efb854e8f0}{oeminfo}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];      \textcolor{comment}{/* OEM information */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00095}00095     \textcolor{comment}{/* ACPI 4.0 or later */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00096}\mbox{\hyperlink{structacpi__bix_a82e45e12567627533fb655812d88ba87}{00096}}     uint16\_t \mbox{\hyperlink{structacpi__bix_a82e45e12567627533fb655812d88ba87}{rev}};                    \textcolor{comment}{/* Revision */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00097}\mbox{\hyperlink{acpiio_8h_a5205dc4d8236790ced9d81dd62f6f7d2}{00097}} \textcolor{preprocessor}{\#define ACPI\_BIX\_REV\_0          0       }\textcolor{comment}{/* ACPI 4.0 \_BIX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00098}\mbox{\hyperlink{acpiio_8h_a347feed21e2959b7c85889683b41863e}{00098}} \textcolor{preprocessor}{\#define ACPI\_BIX\_REV\_1          1       }\textcolor{comment}{/* ACPI 6.0 \_BIX */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00099}\mbox{\hyperlink{acpiio_8h_ac0c556e3c3c8bc5c13b3d2a1c3d321de}{00099}} \textcolor{preprocessor}{\#define ACPI\_BIX\_REV\_BIF        0xffff  }\textcolor{comment}{/* \_BIF */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00100}\mbox{\hyperlink{acpiio_8h_aa20360f5caf1ff2a1ef82cceb3851e4e}{00100}} \textcolor{preprocessor}{\#define ACPI\_BIX\_REV\_MIN\_CHECK(x, min)  \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00101}00101 \textcolor{preprocessor}{        (((min) == ACPI\_BIX\_REV\_BIF) ? ((x) == ACPI\_BIX\_REV\_BIF) : \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00102}00102 \textcolor{preprocessor}{            (((x) == ACPI\_BIX\_REV\_BIF) ? 0 : ((x) >= (min))))}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00103}\mbox{\hyperlink{structacpi__bix_a7c60bc6802ccdd85054c595f0ea43849}{00103}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a7c60bc6802ccdd85054c595f0ea43849}{cycles}};                      \textcolor{comment}{/* Cycle Count */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00104}\mbox{\hyperlink{structacpi__bix_a8bc23a8e5d7c10413802ede391d99d15}{00104}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a8bc23a8e5d7c10413802ede391d99d15}{accuracy}};                  \textcolor{comment}{/* Measurement Accuracy */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00105}\mbox{\hyperlink{structacpi__bix_aab81634cd2c6bf6723dfd11dba5d6c42}{00105}}     uint32\_t \mbox{\hyperlink{structacpi__bix_aab81634cd2c6bf6723dfd11dba5d6c42}{stmax}};                        \textcolor{comment}{/* Max Sampling Time */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00106}\mbox{\hyperlink{structacpi__bix_a42dca9bf635ec3b360e13f33fb3cd1db}{00106}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a42dca9bf635ec3b360e13f33fb3cd1db}{stmin}};                        \textcolor{comment}{/* Min Sampling Time */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00107}\mbox{\hyperlink{structacpi__bix_af6168794e3c887ce14e958c8074aa2e6}{00107}}     uint32\_t \mbox{\hyperlink{structacpi__bix_af6168794e3c887ce14e958c8074aa2e6}{aimax}};                        \textcolor{comment}{/* Max Average Interval */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00108}\mbox{\hyperlink{structacpi__bix_ad9827e83027b49b703b949c47f9c153c}{00108}}     uint32\_t \mbox{\hyperlink{structacpi__bix_ad9827e83027b49b703b949c47f9c153c}{aimin}};                        \textcolor{comment}{/* Min Average Interval */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00109}00109     \textcolor{comment}{/* ACPI 6.0 or later */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00110}\mbox{\hyperlink{structacpi__bix_a248e4f8545566e3d6130bdffb5a099cf}{00110}}     uint32\_t \mbox{\hyperlink{structacpi__bix_a248e4f8545566e3d6130bdffb5a099cf}{scap}};                  \textcolor{comment}{/* Battery Swapping Capability */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00111}\mbox{\hyperlink{acpiio_8h_aef44d0c8c9b18d856cd2c85356d5338d}{00111}} \textcolor{preprocessor}{\#define ACPI\_BIX\_SCAP\_NO        0x00000000}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00112}\mbox{\hyperlink{acpiio_8h_a14e31b16dc21d5b9cf38b1ab4ec48803}{00112}} \textcolor{preprocessor}{\#define ACPI\_BIX\_SCAP\_COLD      0x00000001}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00113}\mbox{\hyperlink{acpiio_8h_ab086a059e28a2d7c14eda952777ccdbc}{00113}} \textcolor{preprocessor}{\#define ACPI\_BIX\_SCAP\_HOT       0x00000010}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00114}\mbox{\hyperlink{structacpi__bix_adc46408bf3ad566116741d8dc372ca44}{00114}}     uint8\_t \mbox{\hyperlink{structacpi__bix_adc46408bf3ad566116741d8dc372ca44}{bix\_reserved}}[58];               \textcolor{comment}{/* padding */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00115}00115 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00116}00116 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00117}00117 \textcolor{preprocessor}{\#if 0}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00118}00118 \textcolor{comment}{/* acpi\_bix in the original order just for reference */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00119}00119 \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bix}{acpi\_bix}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00120}00120     uint16\_t \mbox{\hyperlink{structacpi__bix_a82e45e12567627533fb655812d88ba87}{rev}};                    \textcolor{comment}{/* Revision */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00121}00121     uint32\_t \mbox{\hyperlink{structacpi__bix_ad1db2955d19146e3f7fee7c1ce35530f}{units}};                        \textcolor{comment}{/* Power Unit (mW or mA). */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00122}00122     uint32\_t \mbox{\hyperlink{structacpi__bix_ae6091f4907b56178a0e4820887103f4c}{dcap}};                  \textcolor{comment}{/* Design Capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00123}00123     uint32\_t \mbox{\hyperlink{structacpi__bix_a50f42142d486876f8c794adb9d1624b6}{lfcap}};                        \textcolor{comment}{/* Last Full capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00124}00124     uint32\_t \mbox{\hyperlink{structacpi__bix_a9e19dbd89577e3d4be787d48001b9816}{btech}};                        \textcolor{comment}{/* Battery Technology */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00125}00125     uint32\_t \mbox{\hyperlink{structacpi__bix_a9c3a215fa3c100b031888647f0cf66cc}{dvol}};                  \textcolor{comment}{/* Design voltage (mV) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00126}00126     uint32\_t \mbox{\hyperlink{structacpi__bix_afebb7de90b528346af86e45cbdbedd0c}{wcap}};                  \textcolor{comment}{/* Design Capacity of Warning */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00127}00127     uint32\_t \mbox{\hyperlink{structacpi__bix_acaaab14230ec8d6a83bfcc29da124ce8}{lcap}};                  \textcolor{comment}{/* Design Capacity of Low */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00128}00128     uint32\_t \mbox{\hyperlink{structacpi__bix_a7c60bc6802ccdd85054c595f0ea43849}{cycles}};                      \textcolor{comment}{/* Cycle Count */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00129}00129     uint32\_t \mbox{\hyperlink{structacpi__bix_a8bc23a8e5d7c10413802ede391d99d15}{accuracy}};                  \textcolor{comment}{/* Measurement Accuracy */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00130}00130     uint32\_t \mbox{\hyperlink{structacpi__bix_aab81634cd2c6bf6723dfd11dba5d6c42}{stmax}};                        \textcolor{comment}{/* Max Sampling Time */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00131}00131     uint32\_t \mbox{\hyperlink{structacpi__bix_a42dca9bf635ec3b360e13f33fb3cd1db}{stmin}};                        \textcolor{comment}{/* Min Sampling Time */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00132}00132     uint32\_t \mbox{\hyperlink{structacpi__bix_af6168794e3c887ce14e958c8074aa2e6}{aimax}};                        \textcolor{comment}{/* Max Average Interval */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00133}00133     uint32\_t \mbox{\hyperlink{structacpi__bix_ad9827e83027b49b703b949c47f9c153c}{aimin}};                        \textcolor{comment}{/* Min Average Interval */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00134}00134     uint32\_t \mbox{\hyperlink{structacpi__bix_aaf2dd362a43311355a1ebbab02832116}{gra1}};                  \textcolor{comment}{/* Granularity 1 (Warn to Low) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00135}00135     uint32\_t \mbox{\hyperlink{structacpi__bix_a4fa921f1b5c81656407e3124c2e6da89}{gra2}};                  \textcolor{comment}{/* Granularity 2 (Full to Warn) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00136}00136     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_af2ca60e763bfb6b5be3f5cf24dabac54}{model}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];  \textcolor{comment}{/* model identifier */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00137}00137     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_a4e76bd910660c2af5457797347572554}{serial}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];        \textcolor{comment}{/* Serial number */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00138}00138     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_ae90164e0395571882bbca30dc2c7910f}{type}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];    \textcolor{comment}{/* Type */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00139}00139     \textcolor{keywordtype}{char} \mbox{\hyperlink{structacpi__bix_a3810cac72330e02c2516c2efb854e8f0}{oeminfo}}[\mbox{\hyperlink{acpiio_8h_a5e5cdd51ef002f8d9a5432eff90f10ad}{ACPI\_CMBAT\_MAXSTRLEN}}];      \textcolor{comment}{/* OEM information */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00140}00140     uint32\_t \mbox{\hyperlink{structacpi__bix_a248e4f8545566e3d6130bdffb5a099cf}{scap}};                  \textcolor{comment}{/* Battery Swapping Capability */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00141}00141 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00142}00142 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00143}00143 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00144}\mbox{\hyperlink{structacpi__bst}{00144}} \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bst}{acpi\_bst}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00145}\mbox{\hyperlink{structacpi__bst_a81a5fe14416edaa9aae9dab5b13ab5b6}{00145}}     uint32\_t \mbox{\hyperlink{structacpi__bst_a81a5fe14416edaa9aae9dab5b13ab5b6}{state}};                        \textcolor{comment}{/* Battery State */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00146}\mbox{\hyperlink{structacpi__bst_ae6bff36faad2b632ae47cd6906d0b1bf}{00146}}     uint32\_t \mbox{\hyperlink{structacpi__bst_ae6bff36faad2b632ae47cd6906d0b1bf}{rate}};                  \textcolor{comment}{/* Present Rate */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00147}\mbox{\hyperlink{structacpi__bst_aca5d2e15dd67cc68f2b6dbda0eb381b7}{00147}}     uint32\_t \mbox{\hyperlink{structacpi__bst_aca5d2e15dd67cc68f2b6dbda0eb381b7}{cap}};                    \textcolor{comment}{/* Remaining Capacity */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00148}\mbox{\hyperlink{structacpi__bst_ae217202ccb8955157c5b6433003cd40b}{00148}}     uint32\_t \mbox{\hyperlink{structacpi__bst_ae217202ccb8955157c5b6433003cd40b}{volt}};                  \textcolor{comment}{/* Present Voltage */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00149}00149 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00150}00150 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00151}00151 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00152}00152 \textcolor{comment}{ * Note that the following definitions represent status bits for internal}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00153}00153 \textcolor{comment}{ * driver state.  The first three of them (charging, discharging and critical)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00154}00154 \textcolor{comment}{ * conveninetly conform to ACPI specification of status returned by \_BST}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00155}00155 \textcolor{comment}{ * method.  Other definitions (not present, etc) are synthetic.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00156}00156 \textcolor{comment}{ * Also note that according to the specification the charging and discharging}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00157}00157 \textcolor{comment}{ * status bits must not be set at the same time.}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00158}00158 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00159}\mbox{\hyperlink{acpiio_8h_a89967ba4271ad06c699f0b138c3dc346}{00159}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_DISCHARG         0x0001}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00160}\mbox{\hyperlink{acpiio_8h_ac2a5ef7a5e4a51a6d58ad057de542aac}{00160}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_CHARGING         0x0002}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00161}\mbox{\hyperlink{acpiio_8h_a706798fe3d061a316257c5c6ecb258fc}{00161}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_CRITICAL         0x0004}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00162}\mbox{\hyperlink{acpiio_8h_acfb5b3bf14b9a8a335fbd762f4c998be}{00162}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_INVALID                                  \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00163}00163 \textcolor{preprocessor}{    (ACPI\_BATT\_STAT\_DISCHARG | ACPI\_BATT\_STAT\_CHARGING)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00164}\mbox{\hyperlink{acpiio_8h_aa7d11d4cfd4fd717c3ae55f82fbb5fd0}{00164}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_BST\_MASK                                 \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00165}00165 \textcolor{preprocessor}{    (ACPI\_BATT\_STAT\_INVALID | ACPI\_BATT\_STAT\_CRITICAL)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00166}\mbox{\hyperlink{acpiio_8h_aadc2b8eca3dd3db94adb83d0fbc1c748}{00166}} \textcolor{preprocessor}{\#define ACPI\_BATT\_STAT\_NOT\_PRESENT      ACPI\_BATT\_STAT\_BST\_MASK}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00167}00167 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00168}00168 \textcolor{comment}{/* For backward compatibility */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00169}\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1}{00169}} \textcolor{keyword}{union }\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1}{acpi\_battery\_ioctl\_arg\_v1}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00170}\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a06e5b073dc801ace4bd50c82fdf4863f}{00170}}     \textcolor{keywordtype}{int}                  \mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a06e5b073dc801ace4bd50c82fdf4863f}{unit}};      \textcolor{comment}{/* Device unit or ACPI\_BATTERY\_ALL\_UNITS. */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00171}00171 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00172}\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a0c33ae14f923eb580102ede2039f85f5}{00172}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__battinfo}{acpi\_battinfo}} \mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a0c33ae14f923eb580102ede2039f85f5}{battinfo}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00173}00173 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00174}\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a79c981c2fe4e47a7c31ce9df07794b2f}{00174}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bif}{acpi\_bif}}      \mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a79c981c2fe4e47a7c31ce9df07794b2f}{bif}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00175}\mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a3549d163d24eff72f5103047a43b4096}{00175}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bst}{acpi\_bst}}      \mbox{\hyperlink{unionacpi__battery__ioctl__arg__v1_a3549d163d24eff72f5103047a43b4096}{bst}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00176}00176 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00177}\mbox{\hyperlink{unionacpi__battery__ioctl__arg}{00177}} \textcolor{keyword}{union }\mbox{\hyperlink{unionacpi__battery__ioctl__arg}{acpi\_battery\_ioctl\_arg}} \{}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00178}\mbox{\hyperlink{unionacpi__battery__ioctl__arg_a4ef209425f9f16b3f3604c9c167200b1}{00178}}     \textcolor{keywordtype}{int}                  \mbox{\hyperlink{unionacpi__battery__ioctl__arg_a4ef209425f9f16b3f3604c9c167200b1}{unit}};      \textcolor{comment}{/* Device unit or ACPI\_BATTERY\_ALL\_UNITS. */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00179}00179 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00180}\mbox{\hyperlink{unionacpi__battery__ioctl__arg_a18bc909276d323a2921199c5b119c496}{00180}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__battinfo}{acpi\_battinfo}} \mbox{\hyperlink{unionacpi__battery__ioctl__arg_a18bc909276d323a2921199c5b119c496}{battinfo}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00181}00181 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00182}\mbox{\hyperlink{unionacpi__battery__ioctl__arg_a5428fb1603f6660569bd82d93ed6bbfc}{00182}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bix}{acpi\_bix}}      \mbox{\hyperlink{unionacpi__battery__ioctl__arg_a5428fb1603f6660569bd82d93ed6bbfc}{bix}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00183}\mbox{\hyperlink{unionacpi__battery__ioctl__arg_a27c5e844ea1f3047f814b49f6dce830f}{00183}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bif}{acpi\_bif}}      \mbox{\hyperlink{unionacpi__battery__ioctl__arg_a27c5e844ea1f3047f814b49f6dce830f}{bif}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00184}\mbox{\hyperlink{unionacpi__battery__ioctl__arg_a5899a41730401518394dd8cbcd52a95f}{00184}}     \textcolor{keyword}{struct }\mbox{\hyperlink{structacpi__bst}{acpi\_bst}}      \mbox{\hyperlink{unionacpi__battery__ioctl__arg_a5899a41730401518394dd8cbcd52a95f}{bst}};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00185}00185 \};}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00186}00186 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00187}\mbox{\hyperlink{acpiio_8h_a4d012131be5c16bd2f179de3da1908b7}{00187}} \textcolor{preprocessor}{\#define ACPI\_BATTERY\_ALL\_UNITS  (-\/1)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00188}\mbox{\hyperlink{acpiio_8h_a7c5ead08ba5fbea92527e465050659ef}{00188}} \textcolor{preprocessor}{\#define ACPI\_BATT\_UNKNOWN       0xffffffff }\textcolor{comment}{/* \_BST or \_BI[FX] value unknown. */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00189}00189 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00190}00190 \textcolor{comment}{/* Common battery ioctls */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00191}\mbox{\hyperlink{acpiio_8h_a1c30594a719f27f58157f8fc09613b4f}{00191}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_UNITS     \_IOR('B', 0x01, int)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00192}\mbox{\hyperlink{acpiio_8h_ad1096ea619223ff6583e99358545e537}{00192}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BATTINFO \_IOWR('B', 0x03, union acpi\_battery\_ioctl\_arg)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00193}\mbox{\hyperlink{acpiio_8h_a312fb57c49ae46d0ce95b815c8d6dc35}{00193}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BATTINFO\_V1 \_IOWR('B', 0x03, union acpi\_battery\_ioctl\_arg\_v1)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00194}\mbox{\hyperlink{acpiio_8h_a37dbe78f1ec89a5f8bb27d43358b6c4d}{00194}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BIF      \_IOWR('B', 0x10, union acpi\_battery\_ioctl\_arg\_v1)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00195}\mbox{\hyperlink{acpiio_8h_a889b60d781daca8d357df313e7abbfe3}{00195}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BIX      \_IOWR('B', 0x10, union acpi\_battery\_ioctl\_arg)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00196}\mbox{\hyperlink{acpiio_8h_a31b2c9c99d325cda7b4887ed963a98dd}{00196}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BST      \_IOWR('B', 0x11, union acpi\_battery\_ioctl\_arg)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00197}\mbox{\hyperlink{acpiio_8h_a584e696d30d4adc4f1e94f38f7036edc}{00197}} \textcolor{preprocessor}{\#define ACPIIO\_BATT\_GET\_BST\_V1   \_IOWR('B', 0x11, union acpi\_battery\_ioctl\_arg\_v1)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00198}00198 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00199}00199 \textcolor{comment}{/* Control Method battery ioctls (deprecated) */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00200}\mbox{\hyperlink{acpiio_8h_a142040f4f5506badad3d24cc7bd39738}{00200}} \textcolor{preprocessor}{\#define ACPIIO\_CMBAT\_GET\_BIF     ACPIIO\_BATT\_GET\_BIF}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00201}\mbox{\hyperlink{acpiio_8h_a310da4a2ff73894de7de407a0fd90263}{00201}} \textcolor{preprocessor}{\#define ACPIIO\_CMBAT\_GET\_BST     ACPIIO\_BATT\_GET\_BST}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00202}00202 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00203}00203 \textcolor{comment}{/* Get AC adapter status. */}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00204}\mbox{\hyperlink{acpiio_8h_a16518a9d4124029beed1e868afcf264c}{00204}} \textcolor{preprocessor}{\#define ACPIIO\_ACAD\_GET\_STATUS    \_IOR('A', 1, int)}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00205}00205 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00206}00206 \textcolor{preprocessor}{\#ifdef \_KERNEL}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00207}\mbox{\hyperlink{acpiio_8h_adf7bc7fb497d9f5f7eec9cb3c1fec95f}{00207}} \textcolor{keyword}{typedef} int     (*\mbox{\hyperlink{acpiio_8h_adf7bc7fb497d9f5f7eec9cb3c1fec95f}{acpi\_ioctl\_fn}})(u\_long cmd, caddr\_t \mbox{\hyperlink{acpi__if_8m_abdf699ad973224fa47af2b6b6c973174}{addr}}, \textcolor{keywordtype}{void} *\mbox{\hyperlink{acpi__if_8m_a9ce2ec4812a92cb6ab39f6e81e9173a9}{arg}});}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00208}\mbox{\hyperlink{acpiio_8h_a7623847bc80e16abff3f70d6b580d03d}{00208}} \textcolor{keyword}{extern} \textcolor{keywordtype}{int}      \mbox{\hyperlink{acpiio_8h_a7623847bc80e16abff3f70d6b580d03d}{acpi\_register\_ioctl}}(u\_long cmd, \mbox{\hyperlink{acpiio_8h_adf7bc7fb497d9f5f7eec9cb3c1fec95f}{acpi\_ioctl\_fn}} fn, \textcolor{keywordtype}{void} *\mbox{\hyperlink{acpi__if_8m_a9ce2ec4812a92cb6ab39f6e81e9173a9}{arg}});}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00209}00209 \textcolor{keyword}{extern} \textcolor{keywordtype}{void}     \mbox{\hyperlink{acpiio_8h_a3365bc039e9a347d22736da961250287}{acpi\_deregister\_ioctl}}(u\_long cmd, \mbox{\hyperlink{acpiio_8h_adf7bc7fb497d9f5f7eec9cb3c1fec95f}{acpi\_ioctl\_fn}} fn);}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00210}00210 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00211}00211 }
\DoxyCodeLine{\Hypertarget{acpiio_8h_source_l00212}00212 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* !\_ACPIIO\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
