Specifications
smartCore Express SMA200 BIOS / The Special Function Interface (SFI)
www.kontron.com 26
5.2.4 Driver Installation Windows-NT
1. Boot with administrative privileges.
2. Copy NT-driver "Int15dl.sys" into WINNT/System32/drivers folder.
3. Register the driver by double clicking on the "int15dl.reg" file.
4. Reboot the computer.
5.2.5 Programming Int15dl Interface under Windows
Programming of the Int15dl interface is very similar to DOS programming and is based on the DeviceIO control
function, which operates with a pre-defined structure named "Registers".
Files:
Int15srv.h: contains definitions for the Registers structure.
Int15dlioctl.h: contains definitions for the IO control code constants.
Test_Int15dl.cpp: sample subroutines providing access to hardware functions over the Int15dl driver
Functions (Test_Int15dl.cpp)
bool Int15(Registers *Regs): the main function, which sends user requests to the driver.
Returns true if the request finished successfully, otherwise it returns false.
Regs: address of the Registers structure containing specific request data (defined in Int15srv.h).
For example, the following code will initiate temperature measuring:
Registers Regs;
Regs.ah = 0xEC;
if(!Int15(&Regs)) //error in driver request
{
printf("Error reading temperature\n");
return;
}
//success - temperature value is in Regs.al
if(Regs.bl == 0)printf("\tTemperature = %d C\n",Regs.al);
//error - not valid value
else printf("\tError reading Temperature\n");
Note: Input and output arguments of the Int15 function differ for the various chipsets and BIOSes. Read about the
Registers definition in the user manual.
For example: To get temperature value on a board with the PIIX4 chipset, use "Regs.ah = 0xEC;" on a board with
the ICH4 chipset, use "Regs.ax = 0x78EC;".
bool Open_Int15dl(void): the first function and must be called to create a link between the "DIGITAL-LOGIC INT15
functions emulator" driver and the user software.
Returns true if the device was successfully opened, otherwise it returns false.
void Close_Int15dl(void): the last function; it breaks the link between the driver and user software.
int GetChipID(void): an additional service function; returns the type of chipset (for PIIX4 = 4, for ICH4 = 5).