register struct device
*addr
;
if ((tp
->t_state
&ISOPEN
) == 0) {
tp
->t_state
= ISOPEN
|CARR_ON
;
tp
->t_flags
= EVENP
|ECHO
|XTABS
|CRMOD
;
mtpr(RXCS
, mfpr(RXCS
)|RXCS_IE
);
mtpr(TXCS
, mfpr(TXCS
)|TXCS_IE
);
if (tp
->t_outq
.c_cc
== 0 || tp
->t_outq
.c_cc
== TTLOWAT
)
wakeup((caddr_t
)&tp
->t_outq
);
register struct device
*addr
;
consioctl(dev
,cmd
,addr
,flag
)
if (ttioccom(cmd
,tp
,addr
,dev
) ==0)
register struct device
*addr
;
if( (mfpr(TXCS
)&TXCS_RDY
) == 0)
if ((c
=getc(&tp
->t_outq
)) >= 0) {
mtpr(TXDB
, (c
| (partab
[c
]&0200))&0xff);
timeout(ttrstrt
, (caddr_t
)tp
, (c
&0177));
char *msgbufp
= msgbuf
; /* Next saved printf character */
* Print a character on console.
* Attempts to save and restore device
* If the switches are 0, all
* Whether or not printing is inhibited,
* the last MSGBUFS characters
* are saved in msgbuf for inspection later.
if (c
!= '\0' && c
!= '\r' && c
!= 0177) {
if(msgbufp
>= &msgbuf
[MSGBUFS
])
* Try waiting for the console tty to come ready,
* otherwise give up after a reasonable time.
while((mfpr(TXCS
)&TXCS_RDY
) == 0)