1 /* pro_null.c: null serial device
2 
3    Copyright (c) 1997-2003, Tarik Isani (xhomer@isani.org)
4 
5    This file is part of Xhomer.
6 
7    Xhomer is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License version 2
9    as published by the Free Software Foundation.
10 
11    Xhomer 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 Xhomer; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20 
21 
22 /* TBD:
23 */
24 
25 #ifdef PRO
26 #include "pdp11_defs.h"
27 
28 
29 /* Null code entry points */
30 
31 struct sercall pro_null = {&pro_null_get, &pro_null_put,
32 	                   &pro_null_ctrl_get, &pro_null_ctrl_put,
33 	                   &pro_null_reset, &pro_null_exit};
34 
35 
36 /* Get character from null */
37 
pro_null_get(int dev)38 int pro_null_get (int dev)
39 {
40 	return PRO_NOCHAR;
41 }
42 
43 
44 /* Send character to null */
45 
pro_null_put(int dev,int schar)46 int pro_null_put (int dev, int schar)
47 {
48 	return PRO_SUCCESS;
49 }
50 
51 
52 /* Return serial line parameters */
53 
pro_null_ctrl_get(int dev,struct serctrl * sctrl)54 void pro_null_ctrl_get (int dev, struct serctrl *sctrl)
55 {
56 	/* These are hardwired */
57 
58 	sctrl->dsr = 0;
59 	sctrl->cts = 0;
60 	sctrl->ri = 0;
61 	sctrl->cd = 0;
62 }
63 
64 
65 /* Set serial line parameters */
66 
pro_null_ctrl_put(int dev,struct serctrl * sctrl)67 void pro_null_ctrl_put (int dev, struct serctrl *sctrl)
68 {
69 }
70 
71 
72 /* Reset null */
73 
pro_null_reset(int dev,int portnum)74 void pro_null_reset (int dev, int portnum)
75 {
76 }
77 
78 
79 /* Exit routine */
80 
pro_null_exit(int dev)81 void pro_null_exit (int dev)
82 {
83 }
84 #endif
85