home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 October / VPR9710A.ISO / BENCH / DJ1SRC_K / 105 / VCPI.H < prev    next >
C/C++ Source or Header  |  1997-05-02  |  1KB  |  47 lines

  1. /*  This is file VCPI.H  */
  2. /*
  3.    **  Copyright (C) Aug 5th 1991 Y.Shibata
  4.    **  This file is distributed under the term of GNU GPL.
  5.    **
  6.  */
  7. /* 1997/05/01 modified by Kimio Itoh(kitoh@nn.iij4u.or.jp) 
  8.    for reduce binary size and for dead code elimination.
  9.  */
  10. #ifndef _VCPI_H_
  11. #define _VCPI_H_
  12.  
  13. /*  Change Protect Mode Structure  */
  14. typedef struct {
  15.     word32 page_table;            /*  Page Table Address  */
  16.     word32 gdt_address;            /*  GDT Address         */
  17.     word32 idt_address;            /*  IDT Address         */
  18.     word16 ldt_selector;        /*  LDT Selector        */
  19.     word16 tss_selector;        /*  TR  Selector        */
  20.     word32 entry_eip;            /*  Protect Mode Entry Address  */
  21.     word16 entry_cs;
  22. } CLIENT;
  23.  
  24. typedef struct {
  25.     word32 offset32;
  26.     word16 selector;
  27. } far32;
  28.  
  29. typedef struct {
  30.     word16 limit_16;
  31.     word32 base_32;
  32. } SYS_TBL;
  33.  
  34. word16 vcpi_present(void);        /*  VCPI Installed Check         */
  35. word16 vcpi_capacity(void);        /*  VCPI Unallocated Page Count  */
  36. word16 vcpi_alloc(void);        /*  VCPI Allocate Page           */
  37. void vcpi_free(word16);            /*  VCPI Deallocate Pgae         */
  38. word16 vcpi_get_pic(void);        /*  VCPI Get 8259A INT Vector    */
  39. void vcpi_set_pic(word16);        /*  VCPI Set 8259A INT Vector    */
  40.  
  41. word32 get_interface(void far * table, void *g);
  42.  
  43. word16 emm_present(void);        /*  EMM Installed Check          */
  44. void ems_free(word16);            /*  Deallocated EMS Pages        */
  45.  
  46. #endif
  47.