Deleted Added
full compact
upd7210.h (150525) upd7210.h (202870)
1/*-
2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org>
1/*-
2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org>
3 * Copyright (c) 2010 Joerg Wunsch <joerg@FreeBSD.org>
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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
26 * $FreeBSD: head/sys/dev/ieee488/upd7210.h 150525 2005-09-24 20:44:55Z phk $
27 * $FreeBSD: head/sys/dev/ieee488/upd7210.h 202870 2010-01-23 07:54:06Z joerg $
27 *
28 * Locating an actual �PD7210 data book has proven quite impossible for me.
29 * There are a fair number of newer chips which are supersets of the �PD7210
30 * but they are particular eager to comprehensively mark what the extensions
31 * are and what is in the base set. Some even give the registers and their
32 * bits new names.
33 *
34 * The following information is based on a description of the �PD7210 found

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

43struct ibfoo;
44
45/* upd7210 interface definitions for HW drivers */
46
47typedef int upd7210_irq_t(struct upd7210 *, int);
48
49struct upd7210 {
50 struct resource *reg_res[8];
28 *
29 * Locating an actual �PD7210 data book has proven quite impossible for me.
30 * There are a fair number of newer chips which are supersets of the �PD7210
31 * but they are particular eager to comprehensively mark what the extensions
32 * are and what is in the base set. Some even give the registers and their
33 * bits new names.
34 *
35 * The following information is based on a description of the �PD7210 found

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

44struct ibfoo;
45
46/* upd7210 interface definitions for HW drivers */
47
48typedef int upd7210_irq_t(struct upd7210 *, int);
49
50struct upd7210 {
51 struct resource *reg_res[8];
51 u_int reg_offset[8];
52 struct resource *irq_clear_res;
52 int dmachan;
53 int unit;
54
55 /* private stuff */
56 struct mtx mutex;
57 uint8_t rreg[8];
58 uint8_t wreg[8 + 8];
59

--- 175 unchanged lines hidden ---
53 int dmachan;
54 int unit;
55
56 /* private stuff */
57 struct mtx mutex;
58 uint8_t rreg[8];
59 uint8_t wreg[8 + 8];
60

--- 175 unchanged lines hidden ---