BIOS Reference - BIOS Functions

From NanoComputerWiki

Revision as of 21:53, 31 October 2008 by FlyingElectron (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

BIOS Module Functions

NanoComputer BIOS Reference

BIOS Module

Note: This information may be out of date. For the latest information always check the header files shipped with the NanoComputer SDK.

Last update: Oct 31 2008

// --------------------------------------------------
//	Defines
// --------------------------------------------------
	#define BIOS_PROP_MODEL			0x0001	// Returns char*
	#define BIOS_PROP_VER			0x0002	// Returns char*
	#define BIOS_GLOBAL_STR_BUFFER	0x0003	        // Returns char**

	#define E_BIOS_PROP_NO_SET -100


// --------------------------------------------------
//	Function Prototypes
// --------------------------------------------------
	/**
	 *	Returns information about the BIOS
	 *
	 *	PropID        - [in]  Name of the property to return the value of 
	 *	pPropValueBuf - [out] Buffer of 32 bytes to return the value of the property
	 *
	 *	Returns E_OK on success
	 **/
	char BIOS_GetProp(unsigned short PropID, void* pPropValueBuf);

	/**
	 * Reboots the NanoComputer
	 **/
	char BIOS_Reboot(void);

	/**
	 *	Sets BIOS options with a buffer or string value
	 *
	 *	PropID        - [in] ID of the property to set
	 *	pPropValueBuf - [in] Buffer of value of the property to
	 *
	 *	Returns E_OK on success
	 **/
	char BIOS_SetPropBuf(unsigned short PropID, void* pPropValueBuf);

	/**
	 *	Sets BIOS options with a numerical value
	 *
	 *	PropID  - [in] ID of the property to set
	 *	PropVal - [in] Value of the property to set
	 *
	 *	Returns E_OK on success
	 **/
	char BIOS_SetPropVal(unsigned short PropID, long PropVal);

Navigation

Click on any of the links below to navigate to a new page