uart_cpu.h (119822) | uart_cpu.h (119866) |
---|---|
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 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 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 * | 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 * --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 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 * $FreeBSD: head/sys/dev/uart/uart_cpu.h 119822 2003-09-07 04:59:15Z imp $ | 26 * $FreeBSD: head/sys/dev/uart/uart_cpu.h 119866 2003-09-07 21:51:03Z marcel $ |
27 */ 28 29#ifndef _DEV_UART_CPU_H_ 30#define _DEV_UART_CPU_H_ 31 32/* 33 * Low-level operations for use by console and/or debug port support. 34 */ --- 27 unchanged lines hidden (view full) --- 62#define UART_DEV_CONSOLE 0 63#define UART_DEV_DBGPORT 1 64#define UART_DEV_KEYBOARD 2 65 int (*attach)(struct uart_softc*); 66 int (*detach)(struct uart_softc*); 67 void *cookie; /* Type dependent use. */ 68}; 69 | 27 */ 28 29#ifndef _DEV_UART_CPU_H_ 30#define _DEV_UART_CPU_H_ 31 32/* 33 * Low-level operations for use by console and/or debug port support. 34 */ --- 27 unchanged lines hidden (view full) --- 62#define UART_DEV_CONSOLE 0 63#define UART_DEV_DBGPORT 1 64#define UART_DEV_KEYBOARD 2 65 int (*attach)(struct uart_softc*); 66 int (*detach)(struct uart_softc*); 67 void *cookie; /* Type dependent use. */ 68}; 69 |
70int uart_cpu_getdev(int devtype, struct uart_devinfo *di); 71int uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2); | 70bus_addr_t uart_cpu_busaddr(struct uart_bas *); 71int uart_cpu_eqres(struct uart_bas *, struct uart_bas *); 72int uart_cpu_getdev(int, struct uart_devinfo *); |
72 73void uart_add_sysdev(struct uart_devinfo*); 74 75/* 76 * Operations for low-level access to the UART. Primarily for use 77 * by console and debug port logic. 78 */ 79static __inline int --- 37 unchanged lines hidden --- | 73 74void uart_add_sysdev(struct uart_devinfo*); 75 76/* 77 * Operations for low-level access to the UART. Primarily for use 78 * by console and debug port logic. 79 */ 80static __inline int --- 37 unchanged lines hidden --- |