#include "checkbios.h"
#include <stdio.h>
#include <string.h>
#include <dos.h>
#include <process.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | MAGIC_AUTO_UPLOAD "cmd /c upload.cmd" |
Ultra cool auto upload feature. | |
Functions | |
void | getFocus () |
void | releaseFocus () |
int | getBiosVersion () |
int | getBootVersion () |
void | getFeatures (int *ax, int *bx, int *dx) |
int | getIniString (char *section, char *item, char *target, int maxlen) |
int | getEquipment () |
Get BIOS equiment description. | |
void | trim (char *str) |
Strip leading and trailing whitespaces. | |
bool | CheckBIOS () |
Check bios and chip.ini settings. |
|
Ultra cool auto upload feature. If MAGIC_AUTO_UPLOAD is defined, the program will check if it is run on the development PC, and will call a batch file to compress and upload itself to the mp3 player. Yes. You're right. This absolutely rocks, rules, impresses your friends, and makes you more attractive to the other gender. Definition at line 37 of file checkbios.cpp. Referenced by CheckBIOS(). |
|
Check bios and chip.ini settings. Because our program needs some BIOS features and relies on DMA channels, we have to check some settings first.
Definition at line 150 of file checkbios.cpp. References FEAT_AX_ETHERNET, FEAT_DX_EXTDISK, FEAT_DX_HWAPI, FEAT_DX_I2C, FEAT_DX_RTOS, getBiosVersion(), getBootVersion(), getEquipment(), getFeatures(), getFocus(), getIniString(), MAGIC_AUTO_UPLOAD, releaseFocus(), and trim(). Referenced by main(). |
|
Definition at line 56 of file checkbios.cpp. References SYSTEM_INT. Referenced by CheckBIOS(). |
|
Definition at line 66 of file checkbios.cpp. References SYSTEM_INT. Referenced by CheckBIOS(). |
|
Get BIOS equiment description.
Definition at line 116 of file checkbios.cpp. Referenced by CheckBIOS(). |
|
Definition at line 76 of file checkbios.cpp. References SYSTEM_INT. Referenced by CheckBIOS(). |
|
Definition at line 40 of file checkbios.cpp. Referenced by CheckBIOS(). |
|
Definition at line 88 of file checkbios.cpp. References SYSTEM_INT. Referenced by CheckBIOS(). |
|
Definition at line 48 of file checkbios.cpp. Referenced by CheckBIOS(). |
|
Strip leading and trailing whitespaces.
Definition at line 127 of file checkbios.cpp. |