sioreg.h (85365) | sioreg.h (89986) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 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 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)comreg.h 7.2 (Berkeley) 5/9/91 | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 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 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)comreg.h 7.2 (Berkeley) 5/9/91 |
34 * $FreeBSD: head/sys/dev/sio/sioreg.h 85365 2001-10-23 15:17:33Z imp $ | 34 * $FreeBSD: head/sys/dev/sio/sioreg.h 89986 2002-01-30 17:22:04Z jhay $ |
35 */ 36 | 35 */ 36 |
37/* Receiver clock frequency for "standard" pc serial ports. */ 38#define DEFAULT_RCLK 1843200 |
|
37 | 39 |
40#ifdef PC98 |
|
38/* 16 bit baud rate divisor (lower byte in dca_data, upper in dca_ier) */ 39#define COMBRD(x) (1843200 / (16*(x))) | 41/* 16 bit baud rate divisor (lower byte in dca_data, upper in dca_ier) */ 42#define COMBRD(x) (1843200 / (16*(x))) |
40#ifdef PC98 | |
41#define COMBRD_RSA(x) (14745600 / (16*(x))) 42#endif 43 44/* interrupt enable register */ 45#define IER_ERXRDY 0x1 46#define IER_ETXRDY 0x2 47#define IER_ERLS 0x4 48#define IER_EMSC 0x8 --- 82 unchanged lines hidden --- | 43#define COMBRD_RSA(x) (14745600 / (16*(x))) 44#endif 45 46/* interrupt enable register */ 47#define IER_ERXRDY 0x1 48#define IER_ETXRDY 0x2 49#define IER_ERLS 0x4 50#define IER_EMSC 0x8 --- 82 unchanged lines hidden --- |