upd7210.h (202870) | upd7210.h (202898) |
---|---|
1/*- 2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org> 3 * Copyright (c) 2010 Joerg Wunsch <joerg@FreeBSD.org> 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: --- 10 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 * | 1/*- 2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org> 3 * Copyright (c) 2010 Joerg Wunsch <joerg@FreeBSD.org> 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: --- 10 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 * |
27 * $FreeBSD: head/sys/dev/ieee488/upd7210.h 202870 2010-01-23 07:54:06Z joerg $ | 27 * $FreeBSD: head/sys/dev/ieee488/upd7210.h 202898 2010-01-23 21:33:33Z joerg $ |
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 --- 9 unchanged lines hidden (view full) --- 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]; 52 struct resource *irq_clear_res; | 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 --- 9 unchanged lines hidden (view full) --- 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]; 52 struct resource *irq_clear_res; |
53 u_int reg_offset[8]; |
|
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 --- | 54 int dmachan; 55 int unit; 56 57 /* private stuff */ 58 struct mtx mutex; 59 uint8_t rreg[8]; 60 uint8_t wreg[8 + 8]; 61 --- 175 unchanged lines hidden --- |