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

  1. /* Copyright (C) 1995,1996 CW Sandmann (sandmann@clio.rice.edu) 1206 Braelinn, Sugarland, TX 77479
  2. ** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.cws", available from CW Sandmann at the address above.
  6. ** A copy of "copying.cws" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.cws".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. typedef struct {
  15.   word32 cb_address;
  16.   word16 cb_sel;
  17.   word8  cb_type;    /* 0 = DPMI, 1 = internal interrupt */
  18.   word8  cb_filler;
  19.   word32 reg_ptr;
  20.   word16 reg_sel;
  21.   word16 reg_filler;
  22. } dpmisim_rmcb_struct;
  23.  
  24. #define num_rmcb 24    /* 16 + 8 extra since we use for HW ints */
  25.  
  26. extern dpmisim_rmcb_struct dpmisim_rmcb[num_rmcb];
  27.  
  28. extern dpmisim_rmcb0();
  29. extern dpmisim_rmcb1();
  30.  
  31. extern word16 dpmisim_regs[25];
  32. extern void dpmisim(void);
  33.  
  34. extern void do_raw_switch_ret(void);
  35. extern void savestate_real(void);
  36. extern void savestate_prot(void);
  37.  
  38. extern word16 DPMIsp;
  39. extern word8 far cpu_family;
  40. extern void interrupt (* far oldint2f)();
  41. extern void interrupt dpmiint2f(void);
  42.  
  43. extern void user_exception_return(void);
  44. extern void ring0_iret(void);
  45. extern void interrupt int23(void);
  46. extern void interrupt int24(void);
  47.  
  48. extern void do_raw_switch(void);
  49.