File tree Expand file tree Collapse file tree 4 files changed +53
-70
lines changed Expand file tree Collapse file tree 4 files changed +53
-70
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,6 @@ SET(MAIKO_HDRS
420420 inc/tos1defs.h
421421 inc/tosfns.h
422422 inc/tosret.h
423- inc/tty.h
424423 inc/typeofdefs.h
425424 inc/ubf1defs.h
426425 inc/ubf2defs.h
Original file line number Diff line number Diff line change @@ -843,7 +843,7 @@ $(OBJECTDIR)timer.o: $(SRCDIR)timer.c $(REQUIRED-INCS) \
843843$(OBJECTDIR)tty.o: $(SRCDIR)tty.c $(REQUIRED-INCS) \
844844 $(INCDIR)lispemul.h $(INCDIR)lispmap.h \
845845 $(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lspglob.h \
846- $(INCDIR)commondefs.h $(INCDIR)tty.h $(INCDIR) ttydefs.h
846+ $(INCDIR)commondefs.h $(INCDIR)ttydefs.h
847847 $(CC) $(RFLAGS) $(SRCDIR)tty.c -o $(OBJECTDIR)tty.o
848848
849849$(OBJECTDIR)typeof.o: $(SRCDIR)typeof.c $(REQUIRED-INCS) \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222#include "lsptypes.h"
2323#include "lspglob.h"
2424#include "commondefs.h"
25- #include "tty.h"
2625#include "ttydefs.h"
2726
27+ /* TTY Commands and structures for communicating with Lisp */
28+
29+ #define TTY_GET_STATUS 33280>>8
30+ #define TTY_ON 33536>>8
31+ #define TTY_OFF 33792>>8
32+ #define TTY_BREAK_ON 34304>>8
33+ #define TTY_BREAK_OFF 34560>>8
34+ #define PUT_CHAR 128
35+ #define ABORT_PUT 133
36+ #define SET_PARAM 129
37+ #define SET_DSR 33025
38+ #define SET_CTS 33026
39+ #define SET_CHAR_LENGTH 33028
40+ #define SET_PARITY 33032
41+ #define SET_STOP_BITS 33040
42+ #define SET_BAUD_RATE 33056
43+ #define SET_ALL_PARAMETERS 33087
44+
45+ typedef struct {
46+ unsigned command : 8 ;
47+ unsigned outdata : 8 ;
48+ } DLTTY_OUT_COMMAND ;
49+
50+ typedef struct {
51+ unsigned on_off : 4 ;
52+ unsigned line_speed : 4 ;
53+ unsigned stop_bits : 2 ;
54+ unsigned parity : 2 ;
55+ unsigned char_length : 2 ;
56+ unsigned clear_to_send : 1 ;
57+ unsigned data_set_ready : 1 ;
58+ DLword notify_mask ;
59+ } DLTTY_OUT_CSB ;
60+
61+ typedef struct {
62+ unsigned state : 1 ;
63+ unsigned nil1 : 7 ;
64+ unsigned success : 1 ;
65+ unsigned break_detected : 1 ;
66+ unsigned framing_error : 1 ;
67+ unsigned data_lost : 1 ;
68+ unsigned parity_error : 1 ;
69+ unsigned nil2 : 2 ;
70+ unsigned not_ready : 1 ;
71+ char in_data ;
72+ unsigned data_terminal_ready : 1 ;
73+ unsigned nil3 : 4 ;
74+ unsigned request_to_send : 1 ;
75+ unsigned rx_ready : 1 ;
76+ unsigned tx_ready : 1 ;
77+ } DLTTY_IN_CSB ;
78+
2879static DLTTY_OUT_COMMAND * DLTTYPortCmd ;
2980static DLTTY_IN_CSB * DLTTYIn ;
3081static DLTTY_OUT_CSB * DLTTYOut ;
You can’t perform that action at this time.
0 commit comments