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 struct i86biosRegsi86biosRegsPtr

Enumerations

enum  dev_type { NONE, ISA, PCI }

Functions

void setup_io (void)
void do_x86 (unsigned long bios_start, i86biosRegsPtr regs, int cpuemu)
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

struct device Device
struct pio P
struct 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

Referenced by copy_vbios(), and mapPciRom().


Typedef Documentation

typedef int Bool

typedef unsigned short CARD16

typedef unsigned int CARD32

typedef unsigned char CARD8

typedef struct i86biosRegs * i86biosRegsPtr

typedef unsigned int memType


Enumeration Type Documentation

enum dev_type

Enumerator:
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,
int  cpuemu 
)

References collect_bios_regs(), do_vm86(), and setup_vm86().

Referenced by CallInt10().

void dprint ( unsigned long  start,
unsigned long  size 
)

Referenced by run_bios_int().

CARD32 getIntVect ( int  num  ) 

Referenced by int42_handler().

CARD32 getIP ( void   ) 

References CPU_REG, regs86::cs, and regs86::eip.

int int_handler ( int  num,
struct regs86 regs 
)

References int1A_handler(), and int42_handler().

Referenced by vm86_do_int().

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 
)

Referenced by vm86_GP_fault().

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

Referenced by vm86_GP_fault().

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

Referenced by vm86_GP_fault().

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

Referenced by vm86_GP_fault().

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

Referenced by vm86_GP_fault().

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

Referenced by vm86_GP_fault().

int run_bios_int ( int  num,
struct regs86 regs 
)

void runINT ( int  num,
i86biosRegsPtr  Regs 
)

void setup_io ( void   ) 

References pio::inb, pio::inl, pio::inw, pio::outb, pio::outl, pio::outw, P, and void().

Referenced by InitInt10().


Variable Documentation

struct config Config

struct device Device

int ioperm_list[IOPERM_BITS]

char* logfile

struct pio P

Referenced by setup_io(), and vm86_GP_fault().