Deleted Added
full compact
uart_dev_z8530.c (260890) uart_dev_z8530.c (281438)
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_z8530.c 260890 2014-01-19 19:39:13Z imp $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_z8530.c 281438 2015-04-11 17:16:23Z andrew $");
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>

--- 265 unchanged lines hidden (view full) ---

302};
303
304struct uart_class uart_z8530_class = {
305 "z8530",
306 z8530_methods,
307 sizeof(struct z8530_softc),
308 .uc_ops = &uart_z8530_ops,
309 .uc_range = 2,
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>

--- 265 unchanged lines hidden (view full) ---

302};
303
304struct uart_class uart_z8530_class = {
305 "z8530",
306 z8530_methods,
307 sizeof(struct z8530_softc),
308 .uc_ops = &uart_z8530_ops,
309 .uc_range = 2,
310 .uc_rclk = DEFAULT_RCLK
310 .uc_rclk = DEFAULT_RCLK,
311 .uc_rshift = 0
311};
312
313#define SIGCHG(c, i, s, d) \
314 if (c) { \
315 i |= (i & s) ? s : s | d; \
316 } else { \
317 i = (i & s) ? (i & ~s) | d : i; \
318 }

--- 333 unchanged lines hidden ---
312};
313
314#define SIGCHG(c, i, s, d) \
315 if (c) { \
316 i |= (i & s) ? s : s | d; \
317 } else { \
318 i = (i & s) ? (i & ~s) | d : i; \
319 }

--- 333 unchanged lines hidden ---