1 |
1275 |
phoenix |
/*
|
2 |
|
|
*
|
3 |
|
|
* (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
|
4 |
|
|
*
|
5 |
|
|
*
|
6 |
|
|
* This program is free software; you can redistribute it and/or modify
|
7 |
|
|
* it under the terms of the GNU General Public License as published by
|
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
9 |
|
|
* (at your option) any later version.
|
10 |
|
|
*
|
11 |
|
|
* This program is distributed in the hope that it will be useful,
|
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
|
|
* GNU General Public License for more details.
|
15 |
|
|
*
|
16 |
|
|
* You should have received a copy of the GNU General Public License
|
17 |
|
|
* along with this program; if not, write to the Free Software
|
18 |
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
19 |
|
|
*/
|
20 |
|
|
#ifndef _cirrusprots_h
|
21 |
|
|
#define _cirrusprots_h
|
22 |
|
|
|
23 |
|
|
#ifdef RTA
|
24 |
|
|
extern void cd1400_reset ( int uart) ;
|
25 |
|
|
extern void cd1400_init ( int uart ) ;
|
26 |
|
|
extern void ccr_wait ( int priority, int port) ;
|
27 |
|
|
extern void cd1400_txstart( int port) ;
|
28 |
|
|
extern void cd1400_rxstart ( int port) ;
|
29 |
|
|
extern void command_acknowledge ( PHB *port_header ) ;
|
30 |
|
|
extern int close_port ( ushort port, PHB *port_header, ushort preemptive, int pseudo) ;
|
31 |
|
|
extern void command_preemptive ( PKT *packet) ;
|
32 |
|
|
extern void rup_service ( void ) ;
|
33 |
|
|
extern ushort GetModemLines(struct PHB *, register short *);
|
34 |
|
|
extern void cd1400_intr (Process *cirrus_p, ushort *RtaType) ;
|
35 |
|
|
extern void cd1400_mdint ( short port) ;
|
36 |
|
|
extern void cd1400_rxint ( short port) ;
|
37 |
|
|
extern void cd1400_rxexcept ( short port) ;
|
38 |
|
|
extern void cd1400_txdata ( short port, PHB *port_header, PKT *packet) ;
|
39 |
|
|
extern void cd1400_fast_clock(void);
|
40 |
|
|
extern void cd1400_map_baud ( ushort host_rate, ushort *prescaler, ushort *divisor) ;
|
41 |
|
|
extern void cd1400_modem ( ushort port, ushort way) ;
|
42 |
|
|
extern void cd1400_txcommand ( short port, PHB *port_header, PKT *packet) ;
|
43 |
|
|
extern void cd1400_txint ( int port) ;
|
44 |
|
|
void Rprintf( char *RIOPrBuf, char *Str, ... );
|
45 |
|
|
#if defined(DCIRRUS)
|
46 |
|
|
void debug_packet(PKT *pkt, int option, char *string, int channel);
|
47 |
|
|
#endif /* defined(DCIRRUS) */
|
48 |
|
|
#endif
|
49 |
|
|
|
50 |
|
|
#ifdef HOST
|
51 |
|
|
extern void wflush (PHB *);
|
52 |
|
|
extern void command_preemptive (PKT *);
|
53 |
|
|
#endif
|
54 |
|
|
|
55 |
|
|
#endif /* _cirrusprots_h */
|