home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / KA9Q212.ZIP / PC.H < prev    next >
C/C++ Source or Header  |  1993-07-16  |  3KB  |  89 lines

  1. /****************************************************************************
  2. *    $Id: pc.h 1.3 93/07/16 11:48:24 ROOT_DOS Exp $
  3. *    15 Jul 93    1.2        GT    Fix warnings.                                    *
  4. ****************************************************************************/
  5.  
  6. #ifndef    _PC_H
  7. #define    _PC_H
  8. #define _HARDWARE_H
  9.  
  10. #ifndef    _GLOBAL_H
  11. #include "global.h"
  12. #endif
  13.  
  14. #ifndef _SESSION_H
  15. #include "session.h"
  16. #endif
  17.  
  18. #define    NSW    10    /* Number of stopwatch "memories" */
  19.  
  20. struct stopwatch {
  21.     long calls;
  22.     int16 maxval;
  23.     int16 minval;
  24. };
  25. struct screen {
  26.     char *save;        /* Screen save buffer */
  27.     int row;        /* Saved cursor location */
  28.     int col;
  29. };
  30. #define    NULLSCREEN    (struct screen *)0
  31.  
  32. extern struct stopwatch Sw[];
  33. extern int16 Intstk[];    /* Interrupt stack defined in pcgen.asm */
  34. extern void (*Shutdown[])();    /* List of functions to call at shutdown */
  35. extern int Mtasker;    /* Type of multitasker, if any */
  36.  
  37. /* In 8250.c: */
  38. void asytimer __ARGS((void));
  39.  
  40. /* In scc.c: */
  41. void scctimer __ARGS((void));
  42. void sccstop __ARGS((void));
  43.  
  44. /* In pc.c: */
  45. void newscreen __ARGS((struct session *sp));
  46. void freescreen __ARGS((struct session *sp));
  47. long bioscnt __ARGS((void));
  48. void clrbit __ARGS((unsigned port,char bits));
  49. void ctick __ARGS((void));
  50. int32 divrem __ARGS((int32 dividend,int16 divisor));
  51. INTERRUPT  (*getirq __ARGS((unsigned int)) ) __ARGS((void));
  52. int getmask __ARGS((unsigned irq));
  53. void ioinit __ARGS((void));
  54. void iostop __ARGS((void));
  55. void kbint __ARGS((void));
  56. int kbread __ARGS((void));
  57. int maskoff __ARGS((unsigned irq));
  58. int maskon __ARGS((unsigned irq));
  59. void pctick __ARGS((void));
  60. void setbit __ARGS((unsigned port,char bits));
  61. int setirq __ARGS((unsigned irq,INTERRUPT (*handler) __ARGS((void))));
  62. void sysreset __ARGS((void));
  63. void systick __ARGS((void));
  64. void writebit __ARGS((unsigned port,char mask,int val));
  65.  
  66. /* In pcgen.asm: */
  67. INTERRUPT btick __ARGS((void));
  68. void chktasker __ARGS((void));
  69. void chtimer __ARGS((INTERRUPT (*)()));
  70. int32 divrem __ARGS((int32 dividend,int16 divisor));
  71. int16 getss __ARGS((void));
  72. void giveup __ARGS((void));
  73. int kbraw __ARGS((void));
  74. int16 longdiv __ARGS((int16 divisor,int n,int16 *dividend));
  75. int16 longmul __ARGS((int16 multiplier,int n,int16 *multiplicand));
  76. INTERRUPT nullvec __ARGS((void));
  77. void uchtimer __ARGS((void));
  78. int16 clockbits __ARGS((void));
  79.  
  80. /* In stopwatch.asm: */
  81. void swstart __ARGS((void));
  82. int16 stopval __ARGS((void));
  83.  
  84. /* In sw.c: */
  85. void swstop __ARGS((int n));
  86.  
  87. #endif    /* _PC_H */
  88.  
  89.