home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dec92.zip / 1012022B < prev    next >
Text File  |  1992-10-13  |  1KB  |  23 lines

  1. /*
  2.  * TERM286.H  Copyright (C) 1992 Mark R. Nelson.
  3.  *
  4.  * This header file contains the definition of the port structure
  5.  * used in the TERM286.H program.  This structure is accessed by
  6.  * both the real and protected mode ISRs, as well as the foreground
  7.  * program.
  8.  *
  9.  */
  10. struct port_data {
  11.     int uart_address;           /* Base address of the UART       */
  12.     int head_pointer;           /* Index into the buffer          */
  13.     int tail_pointer;           /* The other index into the buffer*/
  14.     PIHANDLER old_prot_vector;  /* Saved prot mode vector         */
  15.     REALPTR old_real_vector;    /* Saved real mode vector         */
  16.     int irq_mask;               /* Mask to apply to the 8259 PIC  */
  17.     int interrupt_number;       /* The int number for this port   */
  18.     int prot_count;             /* Count of port mode interrupts  */
  19.     int real_count;             /* Count of real mode interrupts  */
  20.     char buffer[ 1024 ];        /* The input storage buffer       */
  21. };
  22.  
  23.