cdproto.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* 
  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. #ifdef RTA
  23. extern void cd1400_reset ( int uart) ;
  24. extern void cd1400_init ( int uart ) ;
  25. extern void ccr_wait ( int priority, int port) ;
  26. extern void cd1400_txstart( int port) ;
  27. extern void cd1400_rxstart ( int port) ;
  28. extern void command_acknowledge ( PHB *port_header ) ;
  29. extern int close_port ( ushort port, PHB *port_header, ushort preemptive, int pseudo) ;
  30. extern void command_preemptive ( PKT *packet) ;
  31. extern void rup_service ( void ) ;
  32. extern ushort GetModemLines(struct PHB *, register short *);
  33. extern void cd1400_intr (Process *cirrus_p, ushort *RtaType) ;
  34. extern void cd1400_mdint ( short port) ;
  35. extern void cd1400_rxint ( short port) ;
  36. extern void cd1400_rxexcept ( short port) ;
  37. extern void cd1400_txdata ( short port, PHB *port_header, PKT *packet) ;
  38. extern void cd1400_fast_clock(void);
  39. extern void cd1400_map_baud ( ushort host_rate, ushort *prescaler, ushort *divisor) ;
  40. extern void cd1400_modem ( ushort port, ushort way) ;
  41. extern void cd1400_txcommand ( short port, PHB *port_header, PKT *packet) ;
  42. extern void cd1400_txint ( int port) ;
  43. void Rprintf( char *RIOPrBuf, char *Str, ... );
  44. #if defined(DCIRRUS)
  45. void debug_packet(PKT *pkt, int option, char *string, int channel);
  46. #endif /* defined(DCIRRUS) */
  47. #endif
  48. #ifdef HOST
  49. extern void wflush (PHB *);
  50. extern void command_preemptive (PKT *);
  51. #endif
  52. #endif /* _cirrusprots_h */