Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > a65517607ef053b8c8e6c720e8c36e77 > files > 97

libsmbios-devel-2.2.26-3.fc14.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libsmbios_c library: /builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios/DellRbu.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios/DellRbu.h</h1>  </div>
</div>
<div class="contents">
<a href="DellRbu_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005 Dell Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> *  by Michael Brown &lt;Michael_E_Brown@dell.com&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> * Licensed under the Open Software License version 2.1</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Alternatively, you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published</span>
<a name="l00009"></a>00009 <span class="comment"> * by the Free Software Foundation; either version 2 of the License,</span>
<a name="l00010"></a>00010 <span class="comment"> * or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment"> * This program is distributed in the hope that it will be useful, but</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00015"></a>00015 <span class="comment"> * See the GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef RBU_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define RBU_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">// compat header should always be first header, if system headers included</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="compat_8h.html">smbios/compat.h</a>&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">// types.h should be first user-defined header.</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">smbios/types.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="IFactory_8h.html">smbios/IFactory.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="IException_8h.html">smbios/IException.h</a>&quot;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">// abi_prefix should be last header included before declarations</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="abi__prefix_8hpp.html">smbios/config/abi_prefix.hpp</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="namespacerbu.html">00036</a> <span class="keyword">namespace </span>rbu
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038     <a class="code" href="namespacerbu.html#a63337cbd53fad2948ec0dab977f69c86">DECLARE_EXCEPTION</a>( RbuException );
<a name="l00039"></a>00039     <a class="code" href="namespacerbu.html#a3f6dc5dd3dbc778d555154e459e3eb07">DECLARE_EXCEPTION_EX</a>( RbuNotSupported, rbu, RbuException );
<a name="l00040"></a>00040     <a class="code" href="namespacerbu.html#a3f6dc5dd3dbc778d555154e459e3eb07">DECLARE_EXCEPTION_EX</a>( InvalidHdrFile, rbu, RbuException );
<a name="l00041"></a>00041     <a class="code" href="namespacerbu.html#a3f6dc5dd3dbc778d555154e459e3eb07">DECLARE_EXCEPTION_EX</a>( UnsupportedSystemForHdrFile, rbu, RbuException );
<a name="l00042"></a>00042     <a class="code" href="namespacerbu.html#a3f6dc5dd3dbc778d555154e459e3eb07">DECLARE_EXCEPTION_EX</a>( HdrFileIOError, rbu, RbuException );
<a name="l00043"></a>00043     <a class="code" href="namespacerbu.html#a3f6dc5dd3dbc778d555154e459e3eb07">DECLARE_EXCEPTION_EX</a>( RbuDriverIOError, rbu, RbuException );
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="namespacerbu.html#a4a32d7ea6d72aa54e46b796c6530ecbca556d15d07eee13c436886739325b276f">00045</a>     <span class="keyword">typedef</span> <span class="keyword">enum</span> { pt_any, pt_mono, pt_packet, <a class="code" href="namespacerbu.html#a4a32d7ea6d72aa54e46b796c6530ecbcab552ab03f42bf530b37a0f5d298cf1c2">pt_init</a> } packet_type;
<a name="l00046"></a>00046     <span class="comment">// rbu_linux_v0: Linux 2.4</span>
<a name="l00047"></a>00047     <span class="comment">// rbu_linux_v1: 2.6 dkms</span>
<a name="l00048"></a>00048     <span class="comment">// rbu_linux_v2: 2.6.14+</span>
<a name="l00049"></a><a class="code" href="namespacerbu.html#a4e94ab1b6f0eb757a4d7e5dfe59b054bacd02ea6d371ffeda7f4f1702885e9339">00049</a>     <span class="keyword">typedef</span> <span class="keyword">enum</span> { rbu_unsupported, rbu_linux_v0, rbu_linux_v1, <a class="code" href="namespacerbu.html#a4e94ab1b6f0eb757a4d7e5dfe59b054ba08fe21a5eedac6a81b37364d038f84f8">rbu_linux_v2</a> } driver_type;
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="namespacerbu.html#a10407b4897fd6ec47ca029e68fdf5089">00051</a>     <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="namespacerbu.html#a10407b4897fd6ec47ca029e68fdf5089">SYSID_OVERRIDE</a> = 1;
<a name="l00052"></a><a class="code" href="namespacerbu.html#a8ba9e891edecb87968d0c89bab90aa81">00052</a>     <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="namespacerbu.html#a8ba9e891edecb87968d0c89bab90aa81">BIOSVER_OVERRIDE</a> = 2;
<a name="l00053"></a>00053 
<a name="l00054"></a>00054     <span class="comment">// forward decls</span>
<a name="l00055"></a>00055     <span class="keyword">class </span><a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a>;
<a name="l00056"></a>00056 
<a name="l00058"></a>00058 
<a name="l00072"></a><a class="code" href="classrbu_1_1RbuFactory.html">00072</a>     <span class="keyword">class </span><a class="code" href="classrbu_1_1RbuFactory.html" title="AbstractFactory that produces IRbuHdr objects.">RbuFactory</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> factory::IFactory
<a name="l00073"></a>00073     {
<a name="l00074"></a>00074     <span class="keyword">public</span>:
<a name="l00076"></a>00076 
<a name="l00086"></a>00086         <span class="keyword">static</span> <a class="code" href="classrbu_1_1RbuFactory.html" title="AbstractFactory that produces IRbuHdr objects.">RbuFactory</a> *<a class="code" href="classrbu_1_1RbuFactory.html#a8b0035ec06e35b778f24b57ad2162a34" title="Create a factory object that you can use to create IRbuHdr objects.">getFactory</a>();
<a name="l00087"></a>00087         <span class="keyword">virtual</span> <a class="code" href="classrbu_1_1RbuFactory.html#a10dd7a8f0640023a9030b8c2286f1646">~RbuFactory</a>() <span class="keywordflow">throw</span>();
<a name="l00088"></a>00088 
<a name="l00090"></a>00090 
<a name="l00099"></a>00099         <span class="keyword">virtual</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> *<a class="code" href="classrbu_1_1RbuFactory.html#a9f8d1913df87fe593a3bcc8608e69476" title="Create a new IRbuHdr object that the caller must delete. (NOT RECOMMENDED).">makeNew</a>(std::string filename) = 0;
<a name="l00100"></a>00100     <span class="keyword">protected</span>:
<a name="l00102"></a>00102         <a class="code" href="classrbu_1_1RbuFactory.html#aefcf8231d238def468a3c0b2a5457cca" title="Use getFactory() to get a factory.">RbuFactory</a>();
<a name="l00103"></a>00103     };
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 
<a name="l00107"></a><a class="code" href="classrbu_1_1IRbuHdr.html">00107</a>     <span class="keyword">class </span><a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a>
<a name="l00108"></a>00108     {
<a name="l00109"></a>00109     <span class="keyword">public</span>:
<a name="l00110"></a>00110         <span class="comment">// CONSTRUCTORS, DESTRUCTOR, and ASSIGNMENT</span>
<a name="l00111"></a>00111         <a class="code" href="classrbu_1_1IRbuHdr.html#ab8bde00c1ea5e5d83bdbf51062bb96cf">IRbuHdr</a>();
<a name="l00112"></a>00112         <span class="comment">// Interface class: no default or copy constructor</span>
<a name="l00113"></a>00113         <span class="keyword">virtual</span> <a class="code" href="classrbu_1_1IRbuHdr.html#a433d36f13ad860dccc17a027b10c3e22">~IRbuHdr</a> ();
<a name="l00114"></a>00114 
<a name="l00116"></a>00116         <span class="comment">//output table information.</span>
<a name="l00120"></a>00120 <span class="comment"></span>        <span class="keyword">virtual</span> std::ostream &amp; <a class="code" href="classrbu_1_1IRbuHdr.html#a742e1f8fe5ccd66d96a3fad063f8c695" title="Used by operator &amp;lt;&amp;lt; (std::ostream &amp;amp; cout, const IRbuHdr &amp;amp; ) to.">streamify</a>(std::ostream &amp; cout ) <span class="keyword">const</span> = 0;
<a name="l00121"></a>00121 
<a name="l00122"></a>00122         <span class="keyword">virtual</span> std::string <a class="code" href="classrbu_1_1IRbuHdr.html#a1b5d7ecde4350de21f9d0fbd93b1ea3b">getBiosVersion</a>() <span class="keyword">const</span> = 0;
<a name="l00123"></a>00123         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classrbu_1_1IRbuHdr.html#a32e8eeca31628cfbc13e63cf78c5dd46">getHdrVersion</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;major, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;minor) <span class="keyword">const</span> = 0;
<a name="l00124"></a>00124         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="types_8h.html#a10e94b422ef0c20dcdec20d31a1f5049">u32</a> *<a class="code" href="classrbu_1_1IRbuHdr.html#aa5bcde913ba68b792c0e62453f24a579">getSystemIdList</a>() <span class="keyword">const</span> = 0;
<a name="l00125"></a>00125         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classrbu_1_1IRbuHdr.html#a720ca0a7e4516a9b592dd480108a98b7">doUpdate</a>() <span class="keyword">const</span> = 0;
<a name="l00126"></a>00126         <span class="keyword">virtual</span> FILE *<a class="code" href="classrbu_1_1IRbuHdr.html#ac68942a3b640bb9acc69f4dadab4c47c">getFh</a>() <span class="keyword">const</span> = 0;
<a name="l00127"></a>00127 
<a name="l00128"></a>00128     <span class="keyword">private</span>:
<a name="l00129"></a>00129         <span class="keyword">explicit</span> <a class="code" href="classrbu_1_1IRbuHdr.html#ab8bde00c1ea5e5d83bdbf51062bb96cf">IRbuHdr</a>(<span class="keyword">const</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> &amp;); 
<a name="l00130"></a>00130         <span class="keywordtype">void</span> operator =( <span class="keyword">const</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> &amp; ); 
<a name="l00131"></a>00131     };
<a name="l00132"></a>00132 
<a name="l00133"></a>00133     std::ostream &amp; <a class="code" href="namespacerbu.html#a3554f650976ae6847b3c7cfcf55f08fe">operator &lt;&lt; </a>(std::ostream &amp; cout, <span class="keyword">const</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> &amp; item);
<a name="l00134"></a>00134 
<a name="l00136"></a>00136 
<a name="l00138"></a>00138     <span class="keywordtype">void</span> <a class="code" href="namespacerbu.html#a21ce620a6059268bb51945981fe7ceeb" title="Cancel BIOS Update on Dell systems.">cancelDellBiosUpdate</a>();
<a name="l00139"></a>00139 
<a name="l00141"></a>00141 
<a name="l00143"></a>00143     <span class="keywordtype">bool</span> <a class="code" href="namespacerbu.html#a53805b952cc169d3bf6088deca54c929" title="Check to see if a HDR file supports a specific System ID.">checkSystemId</a>(<span class="keyword">const</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> &amp;hdr, <a class="code" href="types_8h.html#a9e6c91d77e24643b888dbd1a1a590054">u16</a> sysId );
<a name="l00144"></a>00144 
<a name="l00146"></a>00146 
<a name="l00148"></a>00148     <span class="keywordtype">void</span> <a class="code" href="namespacerbu.html#afc79d4f2ffeb208f0031237c87d7c4af" title="Update BIOS on Dell systems.">dellBiosUpdate</a>(<span class="keyword">const</span> <a class="code" href="classrbu_1_1IRbuHdr.html" title="Interface definition for RBU HDR operations.">IRbuHdr</a> &amp;hdr, <a class="code" href="namespacerbu.html#a4a32d7ea6d72aa54e46b796c6530ecbc">packet_type</a> force_type);
<a name="l00149"></a>00149 
<a name="l00151"></a>00151 
<a name="l00153"></a>00153     <span class="keywordtype">int</span> <a class="code" href="namespacerbu.html#a9f59a4011b0a77294654ee25ee0504e2" title="Compare BIOS Versions.">compareBiosVersion</a>(std::string ver1, std::string ver2);
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 }
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <span class="comment">// always should be last thing in header file</span>
<a name="l00158"></a>00158 <span class="preprocessor">#include &quot;<a class="code" href="abi__suffix_8hpp.html">smbios/config/abi_suffix.hpp</a>&quot;</span>
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="preprocessor">#endif  </span><span class="comment">/* RBU_H */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Oct 5 2010 for libsmbios_c library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>