|
|
1.1 root 1: #ifndef __GSCI_DOT_H
2: #define __GSCI_DOT_H
3:
4: #include "gsci.h"
5: /*
6: * _GSCI.H 5.20A June 8, 1995
7: *
8: * The Greenleaf Comm Library
9: *
10: * Copyright (C) 1991-1995 Greenleaf Software Inc. All Rights Reserved.
11: *
12: * NOTES
13: *
14: * This header file contains constants, structures, and definitions
15: * used by the Greenleaf Standard Communications Interface code.
16: * There should generally not be any reason for an end user of the
17: * library to include this file.
18: *
19: * MODIFICATIONS
20: *
21: * December 12, 1992 4.00A : Initial release
22: */
23:
24: #define CRCTAB_LENGTH 90
25: #define _ISA_PORTS 4
26: #define _MC_PORTS 8
27:
28: int GF_CONV _DumpPortStatusGreenleaf( PORT *port, PORT_DUMPER printer );
29: PORT * GF_CONV _PortAttachGreenleafHandle( int port_number );
30: void GF_CONV _InitializeGreenleafData( void );
31: extern unsigned int _isa_8250ports[ _ISA_PORTS ];
32: extern unsigned int _mc_8250ports[ _MC_PORTS ];
33: extern unsigned int as_8250port[ MAX_PORT ];
34: extern unsigned char _isa_intnums[ _ISA_PORTS ];
35: extern unsigned char _mc_intnums[ _MC_PORTS ];
36: extern unsigned char as_intnums[ MAX_PORT ] ;
37: extern unsigned as_8259ports[ MAX_PORT ];
38: extern unsigned char _isa_8259irq[ _ISA_PORTS ];
39: extern unsigned char _mc_8259irq[ _MC_PORTS ];
40: extern unsigned char as_8259irq[ MAX_PORT ];
41: extern int as_brkdly[ MAX_PORT ];
42: extern int as_wmodem[ MAX_PORT ];
43: extern int as_wtime[ MAX_PORT ];
44: extern int as_rtime[ MAX_PORT ];
45: extern unsigned int as_shioad[ MAX_PORT ];
46: extern unsigned int as_shbmask[ MAX_PORT ];
47: extern unsigned char as_out12_mask[ MAX_PORT ];
48: extern unsigned char as_ls_ms_ier[ MAX_PORT ];
49: extern int _GreenleafDataInitialized;
50: extern unsigned int inttbl[ MAX_PORT ];
51: extern char crctab[ CRCTAB_LENGTH ];
52:
53:
54: void GF_CDECL GF_FAR _GsciIsaIsrDispatcher( void GF_FAR *port );
55: void GF_CDECL GF_FAR _GsciMcIsrDispatcher( void GF_FAR *first_ptb );
56:
57: /*
58: * This is an experimental routine that I am using to try using
59: * to read the modem status register directly... This has caused
60: * big time problems in the past!!!
61: */
62:
63: int GF_CDECL _asigetmsr( struct PORT_TABLE *port_structure );
64: int GF_CDECL _asgetc( unsigned base_8250_address );
65: int GF_CDECL _asputc( unsigned base_8250_address, int c );
66: int GF_CDECL _asigetc( struct PORT_TABLE *port_structure );
67: int GF_CDECL _asiputc( struct PORT_TABLE *port_structure,
68: int character );
69: int GF_CDECL _asipekc( struct PORT_TABLE *port_structure );
70: void GF_CDECL _asiprime( struct PORT_TABLE *port_structure );
71: int GF_CONV _asrts( unsigned io_address,
72: int on_off,
73: struct PORT_TABLE *port_structure );
74: int GF_CONV _asdtr( unsigned io_address, int on_off );
75: void GF_CDECL _asiresume( unsigned port,
76: int interrupt_register,
77: struct PORT_TABLE *port_structure );
78: void GF_CDECL _asihold( unsigned base_8250_address,
79: int interrupt_register,
80: struct PORT_TABLE *port_structure );
81: int GF_CONV _asiinit( unsigned io_address,
82: int divisor,
83: unsigned parity_stop_bits_word_length );
84: void GF_CONV _asibreak( unsigned io_address,int on_off );
85: int GF_CONV _asistart( struct PORT_TABLE *port_structure );
86: void GF_CONV _asidiag( unsigned io_address, int on_off );
87: void GF_CONV _asiquit( enum GSCI_HANDLER_TYPE latch,
88: struct PORT_TABLE *port_structure);
89: int GF_CONV _asifirst( int port_number,
90: enum GSCI_HANDLER_TYPE latch,
91: struct PORT_TABLE *port_structure );
92:
93: int GF_CONV InterruptInUseByOthers( int interrupt_number );
94:
95:
96: #endif /* #ifndef __GSCI_DOT_H */
97:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.