Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

v86bios.h File Reference

#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  config
struct  pio
struct  regs86
struct  i86biosRegs
struct  console
struct  haltpoints
struct  device

Defines

#define p_printf(f, a...)
#define i_printf(f, a...)
#define P_printf(f, a...)
#define FALSE   0
#define TRUE   1
#define IOPERM_BITS   1024
#define MEM_FILE   "/dev/mem"
#define DEFAULT_V_BIOS   0xc0000
#define V_BIOS   DEFAULT_V_BIOS

Typedefs

typedef unsigned char CARD8
typedef unsigned short CARD16
typedef unsigned int CARD32
typedef unsigned int memType
typedef int Bool
typedef * i86biosRegsPtr

Enumerations

enum  dev_type { NONE, ISA, PCI }

Functions

void setup_io (void)
void do_x86 (unsigned long bios_start, i86biosRegsPtr regs)
int run_bios_int (int num, struct regs86 *regs)
CARD32 getIntVect (int num)
CARD32 getIP (void)
void call_boot (struct device *dev)
void runINT (int num, i86biosRegsPtr Regs)
void add_hlt (unsigned long addr)
void del_hlt (int addr)
void list_hlt ()
int port_rep_inb (CARD16 port, CARD8 *base, int d_f, CARD32 count)
int port_rep_inw (CARD16 port, CARD16 *base, int d_f, CARD32 count)
int port_rep_inl (CARD16 port, CARD32 *base, int d_f, CARD32 count)
int port_rep_outb (CARD16 port, CARD8 *base, int d_f, CARD32 count)
int port_rep_outw (CARD16 port, CARD16 *base, int d_f, CARD32 count)
int port_rep_outl (CARD16 port, CARD32 *base, int d_f, CARD32 count)
CARD8 p_inb (CARD16 port)
CARD16 p_inw (CARD16 port)
CARD32 p_inl (CARD16 port)
void p_outb (CARD16 port, CARD8 val)
void p_outw (CARD16 port, CARD16 val)
void p_outl (CARD16 port, CARD32 val)
void io_statistics (void)
void clear_stat (void)
int int_handler (int num, struct regs86 *regs)
console open_console (void)
void close_console (console)
void dprint (unsigned long start, unsigned long size)
void logon (void *ptr)
void logoff ()
void lprintf (const char *f,...)

Variables

device Device
pio P
config Config
int ioperm_list [IOPERM_BITS]
Bool logging
Bool nostdout
char * logfile


Define Documentation

#define DEFAULT_V_BIOS   0xc0000
 

#define FALSE   0
 

#define i_printf f,
a...   ) 
 

Value:

do  {if (Config.PrintIrq) lprintf(f,##a);} \
                          while(0)

#define IOPERM_BITS   1024
 

#define MEM_FILE   "/dev/mem"
 

#define P_printf f,
a...   ) 
 

Value:

do {if (Config.PrintPci) lprintf(f,##a);} \
                          while(0)

#define p_printf f,
a...   ) 
 

Value:

do {if (Config.PrintPort) lprintf(f,##a);} \
                         while(0)

#define TRUE   1
 

#define V_BIOS   DEFAULT_V_BIOS
 


Typedef Documentation

typedef int Bool
 

typedef unsigned short CARD16
 

typedef unsigned int CARD32
 

typedef unsigned char CARD8
 

typedef * i86biosRegsPtr
 

typedef unsigned int memType
 


Enumeration Type Documentation

enum dev_type
 

Enumeration values:
NONE 
ISA 
PCI 


Function Documentation

void add_hlt unsigned long  addr  ) 
 

void call_boot struct device dev  ) 
 

void clear_stat void   ) 
 

void close_console console   ) 
 

void del_hlt int  addr  ) 
 

void do_x86 unsigned long  bios_start,
i86biosRegsPtr  regs
 

void dprint unsigned long  start,
unsigned long  size
 

CARD32 getIntVect int  num  ) 
 

CARD32 getIP void   ) 
 

int int_handler int  num,
struct regs86 regs
 

void io_statistics void   ) 
 

void list_hlt  ) 
 

void logoff  ) 
 

void logon void *  ptr  ) 
 

void lprintf const char *  f,
  ...
 

console open_console void   ) 
 

CARD8 p_inb CARD16  port  ) 
 

CARD32 p_inl CARD16  port  ) 
 

CARD16 p_inw CARD16  port  ) 
 

void p_outb CARD16  port,
CARD8  val
 

void p_outl CARD16  port,
CARD32  val
 

void p_outw CARD16  port,
CARD16  val
 

int port_rep_inb CARD16  port,
CARD8 base,
int  d_f,
CARD32  count
 

int port_rep_inl CARD16  port,
CARD32 base,
int  d_f,
CARD32  count
 

int port_rep_inw CARD16  port,
CARD16 base,
int  d_f,
CARD32  count
 

int port_rep_outb CARD16  port,
CARD8 base,
int  d_f,
CARD32  count
 

int port_rep_outl CARD16  port,
CARD32 base,
int  d_f,
CARD32  count
 

int port_rep_outw CARD16  port,
CARD16 base,
int  d_f,
CARD32  count
 

int run_bios_int int  num,
struct regs86 regs
 

void runINT int  num,
i86biosRegsPtr  Regs
 

void setup_io void   ) 
 


Variable Documentation

struct config Config
 

struct device Device
 

int ioperm_list[IOPERM_BITS]
 

char* logfile
 

Bool logging
 

Bool nostdout
 

struct pio P