int unit, mynor, umynor, port; /* SG */
struct rp_port *rp;
struct tty *tp;
- CHANNEL_t *cp;
lwkt_gettoken(&tty_token);
umynor = (((minor(dev) >> 16) -1) * 32); /* SG */
return(0);
}
rp = rp_addr(unit) + port;
- cp = &rp->rp_channel;
tp = rp->rp_tty;
crit_enter();
static void
rphardclose(struct rp_port *rp)
{
- int mynor;
struct tty *tp;
CHANNEL_t *cp;
ASSERT_LWKT_TOKEN_HELD(&tty_token);
cp = &rp->rp_channel;
tp = rp->rp_tty;
- mynor = MINOR_MAGIC(tp->t_dev);
sFlushRxFIFO(cp);
sFlushTxFIFO(cp);
u_long cmd = ap->a_cmd;
caddr_t data = ap->a_data;
struct rp_port *rp;
- CHANNEL_t *cp;
struct tty *tp;
int unit, mynor, port, umynor; /* SG */
int error = 0;
int arg, flags, result, ChanStatus;
- struct termios *t;
lwkt_gettoken(&tty_token);
umynor = (((minor(dev) >> 16) -1) * 32); /* SG */
}
tp = rp->rp_tty;
- cp = &rp->rp_channel;
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
term = tp->t_termios;
dt->c_ospeed = tp->t_ospeed;
}
- t = &tp->t_termios;
-
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data,
ap->a_fflag, ap->a_cred);
if(error != ENOIOCTL) {
CHANNEL_t *cp;
struct clist *qp;
int unit, mynor, port, umynor; /* SG */
- char flags;
int xmit_fifo_room;
int count, wcount;
unit = minor_to_unit[mynor];
rp = rp_addr(unit) + port;
cp = &rp->rp_channel;
- flags = rp->rp_channel.TxControl[3];
crit_enter();
if(tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) {
int num_ports, num_aiops;
int aiop;
CONTROLLER_t *ctlp;
- int unit;
int retval;
u_int32_t stcmd;
ctlp = device_get_softc(dev);
bzero(ctlp, sizeof(*ctlp));
ctlp->dev = dev;
- unit = device_get_unit(dev);
ctlp->aiop2rid = rp_pci_aiop2rid;
ctlp->aiop2off = rp_pci_aiop2off;
ctlp->ctlmask = rp_pci_ctlmask;
static int stl_initports(stlbrd_t *brdp, stlpanel_t *panelp)
{
stlport_t *portp;
- unsigned int chipmask;
int i, j;
#if STLDEBUG
kprintf("stl_initports(panelp=%x)\n", (int) panelp);
#endif
- chipmask = stl_panelinit(brdp, panelp);
-
/*
* All UART's are initialized if found. Now go through and setup
* each ports data structures. Also initialize each individual
static __inline void stl_cd1400txisr(stlpanel_t *panelp, int ioaddr)
{
- struct tty *tp;
stlport_t *portp;
unsigned char ioack, srer;
char *head, *tail;
return;
}
portp = panelp->ports[(ioack >> 3)];
- tp = &portp->tty;
/*
* Unfortunately we need to handle breaks in the data stream, since