home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2MISC / CSDPMI3S.ZIP / SRC / CWSDPMI / VCPI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-15  |  1.4 KB  |  39 lines

  1. /* Copyright (C) 1995,1996 CW Sandmann (sandmann@clio.rice.edu) 1206 Braelinn, Sugarland, TX 77479
  2.  * Copyright (C) Aug 5th 1991 Y.Shibata */
  3.  
  4. /*  Change Protect Mode Structure  */
  5. typedef    struct {
  6.     word32    page_table;    /*  Page Table Address  */
  7.     word32    gdt_address;    /*  GDT Address         */
  8.     word32    idt_address;    /*  IDT Address         */
  9.     word16    ldt_selector;    /*  LDT Selector        */
  10.     word16    tss_selector;    /*  TR  Selector        */
  11.     word32    entry_eip;    /*  Protect Mode Entry Address  */
  12.     word16    entry_cs;
  13.     }    CLIENT;
  14.  
  15. typedef    struct {
  16.     word32    offset32;
  17.     word16    selector;
  18.     }    far32;
  19.  
  20. typedef    struct {
  21.     word16    offset;
  22.     word16    segment;
  23.     }    far16;
  24.  
  25. word16    vcpi_present(void);    /*  VCPI Installed Check         */
  26. word16    vcpi_maxpage(void);    /*  VCPI Max Page Number     */
  27. word16    vcpi_capacity(void);    /*  VCPI Unallocated Page Count  */
  28. word16    vcpi_alloc(void);    /*  VCPI Allocate Page           */
  29. void    vcpi_free(word16);    /*  VCPI Deallocate Pgae         */
  30. word16    vcpi_get_pic(void);    /*  VCPI Get 8259A INT Vector    */
  31. void    vcpi_set_pic(word16);    /*  VCPI Set 8259A INT Vector    */
  32. word16    vcpi_get_secpic(void);    /*  VCPI Get 8259A INT Vector slave */
  33. void    vcpi_set_pics(word16,word16);    /*  VCPI Set 8259A INT Vectors master,slave */
  34.  
  35. word32    get_interface(void far *table,void *g);
  36.  
  37. void    ems_init(void);        /*  EMS page allocation     */
  38. void    ems_free(void);        /*  Deallocated EMS Page    */
  39.