Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DellRbu.h File Reference

#include "smbios/compat.h"
#include <string>
#include "smbios/types.h"
#include "smbios/IFactory.h"
#include "smbios/IException.h"
#include "smbios/config/abi_prefix.hpp"
#include "smbios/config/abi_suffix.hpp"

Go to the source code of this file.

Namespaces

namespace  rbu

Classes

class  RbuFactory
 AbstractFactory that produces IRbuHdr objects. More...
class  IRbuHdr
 Interface definition for RBU HDR operations. More...

Enumerations

enum  packet_type { pt_any, pt_mono, pt_packet, pt_init }
enum  driver_type { rbu_unsupported, rbu_linux_v0, rbu_linux_v1, rbu_linux_v2 }

Functions

 DECLARE_EXCEPTION (RbuException)
 DECLARE_EXCEPTION_EX (RbuNotSupported, rbu, RbuException)
 DECLARE_EXCEPTION_EX (InvalidHdrFile, rbu, RbuException)
 DECLARE_EXCEPTION_EX (UnsupportedSystemForHdrFile, rbu, RbuException)
 DECLARE_EXCEPTION_EX (HdrFileIOError, rbu, RbuException)
 DECLARE_EXCEPTION_EX (RbuDriverIOError, rbu, RbuException)
std::ostream & operator<< (std::ostream &cout, const IRbuHdr &item)
void cancelDellBiosUpdate ()
 Cancel BIOS Update on Dell systems.
bool checkSystemId (const IRbuHdr &hdr, u16 sysId)
 Check to see if a HDR file supports a specific System ID.
void dellBiosUpdate (const IRbuHdr &hdr, packet_type force_type)
 Update BIOS on Dell systems.
int compareBiosVersion (std::string ver1, std::string ver2)
 Compare BIOS Versions.

Variables

const int SYSID_OVERRIDE = 1
const int BIOSVER_OVERRIDE = 2


Enumeration Type Documentation

enum driver_type
 

Enumeration values:
rbu_unsupported 
rbu_linux_v0 
rbu_linux_v1 
rbu_linux_v2 

Definition at line 49 of file DellRbu.h.

Referenced by rbu::cancelDellBiosUpdate(), rbu::dellBiosUpdate(), and rbu::getDriverType().

enum packet_type
 

Enumeration values:
pt_any 
pt_mono 
pt_packet 
pt_init 

Definition at line 45 of file DellRbu.h.

Referenced by rbu::dellBiosUpdate(), and rbu::getSupportedPacketType().


Function Documentation

void cancelDellBiosUpdate  ) 
 

Cancel BIOS Update on Dell systems.

Definition at line 464 of file Rbu_Linux.cpp.

References rbu::cancelRbuToken(), rbu::driver_type, rbu::getDriverType(), rbu::pt_init, rbu::rbu_linux_v0, rbu::rbu_linux_v1, rbu::rbu_linux_v2, rbu::rbu_v0_size_file, rbu::rbu_v0_type_file, rbu::rbu_v1_mono_size_file, rbu::rbu_v1_pkt_size_file, rbu::rbu_v2_img_type_file, rbu::setLoadValue(), rbu::setPacketType(), and rbu::setSize().

bool checkSystemId const IRbuHdr &  hdr,
u16  sysId
 

Check to see if a HDR file supports a specific System ID.

Definition at line 152 of file RbuHdr.cpp.

References IRbuHdr::getSystemIdList(), and u32.

Referenced by testRbu::checkHdrInfo().

int compareBiosVersion std::string  ver1,
std::string  ver2
 

Compare BIOS Versions.

Definition at line 318 of file RbuHdr.cpp.

References rbu::compareNewBiosVersion(), rbu::compareOldBiosVersion(), and rbu::stringToLower().

DECLARE_EXCEPTION RbuException   ) 
 

DECLARE_EXCEPTION_EX RbuDriverIOError  ,
rbu  ,
RbuException 
 

DECLARE_EXCEPTION_EX HdrFileIOError  ,
rbu  ,
RbuException 
 

DECLARE_EXCEPTION_EX UnsupportedSystemForHdrFile  ,
rbu  ,
RbuException 
 

DECLARE_EXCEPTION_EX InvalidHdrFile  ,
rbu  ,
RbuException 
 

DECLARE_EXCEPTION_EX RbuNotSupported  ,
rbu  ,
RbuException 
 

void dellBiosUpdate const IRbuHdr &  hdr,
packet_type  force_type
 

Update BIOS on Dell systems.

Definition at line 359 of file Rbu_Linux.cpp.

References rbu::activateRbuToken(), rbu::doMonoUpdate_v0(), rbu::doMonoUpdate_v1(), rbu::doMonoUpdate_v2(), rbu::doPacketUpdate_v0(), rbu::doPacketUpdate_v1(), rbu::doPacketUpdate_v2(), rbu::driver_type, rbu::getDriverType(), IRbuHdr::getFh(), rbu::getSupportedPacketType(), rbu::packet_type, rbu::pt_init, rbu::pt_mono, rbu::pt_packet, rbu::rbu_v0_type_file, rbu::rbu_v2_img_type_file, and rbu::setPacketType().

std::ostream& operator<< std::ostream &  cout,
const IRbuHdr &  item
 


Variable Documentation

const int BIOSVER_OVERRIDE = 2
 

Definition at line 52 of file DellRbu.h.

const int SYSID_OVERRIDE = 1
 

Definition at line 51 of file DellRbu.h.


Generated on Tue Feb 26 14:39:35 2008 for SMBIOS Library by  doxygen 1.3.9.1