Lines Matching refs:bp

139 static inline int board_No (struct Aurora_board const * bp)  in board_No()  argument
141 return bp - aurora_board; in board_No()
190 static int aurora_init_CD180(struct Aurora_board * bp, int chip) in aurora_init_CD180() argument
197 board_No(bp), chip); in aurora_init_CD180()
200 sbus_writeb(0, &bp->r[chip]->r[CD180_CAR]); in aurora_init_CD180()
201 sbus_writeb(0, &bp->r[chip]->r[CD180_GSVR]); in aurora_init_CD180()
204 aurora_wait_CCR(bp->r[chip]); in aurora_init_CD180()
207 sbus_writeb(CCR_HARDRESET, &bp->r[chip]->r[CD180_CCR]); in aurora_init_CD180()
212 (sbus_readb(&bp->r[chip]->r[CD180_GSVR])!=0xff))udelay(100); in aurora_init_CD180()
215 board_No(bp), chip); in aurora_init_CD180()
220 sbus_writeb((board_No(bp)<<5)|((chip+1)<<3), in aurora_init_CD180()
221 &bp->r[chip]->r[CD180_GSVR]); /* Set ID for this chip */ in aurora_init_CD180()
222 sbus_writeb(0x80|bp->ACK_MINT, in aurora_init_CD180()
223 &bp->r[chip]->r[CD180_MSMR]); /* Prio for modem intr */ in aurora_init_CD180()
224 sbus_writeb(0x80|bp->ACK_TINT, in aurora_init_CD180()
225 &bp->r[chip]->r[CD180_TSMR]); /* Prio for transmitter intr */ in aurora_init_CD180()
226 sbus_writeb(0x80|bp->ACK_RINT, in aurora_init_CD180()
227 &bp->r[chip]->r[CD180_RSMR]); /* Prio for receiver intr */ in aurora_init_CD180()
229 sbus_writeb((bp->oscfreq/(1000000/AURORA_TPS)) >> 8, in aurora_init_CD180()
230 &bp->r[chip]->r[CD180_PPRH]); in aurora_init_CD180()
231 sbus_writeb((bp->oscfreq/(1000000/AURORA_TPS)) & 0xff, in aurora_init_CD180()
232 &bp->r[chip]->r[CD180_PPRL]); in aurora_init_CD180()
235 &bp->r[chip]->r[CD180_SRCR]); in aurora_init_CD180()
237 id = sbus_readb(&bp->r[chip]->r[CD180_GFRCR]); in aurora_init_CD180()
239 board_No(bp), chip,id); in aurora_init_CD180()
240 if(sbus_readb(&bp->r[chip]->r[CD180_SRCR]) & 128) { in aurora_init_CD180()
280 struct Aurora_board *bp; in aurora_probe() local
297 bp = &aurora_board[bn]; in aurora_probe()
298 bp->r0 = (struct aurora_reg1 *) in aurora_probe()
302 if (bp->r0 == NULL) { in aurora_probe()
308 printk("Map reg 0: %p\n", bp->r0); in aurora_probe()
310 bp->r[0] = (struct aurora_reg128 *) in aurora_probe()
314 if (bp->r[0] == NULL) { in aurora_probe()
320 printk("Map reg 1: %p\n", bp->r[0]); in aurora_probe()
322 bp->r[1] = (struct aurora_reg128 *) in aurora_probe()
326 if (bp->r[1] == NULL) { in aurora_probe()
332 printk("Map reg 2: %p\n", bp->r[1]); in aurora_probe()
334 bp->r3 = (struct aurora_reg4 *) in aurora_probe()
338 if (bp->r3 == NULL) { in aurora_probe()
344 printk("Map reg 3: %p\n", bp->r3); in aurora_probe()
347 bp->flags = 0; in aurora_probe()
352 if ((bp->irq=irqs[bn]) && valid_irq(bp->irq) && in aurora_probe()
353 !request_irq(bp->irq|0x30, aurora_interrupt, SA_SHIRQ, "sio16", bp)) { in aurora_probe()
354 free_irq(bp->irq|0x30, bp); in aurora_probe()
356 if ((bp->irq=prom_getint(sdev->prom_node, "bintr")) && valid_irq(bp->irq) && in aurora_probe()
357 !request_irq(bp->irq|0x30, aurora_interrupt, SA_SHIRQ, "sio16", bp)) { in aurora_probe()
358 free_irq(bp->irq|0x30, bp); in aurora_probe()
360 if ((bp->irq=prom_getint(sdev->prom_node, "intr")) && valid_irq(bp->irq) && in aurora_probe()
361 !request_irq(bp->irq|0x30, aurora_interrupt, SA_SHIRQ, "sio16", bp)) { in aurora_probe()
362 free_irq(bp->irq|0x30, bp); in aurora_probe()
365 …if ((bp->irq=type_1_irq[grrr])&&!request_irq(bp->irq|0x30, aurora_interrupt, SA_SHIRQ, "sio16", bp in aurora_probe()
366 free_irq(bp->irq|0x30, bp); in aurora_probe()
370 bp->flags=0xff; in aurora_probe()
373 if(bp->flags==0xff)break; in aurora_probe()
374 printk(KERN_INFO "aurora%d: irq %d\n",bn,bp->irq&0x0f); in aurora_probe()
379 bp->DTR=MSVR_RTS; in aurora_probe()
380 bp->RTS=MSVR_DTR; in aurora_probe()
381 bp->MSVDTR=CD180_MSVRTS; in aurora_probe()
382 bp->MSVRTS=CD180_MSVDTR; in aurora_probe()
383 bp->flags|=AURORA_BOARD_DTR_FLOW_OK; in aurora_probe()
387 bp->DTR=MSVR_RTS; in aurora_probe()
388 bp->RTS=MSVR_DTR; in aurora_probe()
389 bp->MSVDTR=CD180_MSVRTS; in aurora_probe()
390 bp->MSVRTS=CD180_MSVDTR; in aurora_probe()
391 bp->flags|=AURORA_BOARD_DTR_FLOW_OK; in aurora_probe()
394 bp->DTR=MSVR_DTR; in aurora_probe()
395 bp->RTS=MSVR_RTS; in aurora_probe()
396 bp->MSVDTR=CD180_MSVDTR; in aurora_probe()
397 bp->MSVRTS=CD180_MSVRTS; in aurora_probe()
400 bp->oscfreq=prom_getint(sdev->prom_node,"clk")*100; in aurora_probe()
401 printk(KERN_INFO "aurora%d: Oscillator: %d Hz\n",bn,bp->oscfreq); in aurora_probe()
413 bp->count=0; in aurora_probe()
415 bp->flags = AURORA_BOARD_PRESENT; in aurora_probe()
417 bp->ACK_MINT=1; in aurora_probe()
418 bp->ACK_TINT=2; in aurora_probe()
419 bp->ACK_RINT=3; in aurora_probe()
427 static void aurora_release_io_range(struct Aurora_board *bp) in aurora_release_io_range() argument
429 sbus_iounmap((unsigned long)bp->r0, 1); in aurora_release_io_range()
430 sbus_iounmap((unsigned long)bp->r[0], 128); in aurora_release_io_range()
431 sbus_iounmap((unsigned long)bp->r[1], 128); in aurora_release_io_range()
432 sbus_iounmap((unsigned long)bp->r3, 4); in aurora_release_io_range()
448 static __inline__ struct Aurora_port * aurora_get_port(struct Aurora_board const * bp, in aurora_get_port() argument
456 ((sbus_readb(&bp->r[chip]->r[CD180_GSCR]) & GSCR_CHAN) >> GSCR_CHAN_OFF)); in aurora_get_port()
457 port = &aurora_port[board_No(bp) * AURORA_NPORT * AURORA_NCD180 + channel]; in aurora_get_port()
462 board_No(bp), what, channel); in aurora_get_port()
466 static void aurora_receive_exc(struct Aurora_board const * bp, int chip) in aurora_receive_exc() argument
473 if (!(port = aurora_get_port(bp, chip, "Receive_x"))) in aurora_receive_exc()
480 board_No(bp), port_No(port)); in aurora_receive_exc()
486 status = sbus_readb(&bp->r[chip]->r[CD180_RCSR]); in aurora_receive_exc()
491 board_No(bp), port_No(port), port->overrun); in aurora_receive_exc()
496 status = sbus_readb(&bp->r[chip]->r[CD180_RCSR]) & port->mark_mask; in aurora_receive_exc()
498 ch = sbus_readb(&bp->r[chip]->r[CD180_RDR]); in aurora_receive_exc()
509 board_No(bp), port_No(port)); in aurora_receive_exc()
531 static void aurora_receive(struct Aurora_board const * bp, int chip) in aurora_receive() argument
537 if (!(port = aurora_get_port(bp, chip, "Receive"))) in aurora_receive()
542 count = sbus_readb(&bp->r[chip]->r[CD180_RDCR]); in aurora_receive()
552 board_No(bp), port_No(port)); in aurora_receive()
556 cnt = sbus_readb(&bp->r[chip]->r[CD180_RDR]); in aurora_receive()
564 static void aurora_transmit(struct Aurora_board const * bp, int chip) in aurora_transmit() argument
570 if (!(port = aurora_get_port(bp, chip, "Transmit"))) in aurora_transmit()
578 &bp->r[chip]->r[CD180_CAR]); in aurora_transmit()
581 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_transmit()
588 &bp->r[chip]->r[CD180_CAR]); in aurora_transmit()
592 &bp->r[chip]->r[CD180_SRER]); in aurora_transmit()
600 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
602 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
607 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
609 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
611 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
616 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
618 &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
620 &bp->r[chip]->r[CD180_COR2]); in aurora_transmit()
621 aurora_wait_CCR(bp->r[chip]); in aurora_transmit()
623 &bp->r[chip]->r[CD180_CCR]); in aurora_transmit()
633 sbus_writeb(byte, &bp->r[chip]->r[CD180_TDR]); in aurora_transmit()
641 &bp->r[chip]->r[CD180_CAR]); in aurora_transmit()
645 &bp->r[chip]->r[CD180_SRER]); in aurora_transmit()
651 static void aurora_check_modem(struct Aurora_board const * bp, int chip) in aurora_check_modem() argument
657 if (!(port = aurora_get_port(bp, chip, "Modem"))) in aurora_check_modem()
662 mcr = sbus_readb(&bp->r[chip]->r[CD180_MCR]); in aurora_check_modem()
664 if (sbus_readb(&bp->r[chip]->r[CD180_MSVR]) & MSVR_CD) in aurora_check_modem()
705 sbus_writeb(0, &bp->r[chip]->r[CD180_MCR]); in aurora_check_modem()
713 struct Aurora_board * bp = (struct Aurora_board *) dev_id; in aurora_interrupt() local
720 sbus_writeb(8, &bp->r0->r); in aurora_interrupt()
726 if (!bp || !(bp->flags & AURORA_BOARD_ACTIVE)) in aurora_interrupt()
738 (status = sbus_readb(&bp->r[0]->r[CD180_SRSR]) & SRSR_ANYINT)){ in aurora_interrupt()
743 ack = sbus_readb(&bp->r3->r[bp->ACK_RINT]); in aurora_interrupt()
747 if ((ack >> 5) == board_No(bp)) { in aurora_interrupt()
750 aurora_receive(bp,chip); in aurora_interrupt()
752 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
754 aurora_receive_exc(bp,chip); in aurora_interrupt()
756 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
761 ack = sbus_readb(&bp->r3->r[bp->ACK_TINT]); in aurora_interrupt()
765 if ((ack >> 5) == board_No(bp)) { in aurora_interrupt()
768 aurora_transmit(bp,chip); in aurora_interrupt()
770 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
775 ack = sbus_readb(&bp->r3->r[bp->ACK_MINT]); in aurora_interrupt()
779 if ((ack >> 5) == board_No(bp)) { in aurora_interrupt()
782 aurora_check_modem(bp,chip); in aurora_interrupt()
784 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
792 while ((loop++ < 48)&&(status=bp->r[0]->r[CD180_SRSR]&SRSR_ANYINT)){ in aurora_interrupt()
796 ack = sbus_readb(&bp->r3->r[0]); in aurora_interrupt()
800 if ((ack>>5)==board_No(bp)) { in aurora_interrupt()
804 aurora_receive(bp,chip); in aurora_interrupt()
806 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
808 aurora_receive_exc(bp,chip); in aurora_interrupt()
810 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
812 aurora_transmit(bp,chip); in aurora_interrupt()
814 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
816 aurora_check_modem(bp,chip); in aurora_interrupt()
818 &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
828 chip_id=(board_No(bp)<<5)|((chip+1)<<3); in aurora_interrupt()
831 ((status = sbus_readb(&bp->r[chip]->r[CD180_SRSR])) & in aurora_interrupt()
835 ack = sbus_readb(&bp->r3->r[bp->ACK_RINT]); in aurora_interrupt()
840 aurora_receive(bp,chip); in aurora_interrupt()
845 aurora_receive_exc(bp,chip); in aurora_interrupt()
849 board_No(bp), chip, ack); in aurora_interrupt()
853 ack = sbus_readb(&bp->r3->r[bp->ACK_TINT]); in aurora_interrupt()
858 aurora_transmit(bp,chip); in aurora_interrupt()
862 board_No(bp), chip, ack); in aurora_interrupt()
866 ack = sbus_readb(&bp->r3->r[bp->ACK_MINT]); in aurora_interrupt()
871 aurora_check_modem(bp,chip); in aurora_interrupt()
875 board_No(bp), chip, ack); in aurora_interrupt()
879 sbus_writeb(0, &bp->r[chip]->r[CD180_EOSRR]); in aurora_interrupt()
921 static int aurora_setup_board(struct Aurora_board * bp) in aurora_setup_board() argument
929 "sio16", bp); in aurora_setup_board()
935 error = request_irq(bp->irq|0x30, aurora_interrupt, SA_SHIRQ, in aurora_setup_board()
936 "sio16", bp); in aurora_setup_board()
943 sbus_writeb(0, &bp->r0->r); in aurora_setup_board()
945 if (bp->flags & AURORA_BOARD_TYPE_2) { in aurora_setup_board()
949 (((bp->irq)&0x0f)>>2)), in aurora_setup_board()
950 &bp->r0->r); in aurora_setup_board()
954 if (aurora_init_CD180(bp,0))error=1;error=0; in aurora_setup_board()
955 if (aurora_init_CD180(bp,1))error++; in aurora_setup_board()
972 static void aurora_shutdown_board(struct Aurora_board *bp) in aurora_shutdown_board() argument
986 free_irq(allirq[i]|0x30, bp); in aurora_shutdown_board()
990 free_irq(bp->irq|0x30, bp); in aurora_shutdown_board()
995 sbus_writeb(i & 7, &bp->r[i>>3]->r[CD180_CAR]); in aurora_shutdown_board()
997 sbus_writeb(0, &bp->r[i>>3]->r[CD180_MSVR]); in aurora_shutdown_board()
1001 sbus_writeb(0, &bp->r0->r); in aurora_shutdown_board()
1011 static void aurora_change_speed(struct Aurora_board *bp, struct Aurora_port *port) in aurora_change_speed() argument
1035 &bp->r[chip]->r[CD180_CAR]); in aurora_change_speed()
1040 port->MSVR &= ~(bp->DTR|bp->RTS); in aurora_change_speed()
1042 &bp->r[chip]->r[CD180_MSVR]); in aurora_change_speed()
1046 port->MSVR |= bp->DTR; in aurora_change_speed()
1048 &bp->r[chip]->r[CD180_MSVR]); in aurora_change_speed()
1054 tmp = (((bp->oscfreq + baud/2) / baud + in aurora_change_speed()
1062 &bp->r[chip]->r[CD180_RBPRH]); in aurora_change_speed()
1064 &bp->r[chip]->r[CD180_TBPRH]); in aurora_change_speed()
1065 sbus_writeb(tmp & 0xff, &bp->r[chip]->r[CD180_RBPRL]); in aurora_change_speed()
1066 sbus_writeb(tmp & 0xff, &bp->r[chip]->r[CD180_TBPRL]); in aurora_change_speed()
1078 sbus_writeb(tmp, &bp->r[chip]->r[CD180_RTPR]); in aurora_change_speed()
1130 if (bp->flags&AURORA_BOARD_DTR_FLOW_OK) { in aurora_change_speed()
1142 &bp->r[chip]->r[CD180_SCHR1]); in aurora_change_speed()
1144 &bp->r[chip]->r[CD180_SCHR2]); in aurora_change_speed()
1146 &bp->r[chip]->r[CD180_SCHR3]); in aurora_change_speed()
1148 &bp->r[chip]->r[CD180_SCHR4]); in aurora_change_speed()
1164 sbus_writeb(cor1, &bp->r[chip]->r[CD180_COR1]); in aurora_change_speed()
1165 sbus_writeb(port->COR2, &bp->r[chip]->r[CD180_COR2]); in aurora_change_speed()
1166 sbus_writeb(cor3, &bp->r[chip]->r[CD180_COR3]); in aurora_change_speed()
1168 aurora_wait_CCR(bp->r[chip]); in aurora_change_speed()
1170 &bp->r[chip]->r[CD180_CCR]); in aurora_change_speed()
1172 sbus_writeb(mcor1, &bp->r[chip]->r[CD180_MCOR1]); in aurora_change_speed()
1173 sbus_writeb(mcor2, &bp->r[chip]->r[CD180_MCOR2]); in aurora_change_speed()
1175 aurora_wait_CCR(bp->r[chip]); in aurora_change_speed()
1176 sbus_writeb(CCR_TXEN | CCR_RXEN, &bp->r[chip]->r[CD180_CCR]); in aurora_change_speed()
1178 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_change_speed()
1180 sbus_writeb(port->MSVR, &bp->r[chip]->r[CD180_MSVR]); in aurora_change_speed()
1187 static int aurora_setup_port(struct Aurora_board *bp, struct Aurora_port *port) in aurora_setup_port() argument
1219 if((++bp->count) == 1) in aurora_setup_port()
1220 bp->flags |= AURORA_BOARD_ACTIVE; in aurora_setup_port()
1225 aurora_change_speed(bp, port); in aurora_setup_port()
1236 static void aurora_shutdown_port(struct Aurora_board *bp, struct Aurora_port *port) in aurora_shutdown_port() argument
1251 board_No(bp), port_No(port), port->overrun); in aurora_shutdown_port()
1258 board_No(bp), port_No(port)); in aurora_shutdown_port()
1272 port->MSVR &= ~(bp->DTR|bp->RTS); in aurora_shutdown_port()
1274 &bp->r[chip]->r[CD180_MSVR]); in aurora_shutdown_port()
1279 &bp->r[chip]->r[CD180_CAR]); in aurora_shutdown_port()
1283 aurora_wait_CCR(bp->r[chip]); in aurora_shutdown_port()
1284 sbus_writeb(CCR_SOFTRESET, &bp->r[chip]->r[CD180_CCR]); in aurora_shutdown_port()
1288 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_shutdown_port()
1295 if (--bp->count < 0) { in aurora_shutdown_port()
1298 board_No(bp), bp->count); in aurora_shutdown_port()
1299 bp->count = 0; in aurora_shutdown_port()
1303 if (!bp->count) in aurora_shutdown_port()
1304 bp->flags &= ~AURORA_BOARD_ACTIVE; in aurora_shutdown_port()
1317 struct Aurora_board *bp = port_Board(port); in block_til_ready() local
1374 &bp->r[chip]->r[CD180_CAR]); in block_til_ready()
1376 CD = sbus_readb(&bp->r[chip]->r[CD180_MSVR]) & MSVR_CD; in block_til_ready()
1378 port->MSVR=bp->RTS; in block_til_ready()
1382 &bp->r[chip]->r[CD180_MSVR]); in block_til_ready()
1424 struct Aurora_board * bp; in aurora_open() local
1441 bp = &aurora_board[board]; in aurora_open()
1454 if ((error = aurora_setup_port(bp, port))) { in aurora_open()
1471 aurora_change_speed(bp, port); in aurora_open()
1486 struct Aurora_board *bp; in aurora_close() local
1506 bp = port_Board(port); in aurora_close()
1510 board_No(bp), port->count); in aurora_close()
1516 board_No(bp), port_No(port), port->count); in aurora_close()
1554 &bp->r[chip]->r[CD180_CAR]); in aurora_close()
1556 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_close()
1573 aurora_shutdown_port(bp, port); in aurora_close()
1600 struct Aurora_board *bp; in aurora_write() local
1613 bp = port_Board(port); in aurora_write()
1671 &bp->r[chip]->r[CD180_CAR]); in aurora_write()
1673 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_write()
1796 struct Aurora_board * bp; in aurora_get_modem_info() local
1806 bp = port_Board(port); in aurora_get_modem_info()
1810 sbus_writeb(port_No(port) & 7, &bp->r[chip]->r[CD180_CAR]); in aurora_get_modem_info()
1813 status = sbus_readb(&bp->r[chip]->r[CD180_MSVR]); in aurora_get_modem_info()
1818 result |= ((status & bp->RTS) ? TIOCM_RTS : 0) in aurora_get_modem_info()
1819 | ((status & bp->DTR) ? TIOCM_DTR : 0) in aurora_get_modem_info()
1836 struct Aurora_board *bp = port_Board(port); in aurora_set_modem_info() local
1848 port->MSVR |= bp->RTS; in aurora_set_modem_info()
1850 port->MSVR |= bp->DTR; in aurora_set_modem_info()
1854 port->MSVR &= ~bp->RTS; in aurora_set_modem_info()
1856 port->MSVR &= ~bp->DTR; in aurora_set_modem_info()
1859 port->MSVR = (arg & TIOCM_RTS) ? (port->MSVR | bp->RTS) : in aurora_set_modem_info()
1860 (port->MSVR & ~bp->RTS); in aurora_set_modem_info()
1861 port->MSVR = (arg & TIOCM_DTR) ? (port->MSVR | bp->RTS) : in aurora_set_modem_info()
1862 (port->MSVR & ~bp->RTS); in aurora_set_modem_info()
1870 sbus_writeb(port_No(port) & 7, &bp->r[chip]->r[CD180_CAR]); in aurora_set_modem_info()
1873 sbus_writeb(port->MSVR, &bp->r[chip]->r[CD180_MSVR]); in aurora_set_modem_info()
1884 struct Aurora_board *bp = port_Board(port); in aurora_send_break() local
1898 sbus_writeb(port_No(port) & 7, &bp->r[chip]->r[CD180_CAR]); in aurora_send_break()
1901 sbus_writeb(port->COR2, &bp->r[chip]->r[CD180_COR2]); in aurora_send_break()
1902 sbus_writeb(port->SRER, &bp->r[chip]->r[CD180_SRER]); in aurora_send_break()
1903 aurora_wait_CCR(bp->r[chip]); in aurora_send_break()
1905 sbus_writeb(CCR_CORCHG2, &bp->r[chip]->r[CD180_CCR]); in aurora_send_break()
1906 aurora_wait_CCR(bp->r[chip]); in aurora_send_break()
1918 struct Aurora_board *bp = port_Board(port); in aurora_set_serial_info() local
1928 if ((tmp.irq != bp->irq) || in aurora_set_serial_info()
1929 (tmp.port != bp->base) || in aurora_set_serial_info()
1931 (tmp.baud_base != (bp->oscfreq + CD180_TPC/2) / CD180_TPC) || in aurora_set_serial_info()
1957 aurora_change_speed(bp, port); in aurora_set_serial_info()
1970 struct Aurora_board *bp = port_Board(port); in aurora_get_serial_info() local
1984 tmp.irq = bp->irq; in aurora_get_serial_info()
1986 tmp.baud_base = (bp->oscfreq + CD180_TPC/2) / CD180_TPC; in aurora_get_serial_info()
2061 struct Aurora_board *bp; in aurora_throttle() local
2071 bp = port_Board(port); in aurora_throttle()
2075 port->MSVR &= ~bp->RTS; in aurora_throttle()
2076 sbus_writeb(port_No(port) & 7, &bp->r[chip]->r[CD180_CAR]); in aurora_throttle()
2079 aurora_wait_CCR(bp->r[chip]); in aurora_throttle()
2080 sbus_writeb(CCR_SSCH2, &bp->r[chip]->r[CD180_CCR]); in aurora_throttle()
2081 aurora_wait_CCR(bp->r[chip]); in aurora_throttle()
2083 sbus_writeb(port->MSVR, &bp->r[chip]->r[CD180_MSVR]); in aurora_throttle()
2093 struct Aurora_board *bp; in aurora_unthrottle() local
2103 bp = port_Board(port); in aurora_unthrottle()
2108 port->MSVR |= bp->RTS; in aurora_unthrottle()
2110 &bp->r[chip]->r[CD180_CAR]); in aurora_unthrottle()
2113 aurora_wait_CCR(bp->r[chip]); in aurora_unthrottle()
2115 &bp->r[chip]->r[CD180_CCR]); in aurora_unthrottle()
2116 aurora_wait_CCR(bp->r[chip]); in aurora_unthrottle()
2118 sbus_writeb(port->MSVR, &bp->r[chip]->r[CD180_MSVR]); in aurora_unthrottle()
2128 struct Aurora_board *bp; in aurora_stop() local
2138 bp = port_Board(port); in aurora_stop()
2145 &bp->r[chip]->r[CD180_CAR]); in aurora_stop()
2148 &bp->r[chip]->r[CD180_SRER]); in aurora_stop()
2158 struct Aurora_board *bp; in aurora_start() local
2168 bp = port_Board(port); in aurora_start()
2176 &bp->r[chip]->r[CD180_CAR]); in aurora_start()
2179 &bp->r[chip]->r[CD180_SRER]); in aurora_start()
2217 struct Aurora_board *bp; in aurora_hangup() local
2225 bp = port_Board(port); in aurora_hangup()
2227 aurora_shutdown_port(bp, port); in aurora_hangup()