Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cmos Namespace Reference


Compounds

class  CmosRWFactory
class  CmosRWFactoryImpl
class  CmosRWFile
class  CmosRWIo
class  ICmosRW
class  Suppressable

Functions

 DECLARE_EXCEPTION (CmosException)
 Abstract base class for the cmos read write operations.

 DECLARE_EXCEPTION_EX (InvalidCmosRWMode, cmos, CmosException)
void readByteArray (const ICmosRW &cmos, u32 indexPort, u32 dataPort, u32 offset, u8 *target, u32 count)
void writeByteArray (const ICmosRW &cmos, u32 indexPort, u32 dataPort, u32 offset, const u8 *source, u32 count)
int LoadNtdllFuncs (void)
int EnableDebug (void)
 DEFINE_EXCEPTION_EX (InvalidCmosRWModeImpl, cmos, InvalidCmosRWMode)

Variables

ZwSystemDebugControlPtr ZwSystemDebugControl


Function Documentation

DECLARE_EXCEPTION CmosException   
 

Abstract base class for the cmos read write operations.

DECLARE_EXCEPTION_EX InvalidCmosRWMode   ,
cmos   ,
CmosException   
 

DEFINE_EXCEPTION_EX InvalidCmosRWModeImpl   ,
cmos   ,
InvalidCmosRWMode   
 

int EnableDebug void   
 

Definition at line 52 of file CmosRW_WindowsIO.cpp.

References NT_SUCCESS.

int LoadNtdllFuncs void   
 

Definition at line 37 of file CmosRW_WindowsIO.cpp.

References ZwSystemDebugControl.

void readByteArray const ICmosRW   cmos,
u32    indexPort,
u32    dataPort,
u32    offset,
u8   target,
u32    count
 

Read or write an array of bytes to CMOS.

This function is set up as a non-member helper function. It successively reads/writes

Parameters:
count  bytes from/to CMOS.
Note that the byte array passed as a parameter need not be zero-terminated.
Parameters:
cmos  Pass in the ICmosRW object to operate on
indexPort  The IO port to write the offset to
dataPort  The IO port to read/write data after setting the index via indexPort
offset  The offset within CMOS. CMOS is typically multiple 256byte pages.
target  Byte array to store the results. Call must already have allocated.
count  The number of bytes to read/write.

Definition at line 30 of file CmosRW.cpp.

References ICmosRW::readByte(), u32, and u8.

Referenced by CmosTokenD5::getString(), and CmosTokenD4::getString().

void writeByteArray const ICmosRW   cmos,
u32    indexPort,
u32    dataPort,
u32    offset,
const u8   source,
u32    count
 

Read or write an array of bytes to CMOS.

This function is set up as a non-member helper function. It successively reads/writes

Parameters:
count  bytes from/to CMOS.
Note that the byte array passed as a parameter need not be zero-terminated.
Parameters:
cmos  Pass in the ICmosRW object to operate on
indexPort  The IO port to write the offset to
dataPort  The IO port to read/write data after setting the index via indexPort
offset  The offset within CMOS. CMOS is typically multiple 256byte pages.
source  byte array to store the CMOS contents. must be allocated by caller.
count  The number of bytes to read/write.

Definition at line 38 of file CmosRW.cpp.

References Suppressable::resumeNotification(), Suppressable::suppressNotification(), u32, u8, and ICmosRW::writeByte().

Referenced by CmosTokenD5::setString(), and CmosTokenD4::setString().


Variable Documentation

ZwSystemDebugControlPtr ZwSystemDebugControl
 

Definition at line 35 of file CmosRW_WindowsIO.cpp.

Referenced by LoadNtdllFuncs().


Generated on Tue Jul 3 18:35:14 2007 for SMBIOS Library by doxygen1.2.18