Deleted Added
full compact
dcons.h (125862) dcons.h (136467)
1/*
1/*
2 * Copyright (C) 2002
2 * Copyright (C) 2002-2004
3 * Hidetoshi Shimokawa. 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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $Id: dcons.h,v 1.15 2003/10/23 15:05:31 simokawa Exp $
3 * Hidetoshi Shimokawa. 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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $Id: dcons.h,v 1.15 2003/10/23 15:05:31 simokawa Exp $
35 * $FreeBSD: head/sys/dev/dcons/dcons.h 125862 2004-02-16 07:25:46Z simokawa $
35 * $FreeBSD: head/sys/dev/dcons/dcons.h 136467 2004-10-13 05:38:42Z simokawa $
36 */
37
38#ifdef _KERNEL
39#define V volatile
40#else
41#define V
42#endif
43

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

85#define KEY_CTRLB 2 /* ^B */
86#define KEY_CR 13 /* CR '\r' */
87#define KEY_TILDE 126 /* ~ */
88#define STATE0 0
89#define STATE1 1
90#define STATE2 2
91
92#ifdef _KERNEL
36 */
37
38#ifdef _KERNEL
39#define V volatile
40#else
41#define V
42#endif
43

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

85#define KEY_CTRLB 2 /* ^B */
86#define KEY_CR 13 /* CR '\r' */
87#define KEY_TILDE 126 /* ~ */
88#define STATE0 0
89#define STATE1 1
90#define STATE2 2
91
92#ifdef _KERNEL
93struct dcons_global {
94 struct consdev *cdev;
95 struct dcons_buf *buf;
96 size_t size;
97 bus_dma_tag_t dma_tag;
98 bus_dmamap_t dma_map;
93struct dcons_softc {
94 struct dcons_ch o, i;
95 int brk_state;
96#define DC_GDB 1
97 int flags;
98 void *dev;
99};
99};
100extern struct dcons_global *dcons_conf;
100
101int dcons_checkc(struct dcons_softc *);
102int dcons_ischar(struct dcons_softc *);
103void dcons_putc(struct dcons_softc *, int);
104int dcons_load_buffer(struct dcons_buf *, int, struct dcons_softc *);
105void dcons_init(struct dcons_buf *, int, struct dcons_softc *);
101#endif
106#endif