\hypertarget{acpi__powerres_8c}{}\doxysection{dev/acpica/acpi\+\_\+powerres.c File Reference}
\label{acpi__powerres_8c}\index{dev/acpica/acpi\_powerres.c@{dev/acpica/acpi\_powerres.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include \char`\"{}opt\+\_\+acpi.\+h\char`\"{}}\newline
{\ttfamily \#include $<$sys/param.\+h$>$}\newline
{\ttfamily \#include $<$sys/kernel.\+h$>$}\newline
{\ttfamily \#include $<$sys/malloc.\+h$>$}\newline
{\ttfamily \#include $<$sys/bus.\+h$>$}\newline
{\ttfamily \#include $<$contrib/dev/acpica/include/acpi.\+h$>$}\newline
{\ttfamily \#include $<$contrib/dev/acpica/include/accommon.\+h$>$}\newline
{\ttfamily \#include $<$dev/acpica/acpivar.\+h$>$}\newline
Include dependency graph for acpi\+\_\+powerres.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d2/dd8/acpi__powerres_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structacpi__powerreference}{acpi\+\_\+powerreference}}
\item 
struct \mbox{\hyperlink{structacpi__powerconsumer}{acpi\+\_\+powerconsumer}}
\item 
struct \mbox{\hyperlink{structacpi__powerresource}{acpi\+\_\+powerresource}}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{acpi__powerres_8c_ac76d546e6c738c61838d855c815bfbcc}{\+\_\+\+COMPONENT}}~\mbox{\hyperlink{acpivar_8h_a46c7b01104dc46bdbe978d87ba794194}{ACPI\+\_\+\+POWERRES}}
\item 
\#define \mbox{\hyperlink{acpi__powerres_8c_acfd039e7d4b068fb4c3c5045cbdb1ec0}{ACPI\+\_\+\+PWR\+\_\+\+OFF}}~0
\item 
\#define \mbox{\hyperlink{acpi__powerres_8c_ae30814e8d6e89a0e71baef6166845c5f}{ACPI\+\_\+\+PWR\+\_\+\+ON}}~1
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{acpi__powerres_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static \mbox{\hyperlink{acpi__powerres_8c_a902603d4fac892d413051bff0e8c49f2}{MALLOC\+\_\+\+DEFINE}} (M\+\_\+\+ACPIPWR, \char`\"{}acpipwr\char`\"{}, \char`\"{}ACPI power resources\char`\"{})
\item 
static \mbox{\hyperlink{acpi__powerres_8c_a16c2bce1703f940c1adad634036f05d3}{TAILQ\+\_\+\+HEAD}} (acpi\+\_\+powerresource\+\_\+list, \mbox{\hyperlink{structacpi__powerresource}{acpi\+\_\+powerresource}})
\item 
static ACPI\+\_\+\+STATUS \mbox{\hyperlink{acpi__powerres_8c_a9bd9314f4d1835ececa1ab4b49096728}{acpi\+\_\+pwr\+\_\+register\+\_\+consumer}} (ACPI\+\_\+\+HANDLE consumer)
\item 
ACPI\+\_\+\+STATUS \mbox{\hyperlink{acpi__powerres_8c_a18ea44f0a1414fdf46b2209ba25a1e42}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer}} (ACPI\+\_\+\+HANDLE consumer, int state)
\item 
ACPI\+\_\+\+STATUS \mbox{\hyperlink{acpi__powerres_8c_a2d161fe494ee62f14d0f66b37866709a}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable}} (ACPI\+\_\+\+HANDLE consumer, int enable)
\item 
static void \mbox{\hyperlink{acpi__powerres_8c_ac1afd686872f55ad4e0ed4bef5321e8b}{acpi\+\_\+pwr\+\_\+reference\+\_\+resource}} (ACPI\+\_\+\+OBJECT $\ast$obj, void $\ast$\mbox{\hyperlink{acpi__if_8m_a9ce2ec4812a92cb6ab39f6e81e9173a9}{arg}})
\item 
static int \mbox{\hyperlink{acpi__powerres_8c_a6ee2ba6378969b66fa5987864ef9a580}{acpi\+\_\+pwr\+\_\+dereference\+\_\+resource}} (struct \mbox{\hyperlink{structacpi__powerconsumer}{acpi\+\_\+powerconsumer}} $\ast$pc)
\item 
static ACPI\+\_\+\+STATUS \mbox{\hyperlink{acpi__powerres_8c_a9694dd844bd0a7f0c17b440eafb02720}{acpi\+\_\+pwr\+\_\+switch\+\_\+power}} (void)
\item 
static struct \mbox{\hyperlink{structacpi__powerresource}{acpi\+\_\+powerresource}} $\ast$ \mbox{\hyperlink{acpi__powerres_8c_a545065a5b4f967c8532008d1a3550cb1}{acpi\+\_\+pwr\+\_\+find\+\_\+resource}} (ACPI\+\_\+\+HANDLE res)
\item 
static struct \mbox{\hyperlink{structacpi__powerconsumer}{acpi\+\_\+powerconsumer}} $\ast$ \mbox{\hyperlink{acpi__powerres_8c_a5ea3258e6a6e92703d8c996a124740a4}{acpi\+\_\+pwr\+\_\+find\+\_\+consumer}} (ACPI\+\_\+\+HANDLE consumer)
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{acpi__powerres_8c_ac76d546e6c738c61838d855c815bfbcc}\label{acpi__powerres_8c_ac76d546e6c738c61838d855c815bfbcc}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!\_COMPONENT@{\_COMPONENT}}
\index{\_COMPONENT@{\_COMPONENT}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{\_COMPONENT}{\_COMPONENT}}
{\footnotesize\ttfamily \#define \+\_\+\+COMPONENT~\mbox{\hyperlink{acpivar_8h_a46c7b01104dc46bdbe978d87ba794194}{ACPI\+\_\+\+POWERRES}}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00061}{61}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.

\mbox{\Hypertarget{acpi__powerres_8c_acfd039e7d4b068fb4c3c5045cbdb1ec0}\label{acpi__powerres_8c_acfd039e7d4b068fb4c3c5045cbdb1ec0}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!ACPI\_PWR\_OFF@{ACPI\_PWR\_OFF}}
\index{ACPI\_PWR\_OFF@{ACPI\_PWR\_OFF}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{ACPI\_PWR\_OFF}{ACPI\_PWR\_OFF}}
{\footnotesize\ttfamily \#define ACPI\+\_\+\+PWR\+\_\+\+OFF~0}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00065}{65}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.

\mbox{\Hypertarget{acpi__powerres_8c_ae30814e8d6e89a0e71baef6166845c5f}\label{acpi__powerres_8c_ae30814e8d6e89a0e71baef6166845c5f}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!ACPI\_PWR\_ON@{ACPI\_PWR\_ON}}
\index{ACPI\_PWR\_ON@{ACPI\_PWR\_ON}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{ACPI\_PWR\_ON}{ACPI\_PWR\_ON}}
{\footnotesize\ttfamily \#define ACPI\+\_\+\+PWR\+\_\+\+ON~1}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00066}{66}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{acpi__powerres_8c_a8c3ef283470a68cd30afe9b8a72cb60f}\label{acpi__powerres_8c_a8c3ef283470a68cd30afe9b8a72cb60f}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!\_\_FBSDID@{\_\_FBSDID}}
\index{\_\_FBSDID@{\_\_FBSDID}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{\_\_FBSDID()}{\_\_FBSDID()}}
{\footnotesize\ttfamily \+\_\+\+\_\+\+FBSDID (\begin{DoxyParamCaption}\item[{\char`\"{}\$Free\+BSD\$\char`\"{}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{acpi__powerres_8c_a6ee2ba6378969b66fa5987864ef9a580}\label{acpi__powerres_8c_a6ee2ba6378969b66fa5987864ef9a580}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_dereference\_resource@{acpi\_pwr\_dereference\_resource}}
\index{acpi\_pwr\_dereference\_resource@{acpi\_pwr\_dereference\_resource}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_dereference\_resource()}{acpi\_pwr\_dereference\_resource()}}
{\footnotesize\ttfamily static int acpi\+\_\+pwr\+\_\+dereference\+\_\+resource (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structacpi__powerconsumer}{acpi\+\_\+powerconsumer}} $\ast$}]{pc }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00581}{581}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi_8c_source_l03928}{acpi\+\_\+name()}}, \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00071}{acpi\+\_\+powerreference\+::ar\+\_\+resource}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer()}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=310pt]{d1/d97/acpi__powerres_8c_a6ee2ba6378969b66fa5987864ef9a580_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a6ee2ba6378969b66fa5987864ef9a580_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a5ea3258e6a6e92703d8c996a124740a4}\label{acpi__powerres_8c_a5ea3258e6a6e92703d8c996a124740a4}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_find\_consumer@{acpi\_pwr\_find\_consumer}}
\index{acpi\_pwr\_find\_consumer@{acpi\_pwr\_find\_consumer}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_find\_consumer()}{acpi\_pwr\_find\_consumer()}}
{\footnotesize\ttfamily static struct \mbox{\hyperlink{structacpi__powerconsumer}{acpi\+\_\+powerconsumer}} $\ast$ acpi\+\_\+pwr\+\_\+find\+\_\+consumer (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+HANDLE}]{consumer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00725}{725}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi__powerres_8c_source_l00079}{acpi\+\_\+powerconsumer\+::ac\+\_\+consumer}}, and \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00232}{acpi\+\_\+pwr\+\_\+register\+\_\+consumer()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer()}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a5ea3258e6a6e92703d8c996a124740a4_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a545065a5b4f967c8532008d1a3550cb1}\label{acpi__powerres_8c_a545065a5b4f967c8532008d1a3550cb1}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_find\_resource@{acpi\_pwr\_find\_resource}}
\index{acpi\_pwr\_find\_resource@{acpi\_pwr\_find\_resource}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_find\_resource()}{acpi\_pwr\_find\_resource()}}
{\footnotesize\ttfamily static struct \mbox{\hyperlink{structacpi__powerresource}{acpi\+\_\+powerresource}} $\ast$ acpi\+\_\+pwr\+\_\+find\+\_\+resource (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+HANDLE}]{res }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00706}{706}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00533}{acpi\+\_\+pwr\+\_\+reference\+\_\+resource()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a545065a5b4f967c8532008d1a3550cb1_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_ac1afd686872f55ad4e0ed4bef5321e8b}\label{acpi__powerres_8c_ac1afd686872f55ad4e0ed4bef5321e8b}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_reference\_resource@{acpi\_pwr\_reference\_resource}}
\index{acpi\_pwr\_reference\_resource@{acpi\_pwr\_reference\_resource}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_reference\_resource()}{acpi\_pwr\_reference\_resource()}}
{\footnotesize\ttfamily static void acpi\+\_\+pwr\+\_\+reference\+\_\+resource (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+OBJECT $\ast$}]{obj,  }\item[{void $\ast$}]{arg }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00533}{533}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi__package_8c_source_l00158}{acpi\+\_\+\+Get\+Reference()}}, \mbox{\hyperlink{acpi_8c_source_l03928}{acpi\+\_\+name()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00706}{acpi\+\_\+pwr\+\_\+find\+\_\+resource()}}, \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00070}{acpi\+\_\+powerreference\+::ar\+\_\+consumer}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00071}{acpi\+\_\+powerreference\+::ar\+\_\+resource}}, and \mbox{\hyperlink{acpi__if_8m_source_l00188}{arg}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer()}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_ac1afd686872f55ad4e0ed4bef5321e8b_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_ac1afd686872f55ad4e0ed4bef5321e8b_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a9bd9314f4d1835ececa1ab4b49096728}\label{acpi__powerres_8c_a9bd9314f4d1835ececa1ab4b49096728}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_register\_consumer@{acpi\_pwr\_register\_consumer}}
\index{acpi\_pwr\_register\_consumer@{acpi\_pwr\_register\_consumer}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_register\_consumer()}{acpi\_pwr\_register\_consumer()}}
{\footnotesize\ttfamily static ACPI\+\_\+\+STATUS acpi\+\_\+pwr\+\_\+register\+\_\+consumer (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+HANDLE}]{consumer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00232}{232}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi__powerres_8c_source_l00079}{acpi\+\_\+powerconsumer\+::ac\+\_\+consumer}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00080}{acpi\+\_\+powerconsumer\+::ac\+\_\+state}}, \mbox{\hyperlink{acpi_8c_source_l03928}{acpi\+\_\+name()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00725}{acpi\+\_\+pwr\+\_\+find\+\_\+consumer()}}, and \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer()}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a9bd9314f4d1835ececa1ab4b49096728_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a9bd9314f4d1835ececa1ab4b49096728_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a18ea44f0a1414fdf46b2209ba25a1e42}\label{acpi__powerres_8c_a18ea44f0a1414fdf46b2209ba25a1e42}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_switch\_consumer@{acpi\_pwr\_switch\_consumer}}
\index{acpi\_pwr\_switch\_consumer@{acpi\_pwr\_switch\_consumer}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_switch\_consumer()}{acpi\_pwr\_switch\_consumer()}}
{\footnotesize\ttfamily ACPI\+\_\+\+STATUS acpi\+\_\+pwr\+\_\+switch\+\_\+consumer (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+HANDLE}]{consumer,  }\item[{int}]{state }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{297}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi__powerres_8c_source_l00080}{acpi\+\_\+powerconsumer\+::ac\+\_\+state}}, \mbox{\hyperlink{acpi_8c_source_l02781}{acpi\+\_\+\+Foreach\+Package\+Object()}}, \mbox{\hyperlink{acpi_8c_source_l03928}{acpi\+\_\+name()}}, \mbox{\hyperlink{acpivar_8h_source_l00529}{ACPI\+\_\+\+PKG\+\_\+\+VALID}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00581}{acpi\+\_\+pwr\+\_\+dereference\+\_\+resource()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00725}{acpi\+\_\+pwr\+\_\+find\+\_\+consumer()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00533}{acpi\+\_\+pwr\+\_\+reference\+\_\+resource()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00232}{acpi\+\_\+pwr\+\_\+register\+\_\+consumer()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00609}{acpi\+\_\+pwr\+\_\+switch\+\_\+power()}}, \mbox{\hyperlink{acpivar_8h_source_l00171}{ACPI\+\_\+\+SERIAL\+\_\+\+BEGIN}}, \mbox{\hyperlink{acpivar_8h_source_l00172}{ACPI\+\_\+\+SERIAL\+\_\+\+END}}, and \mbox{\hyperlink{OsdMemory_8c_source_l00052}{Acpi\+Os\+Free()}}.



Referenced by \mbox{\hyperlink{acpi__pci_8c_source_l00217}{acpi\+\_\+pci\+\_\+set\+\_\+powerstate\+\_\+method()}}, \mbox{\hyperlink{acpi_8c_source_l02100}{acpi\+\_\+set\+\_\+powerstate()}}, \mbox{\hyperlink{acpi__thermal_8c_source_l00629}{acpi\+\_\+tz\+\_\+switch\+\_\+cooler\+\_\+off()}}, \mbox{\hyperlink{acpi__thermal_8c_source_l00655}{acpi\+\_\+tz\+\_\+switch\+\_\+cooler\+\_\+on()}}, and \mbox{\hyperlink{acpi__video_8c_source_l00786}{acpi\+\_\+video\+\_\+vo\+\_\+notify\+\_\+handler()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a18ea44f0a1414fdf46b2209ba25a1e42_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a18ea44f0a1414fdf46b2209ba25a1e42_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a9694dd844bd0a7f0c17b440eafb02720}\label{acpi__powerres_8c_a9694dd844bd0a7f0c17b440eafb02720}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_switch\_power@{acpi\_pwr\_switch\_power}}
\index{acpi\_pwr\_switch\_power@{acpi\_pwr\_switch\_power}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_switch\_power()}{acpi\_pwr\_switch\_power()}}
{\footnotesize\ttfamily static ACPI\+\_\+\+STATUS acpi\+\_\+pwr\+\_\+switch\+\_\+power (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00609}{609}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi_8c_source_l02706}{acpi\+\_\+\+Get\+Integer()}}, \mbox{\hyperlink{acpi_8c_source_l03928}{acpi\+\_\+name()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00065}{ACPI\+\_\+\+PWR\+\_\+\+OFF}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00066}{ACPI\+\_\+\+PWR\+\_\+\+ON}}, and \mbox{\hyperlink{acpivar_8h_source_l00173}{ACPI\+\_\+\+SERIAL\+\_\+\+ASSERT}}.



Referenced by \mbox{\hyperlink{acpi__powerres_8c_source_l00297}{acpi\+\_\+pwr\+\_\+switch\+\_\+consumer()}}, and \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{acpi\+\_\+pwr\+\_\+wake\+\_\+enable()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a9694dd844bd0a7f0c17b440eafb02720_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a9694dd844bd0a7f0c17b440eafb02720_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a2d161fe494ee62f14d0f66b37866709a}\label{acpi__powerres_8c_a2d161fe494ee62f14d0f66b37866709a}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!acpi\_pwr\_wake\_enable@{acpi\_pwr\_wake\_enable}}
\index{acpi\_pwr\_wake\_enable@{acpi\_pwr\_wake\_enable}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{acpi\_pwr\_wake\_enable()}{acpi\_pwr\_wake\_enable()}}
{\footnotesize\ttfamily ACPI\+\_\+\+STATUS acpi\+\_\+pwr\+\_\+wake\+\_\+enable (\begin{DoxyParamCaption}\item[{ACPI\+\_\+\+HANDLE}]{consumer,  }\item[{int}]{enable }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00491}{491}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.



References \mbox{\hyperlink{acpi_8c_source_l03722}{acpi\+\_\+parse\+\_\+prw()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00581}{acpi\+\_\+pwr\+\_\+dereference\+\_\+resource()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00725}{acpi\+\_\+pwr\+\_\+find\+\_\+consumer()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00533}{acpi\+\_\+pwr\+\_\+reference\+\_\+resource()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00232}{acpi\+\_\+pwr\+\_\+register\+\_\+consumer()}}, \mbox{\hyperlink{acpi__powerres_8c_source_l00609}{acpi\+\_\+pwr\+\_\+switch\+\_\+power()}}, \mbox{\hyperlink{acpivar_8h_source_l00171}{ACPI\+\_\+\+SERIAL\+\_\+\+BEGIN}}, \mbox{\hyperlink{acpivar_8h_source_l00172}{ACPI\+\_\+\+SERIAL\+\_\+\+END}}, \mbox{\hyperlink{acpivar_8h_source_l00132}{acpi\+\_\+prw\+\_\+data\+::power\+\_\+res}}, and \mbox{\hyperlink{acpivar_8h_source_l00133}{acpi\+\_\+prw\+\_\+data\+::power\+\_\+res\+\_\+count}}.



Referenced by \mbox{\hyperlink{acpi_8c_source_l03607}{acpi\+\_\+wake\+\_\+run\+\_\+prep()}}, and \mbox{\hyperlink{acpi_8c_source_l03573}{acpi\+\_\+wake\+\_\+sleep\+\_\+prep()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a2d161fe494ee62f14d0f66b37866709a_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/d97/acpi__powerres_8c_a2d161fe494ee62f14d0f66b37866709a_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{acpi__powerres_8c_a902603d4fac892d413051bff0e8c49f2}\label{acpi__powerres_8c_a902603d4fac892d413051bff0e8c49f2}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!MALLOC\_DEFINE@{MALLOC\_DEFINE}}
\index{MALLOC\_DEFINE@{MALLOC\_DEFINE}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{MALLOC\_DEFINE()}{MALLOC\_DEFINE()}}
{\footnotesize\ttfamily static MALLOC\+\_\+\+DEFINE (\begin{DoxyParamCaption}\item[{M\+\_\+\+ACPIPWR}]{,  }\item[{\char`\"{}acpipwr\char`\"{}}]{,  }\item[{\char`\"{}ACPI power resources\char`\"{}}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{acpi__powerres_8c_a16c2bce1703f940c1adad634036f05d3}\label{acpi__powerres_8c_a16c2bce1703f940c1adad634036f05d3}} 
\index{acpi\_powerres.c@{acpi\_powerres.c}!TAILQ\_HEAD@{TAILQ\_HEAD}}
\index{TAILQ\_HEAD@{TAILQ\_HEAD}!acpi\_powerres.c@{acpi\_powerres.c}}
\doxysubsubsection{\texorpdfstring{TAILQ\_HEAD()}{TAILQ\_HEAD()}}
{\footnotesize\ttfamily static TAILQ\+\_\+\+HEAD (\begin{DoxyParamCaption}\item[{acpi\+\_\+powerresource\+\_\+list}]{,  }\item[{\mbox{\hyperlink{structacpi__powerresource}{acpi\+\_\+powerresource}}}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{acpi__powerres_8c_source_l00094}{94}} of file \mbox{\hyperlink{acpi__powerres_8c_source}{acpi\+\_\+powerres.\+c}}.

