home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 3 / hamradioversion3.0examsandprograms1992.iso / packet / n17jsrc / hardware.h < prev    next >
C/C++ Source or Header  |  1991-07-04  |  2KB  |  86 lines

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