Lines Matching defs:pc300dev
103 pc300dev_t* pc300dev; /* ptr. to info struct in PC300 driver */
131 static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char);
132 static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char);
140 void cpc_tty_unregister_service(pc300dev_t *pc300dev);
141 void cpc_tty_receive(pc300dev_t *pc300dev);
142 void cpc_tty_trigger_poll(pc300dev_t *pc300dev);
148 static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char signal)
150 pc300ch_t *pc300chan = (pc300ch_t *)pc300dev->chan;
156 pc300dev->dev->name, signal);
166 static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char signal)
168 pc300ch_t *pc300chan = (pc300ch_t *)pc300dev->chan;
174 pc300dev->dev->name, signal);
205 void cpc_tty_init(pc300dev_t *pc300dev)
212 port = pc300dev->dev->name[4] - '0';
215 pc300dev->dev->name,
222 pc300dev->dev->name,
247 pc300dev->dev->name);
259 pc300dev->dev->name, port);
267 cpc_tty->pc300dev = pc300dev;
274 pc300dev->cpc_tty = (void *)cpc_tty;
276 aux = strlen(pc300dev->dev->name);
277 memcpy(cpc_tty->name, pc300dev->dev->name, aux);
280 cpc_open(pc300dev->dev);
281 cpc_tty_signal_off(pc300dev, CTL_DTR);
343 cpc_tty_signal_on(cpc_tty->pc300dev, CTL_DTR);
390 cpc_tty_signal_off(cpc_tty->pc300dev, CTL_DTR);
392 CPC_TTY_LOCK(cpc_tty->pc300dev->chan->card, flags); /* lock irq */
395 CPC_TTY_UNLOCK(cpc_tty->pc300dev->chan->card, flags); /* unlock irq */
460 pc300chan = (pc300ch_t *)((pc300dev_t*)cpc_tty->pc300dev)->chan;
461 stats = &cpc_tty->pc300dev->dev->stats;
485 if (cpc_tty_send_to_card(cpc_tty->pc300dev, (void*)buf, count)) {
561 cpc_tty_signal_on(cpc_tty->pc300dev, CTL_RTS);
563 cpc_tty_signal_on(cpc_tty->pc300dev, CTL_DTR);
566 cpc_tty_signal_off(cpc_tty->pc300dev, CTL_RTS);
568 cpc_tty_signal_off(cpc_tty->pc300dev, CTL_DTR);
579 pc300dev_t *pc300dev = cpc_tty->pc300dev;
580 pc300ch_t *pc300chan = (pc300ch_t *)pc300dev->chan;
587 ((struct net_device*)(pc300dev->hdlc))->name);
657 cpc_tty_signal_off(cpc_tty->pc300dev, CTL_DTR);
739 void cpc_tty_receive(pc300dev_t *pc300dev)
742 pc300ch_t *pc300chan = (pc300ch_t *)pc300dev->chan;
746 struct net_device_stats *stats = &pc300dev->dev->stats;
753 if (pc300dev->cpc_tty == NULL) {
759 cpc_tty = (st_cpc_tty_area *)pc300dev->cpc_tty;
867 if (pc300dev->trace_on) {
868 cpc_tty_trace(pc300dev, new->data,rx_len, 'R');
1030 void cpc_tty_unregister_service(pc300dev_t *pc300dev)
1036 if ((cpc_tty= (st_cpc_tty_area *) pc300dev->cpc_tty) == NULL) {
1037 CPC_TTY_DBG("%s: interface is not TTY\n", pc300dev->dev->name);
1042 if (cpc_tty->pc300dev != pc300dev) {
1044 pc300dev->dev->name, cpc_tty->name);
1063 CPC_TTY_LOCK(pc300dev->chan->card,flags);
1065 CPC_TTY_UNLOCK(pc300dev->chan->card, flags);
1074 void cpc_tty_trigger_poll(pc300dev_t *pc300dev)
1076 st_cpc_tty_area *cpc_tty = (st_cpc_tty_area *)pc300dev->cpc_tty;