home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / misc / tcpipsrc / hardware.h < prev    next >
C/C++ Source or Header  |  1991-01-30  |  2KB  |  81 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. unsigned int32 divrem __ARGS((int32 dividend,int16 divisor));
  43. INTERRUPT  __ARGS((*getirq __ARGS((unsigned int)) )) __ARGS((void));
  44. void freescreen __ARGS((struct session *sp));
  45. int getmask __ARGS((unsigned irq));
  46. void ioinit __ARGS((void));
  47. void iostop __ARGS((void));
  48. void kbint __ARGS((void));
  49. int kbread __ARGS((void));
  50. int maskoff __ARGS((unsigned irq));
  51. int maskon __ARGS((unsigned irq));
  52. void newscreen __ARGS((struct session *sp));
  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.  
  58. /* In pcgen.asm: */
  59. INTERRUPT btick __ARGS((void));
  60. void chktasker __ARGS((void));
  61. void chtimer __ARGS((INTERRUPT (*)()));
  62. int32 divrem __ARGS((int32 dividend,int16 divisor));
  63. int16 getss __ARGS((void));
  64. void giveup __ARGS((void));
  65. int kbraw __ARGS((void));
  66. int16 longdiv __ARGS((int16 divisor,int n,int16 *dividend));
  67. int16 longmul __ARGS((int16 multiplier,int n,int16 *multiplicand));
  68. INTERRUPT nullvec __ARGS((void));
  69. void uchtimer __ARGS((void));
  70. int16 clockbits __ARGS((void));
  71.  
  72. /* In stopwatch.asm: */
  73. void swstart __ARGS((void));
  74. int16 stopval __ARGS((void));
  75.  
  76. /* In sw.c: */
  77. void swstop __ARGS((int n));
  78.  
  79. #endif    /* _PC_H */
  80.  
  81.