FreeBASIC  0.91.0
fb_dos.h File Reference

Go to the source code of this file.

Data Structures

struct  __dpmi_regs_d
 

Macros

#define FBCALL
 
#define FB_NEWLINE   "\r\n"
 
#define FB_NEWLINE_WSTR   _LC("\r\n")
 
#define FB_BINARY_NEWLINE   "\r\n"
 
#define FB_BINARY_NEWLINE_WSTR   _LC("\r\n")
 
#define FB_LL_FMTMOD   "ll"
 
#define FB_CONSOLE_MAXPAGES   8
 
#define FB_DYLIB   void*
 
#define fseeko(stream, offset, whence)   fseek(stream, offset, whence)
 
#define ftello(stream)   ftell(stream)
 
#define FB_COLOR_BLACK   (0)
 
#define FB_COLOR_BLUE   (1)
 
#define FB_COLOR_GREEN   (2)
 
#define FB_COLOR_CYAN   (3)
 
#define FB_COLOR_RED   (4)
 
#define FB_COLOR_MAGENTA   (5)
 
#define FB_COLOR_BROWN   (6)
 
#define FB_COLOR_WHITE   (7)
 
#define FB_COLOR_GREY   (8)
 
#define FB_COLOR_LBLUE   (9)
 
#define FB_COLOR_LGREEN   (10)
 
#define FB_COLOR_LCYAN   (11)
 
#define FB_COLOR_LRED   (12)
 
#define FB_COLOR_LMAGENTA   (13)
 
#define FB_COLOR_YELLOW   (14)
 
#define FB_COLOR_BWHITE   (15)
 
#define lock_var(var)   fb_dos_lock_data( (void *)&(var), sizeof(var) )
 
#define lock_array(array)   fb_dos_lock_data( (void *)(array), sizeof(array) )
 
#define lock_proc(proc)   fb_dos_lock_code( proc, (unsigned) end_##proc - (unsigned) proc )
 
#define lock_data(start, end)   fb_dos_lock_data( (&start), (const char *)(&end) - (const char *)(&start) )
 
#define lock_code(start, end)   fb_dos_lock_code( (start), (const char *)(end) - (const char *)(start) )
 
#define unlock_var(var)   fb_dos_unlock_data( (void *)&(var), sizeof(var) )
 
#define unlock_array(array)   fb_dos_unlock_data( (void *)(array), sizeof(array) )
 
#define unlock_proc(proc)   fb_dos_unlock_code( proc, (unsigned) end_##proc - (unsigned) proc )
 
#define unlock_data(start, end)   fb_dos_unlock_data( (&start), (const char *)(&end) - (const char *)(&start) )
 
#define unlock_code(start, end)   fb_dos_unlock_code( (start), (const char *)(end) - (const char *)(start) )
 
#define END_OF_FUNCTION(proc)   void end_##proc (void) { }
 
#define END_OF_STATIC_FUNCTION(proc)   static void end_##proc (void) { }
 
#define KB_PRESS   0x00000001
 
#define KB_REPEAT   0x00000002
 
#define KB_SHIFT   0x00000004
 
#define KB_CTRL   0x00000008
 
#define KB_ALT   0x00000010
 
#define KB_CAPSLOCK   0x00000020
 
#define KB_NUMLOCK   0x00000040
 
#define KB_EXTENDED   0x00000080
 

Typedefs

typedef long fb_off_t
 
typedef int(* FnIntHandler )(unsigned irq_number)
 

Functions

unsigned long fb_hGetPageAddr (int pg, int cols, int rows)
 
int fb_isr_set (unsigned irq_number, FnIntHandler pfnIntHandler, size_t fn_size, size_t stack_size)
 
int fb_isr_reset (unsigned irq_number)
 
FnIntHandler fb_isr_get (unsigned irq_number)
 
int fb_dos_cli (void)
 
int fb_dos_sti (void)
 
int fb_dos_lock_data (const void *address, size_t size)
 
int fb_dos_lock_code (const void *address, size_t size)
 
int fb_dos_unlock_data (const void *address, size_t size)
 
int fb_dos_unlock_code (const void *address, size_t size)
 
void fb_hFarMemSet (unsigned short selector, unsigned long dest, unsigned char char_to_set, size_t bytes)
 
void fb_hFarMemSetW (unsigned short selector, unsigned long dest, unsigned short word_to_set, size_t words)
 

Variables

char * __fb_startup_cwd
 
void(* __fb_dos_multikey_hook )(int scancode, int flags)
 

Macro Definition Documentation

#define END_OF_FUNCTION (   proc)    void end_##proc (void) { }

Definition at line 83 of file fb_dos.h.

#define END_OF_STATIC_FUNCTION (   proc)    static void end_##proc (void) { }

Definition at line 84 of file fb_dos.h.

#define FB_BINARY_NEWLINE   "\r\n"

Definition at line 8 of file fb_dos.h.

#define FB_BINARY_NEWLINE_WSTR   _LC("\r\n")

Definition at line 9 of file fb_dos.h.

#define FB_COLOR_BLACK   (0)

Definition at line 23 of file fb_dos.h.

#define FB_COLOR_BLUE   (1)

Definition at line 24 of file fb_dos.h.

#define FB_COLOR_BROWN   (6)

Definition at line 29 of file fb_dos.h.

#define FB_COLOR_BWHITE   (15)

Definition at line 38 of file fb_dos.h.

#define FB_COLOR_CYAN   (3)

Definition at line 26 of file fb_dos.h.

#define FB_COLOR_GREEN   (2)

Definition at line 25 of file fb_dos.h.

#define FB_COLOR_GREY   (8)

Definition at line 31 of file fb_dos.h.

#define FB_COLOR_LBLUE   (9)

Definition at line 32 of file fb_dos.h.

#define FB_COLOR_LCYAN   (11)

Definition at line 34 of file fb_dos.h.

#define FB_COLOR_LGREEN   (10)

Definition at line 33 of file fb_dos.h.

#define FB_COLOR_LMAGENTA   (13)

Definition at line 36 of file fb_dos.h.

#define FB_COLOR_LRED   (12)

Definition at line 35 of file fb_dos.h.

#define FB_COLOR_MAGENTA   (5)

Definition at line 28 of file fb_dos.h.

#define FB_COLOR_RED   (4)

Definition at line 27 of file fb_dos.h.

#define FB_COLOR_WHITE   (7)

Definition at line 30 of file fb_dos.h.

#define FB_COLOR_YELLOW   (14)

Definition at line 37 of file fb_dos.h.

#define FB_CONSOLE_MAXPAGES   8

Definition at line 13 of file fb_dos.h.

#define FB_DYLIB   void*

Definition at line 15 of file fb_dos.h.

#define FB_LL_FMTMOD   "ll"

Definition at line 11 of file fb_dos.h.

#define FB_NEWLINE   "\r\n"

Definition at line 4 of file fb_dos.h.

#define FB_NEWLINE_WSTR   _LC("\r\n")

Definition at line 5 of file fb_dos.h.

#define FBCALL

Definition at line 1 of file fb_dos.h.

#define fseeko (   stream,
  offset,
  whence 
)    fseek(stream, offset, whence)

Definition at line 20 of file fb_dos.h.

#define ftello (   stream)    ftell(stream)

Definition at line 21 of file fb_dos.h.

#define KB_ALT   0x00000010

Definition at line 90 of file fb_dos.h.

#define KB_CAPSLOCK   0x00000020

Definition at line 91 of file fb_dos.h.

#define KB_CTRL   0x00000008

Definition at line 89 of file fb_dos.h.

#define KB_EXTENDED   0x00000080

Definition at line 93 of file fb_dos.h.

#define KB_NUMLOCK   0x00000040

Definition at line 92 of file fb_dos.h.

#define KB_PRESS   0x00000001

Definition at line 86 of file fb_dos.h.

#define KB_REPEAT   0x00000002

Definition at line 87 of file fb_dos.h.

#define KB_SHIFT   0x00000004

Definition at line 88 of file fb_dos.h.

#define lock_array (   array)    fb_dos_lock_data( (void *)(array), sizeof(array) )

Definition at line 71 of file fb_dos.h.

#define lock_code (   start,
  end 
)    fb_dos_lock_code( (start), (const char *)(end) - (const char *)(start) )

Definition at line 74 of file fb_dos.h.

#define lock_data (   start,
  end 
)    fb_dos_lock_data( (&start), (const char *)(&end) - (const char *)(&start) )

Definition at line 73 of file fb_dos.h.

#define lock_proc (   proc)    fb_dos_lock_code( proc, (unsigned) end_##proc - (unsigned) proc )

Definition at line 72 of file fb_dos.h.

#define lock_var (   var)    fb_dos_lock_data( (void *)&(var), sizeof(var) )

Definition at line 70 of file fb_dos.h.

#define unlock_array (   array)    fb_dos_unlock_data( (void *)(array), sizeof(array) )

Definition at line 77 of file fb_dos.h.

#define unlock_code (   start,
  end 
)    fb_dos_unlock_code( (start), (const char *)(end) - (const char *)(start) )

Definition at line 80 of file fb_dos.h.

#define unlock_data (   start,
  end 
)    fb_dos_unlock_data( (&start), (const char *)(&end) - (const char *)(&start) )

Definition at line 79 of file fb_dos.h.

#define unlock_proc (   proc)    fb_dos_unlock_code( proc, (unsigned) end_##proc - (unsigned) proc )

Definition at line 78 of file fb_dos.h.

#define unlock_var (   var)    fb_dos_unlock_data( (void *)&(var), sizeof(var) )

Definition at line 76 of file fb_dos.h.

Typedef Documentation

typedef long fb_off_t

Definition at line 19 of file fb_dos.h.

typedef int(* FnIntHandler)(unsigned irq_number)

Definition at line 53 of file fb_dos.h.

Function Documentation

int fb_dos_cli ( void  )

Here is the caller graph for this function:

int fb_dos_lock_code ( const void *  address,
size_t  size 
)

Definition at line 55 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_dos_lock_data ( const void *  address,
size_t  size 
)

Definition at line 50 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_dos_sti ( void  )

Here is the caller graph for this function:

int fb_dos_unlock_code ( const void *  address,
size_t  size 
)

Definition at line 65 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_dos_unlock_data ( const void *  address,
size_t  size 
)

Definition at line 60 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hFarMemSet ( unsigned short  selector,
unsigned long  dest,
unsigned char  char_to_set,
size_t  bytes 
)

Definition at line 6 of file farmemset.c.

Here is the caller graph for this function:

void fb_hFarMemSetW ( unsigned short  selector,
unsigned long  dest,
unsigned short  word_to_set,
size_t  words 
)

Definition at line 18 of file farmemset.c.

unsigned long fb_hGetPageAddr ( int  pg,
int  cols,
int  rows 
)

Definition at line 83 of file io_printbuff.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FnIntHandler fb_isr_get ( unsigned  irq_number)

Definition at line 333 of file sys_isr.c.

int fb_isr_reset ( unsigned  irq_number)

Definition at line 299 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_isr_set ( unsigned  irq_number,
FnIntHandler  pfnIntHandler,
size_t  fn_size,
size_t  stack_size 
)

Definition at line 254 of file sys_isr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

void(* __fb_dos_multikey_hook)(int scancode, int flags)

Definition at line 85 of file fb_dos.h.

char* __fb_startup_cwd

Definition at line 10 of file hinit.c.