if_fea.c (49301) | if_fea.c (49360) |
---|---|
1/*- 2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 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 --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * | 1/*- 2 * Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com> 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 --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * |
24 * $Id: if_fea.c,v 1.15 1999/07/10 19:46:08 peter Exp $ | 24 * $Id: if_fea.c,v 1.16 1999/07/31 00:43:48 mdodd Exp $ |
25 */ 26 27/* 28 * DEC PDQ FDDI Controller 29 * 30 * This module support the DEFEA EISA FDDI Controller. 31 */ 32 --- 110 unchanged lines hidden (view full) --- 143 144 device_set_desc(dev, desc); 145 146 iobase = eisa_get_slot(dev) * EISA_SLOT_SIZE; 147 pdq_eisa_subprobe(PDQ_BUS_EISA, iobase, &maddr, &msize, &irq); 148 149 eisa_add_iospace(dev, iobase, 0x200, RESVADDR_NONE); 150 eisa_add_mspace(dev, maddr, msize, RESVADDR_NONE); | 25 */ 26 27/* 28 * DEC PDQ FDDI Controller 29 * 30 * This module support the DEFEA EISA FDDI Controller. 31 */ 32 --- 110 unchanged lines hidden (view full) --- 143 144 device_set_desc(dev, desc); 145 146 iobase = eisa_get_slot(dev) * EISA_SLOT_SIZE; 147 pdq_eisa_subprobe(PDQ_BUS_EISA, iobase, &maddr, &msize, &irq); 148 149 eisa_add_iospace(dev, iobase, 0x200, RESVADDR_NONE); 150 eisa_add_mspace(dev, maddr, msize, RESVADDR_NONE); |
151 eisa_add_intr(dev, irq); | 151 eisa_add_intr(dev, irq, EISA_TRIGGER_LEVEL); |
152 153 return (0); 154} 155 156void 157pdq_eisa_intr(xdev) 158 void *xdev; 159{ --- 31 unchanged lines hidden (view full) --- 191 192 if (!mspace) { 193 device_printf(dev, "No memory space?!\n"); 194 goto bad; 195 } 196 197 rid = 0; 198 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, | 152 153 return (0); 154} 155 156void 157pdq_eisa_intr(xdev) 158 void *xdev; 159{ --- 31 unchanged lines hidden (view full) --- 191 192 if (!mspace) { 193 device_printf(dev, "No memory space?!\n"); 194 goto bad; 195 } 196 197 rid = 0; 198 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, |
199 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); | 199 0, ~0, 1, RF_ACTIVE); |
200 201 if (!irq) { 202 device_printf(dev, "No, irq?!\n"); 203 goto bad; 204 } 205 206 m_addr = rman_get_start(mspace); 207 m_size = (rman_get_end(mspace) - rman_get_start(mspace)) + 1; --- 63 unchanged lines hidden --- | 200 201 if (!irq) { 202 device_printf(dev, "No, irq?!\n"); 203 goto bad; 204 } 205 206 m_addr = rman_get_start(mspace); 207 m_size = (rman_get_end(mspace) - rman_get_start(mspace)) + 1; --- 63 unchanged lines hidden --- |