uart_dev_ns8250.c (131043) | uart_dev_ns8250.c (132650) |
---|---|
1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ns8250.c 131043 2004-06-24 10:07:28Z phk $"); | 28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ns8250.c 132650 2004-07-26 03:54:40Z marcel $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35 36#include <dev/uart/uart.h> --- 624 unchanged lines hidden (view full) --- 661 if (limit == 0) { 662 uart_setreg(bas, REG_IER, 0); 663 uart_setreg(bas, REG_MCR, mcr); 664 uart_setreg(bas, REG_FCR, 0); 665 uart_barrier(bas); 666 count = 0; 667 goto describe; 668 } | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35 36#include <dev/uart/uart.h> --- 624 unchanged lines hidden (view full) --- 661 if (limit == 0) { 662 uart_setreg(bas, REG_IER, 0); 663 uart_setreg(bas, REG_MCR, mcr); 664 uart_setreg(bas, REG_FCR, 0); 665 uart_barrier(bas); 666 count = 0; 667 goto describe; 668 } |
669 } while ((lsr & LSR_OE) == 0 && count < 1030); | 669 } while ((lsr & LSR_OE) == 0 && count < 130); |
670 count--; 671 672 uart_setreg(bas, REG_MCR, mcr); 673 674 /* Reset FIFOs. */ 675 ns8250_flush(bas, UART_FLUSH_RECEIVER|UART_FLUSH_TRANSMITTER); 676 677 describe: --- 120 unchanged lines hidden --- | 670 count--; 671 672 uart_setreg(bas, REG_MCR, mcr); 673 674 /* Reset FIFOs. */ 675 ns8250_flush(bas, UART_FLUSH_RECEIVER|UART_FLUSH_TRANSMITTER); 676 677 describe: --- 120 unchanged lines hidden --- |