isa.c (980) | isa.c (1002) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 |
37 * $Id: isa.c,v 1.12 1994/01/16 11:25:06 ats Exp $ | 37 * $Id: isa.c,v 1.13 1994/01/17 05:49:20 rgrimes Exp $ |
38 */ 39 40/* 41 * code to manage AT bus 42 * 43 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 44 * Fixed uninitialized variable problem and added code to deal 45 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 242 unchanged lines hidden (view full) --- 288 if (isdp->id_drq != -1) 289 printf(" drq %d", isdp->id_drq); 290 if (isdp->id_maddr) 291 printf(" maddr 0x%x", kvtop(isdp->id_maddr)); 292 if (isdp->id_msize) 293 printf(" msize %d", isdp->id_msize); 294 if (isdp->id_flags) 295 printf(" flags 0x%x", isdp->id_flags); | 38 */ 39 40/* 41 * code to manage AT bus 42 * 43 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 44 * Fixed uninitialized variable problem and added code to deal 45 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 242 unchanged lines hidden (view full) --- 288 if (isdp->id_drq != -1) 289 printf(" drq %d", isdp->id_drq); 290 if (isdp->id_maddr) 291 printf(" maddr 0x%x", kvtop(isdp->id_maddr)); 292 if (isdp->id_msize) 293 printf(" msize %d", isdp->id_msize); 294 if (isdp->id_flags) 295 printf(" flags 0x%x", isdp->id_flags); |
296 if (isdp->id_iobase && (isdp->id_iobase < 0x100)) 297 printf(" on motherboard\n"); 298 else 299 printf(" on isa\n"); | 296 if (isdp->id_iobase) { 297 if (isdp->id_iobase < 0x100) { 298 printf(" on motherboard\n"); 299 } else { 300 if (isdp->id_iobase >= 0x1000) { 301 printf (" on eisa\n"); 302 } else { 303 printf (" on isa\n"); 304 } 305 } 306 } |
300 301 (*dp->attach)(isdp); 302 303 if(isdp->id_irq) { 304 int intrno; 305 306 intrno = ffs(isdp->id_irq)-1; 307 setidt(ICU_OFFSET+intrno, isdp->id_intr, --- 515 unchanged lines hidden --- | 307 308 (*dp->attach)(isdp); 309 310 if(isdp->id_irq) { 311 int intrno; 312 313 intrno = ffs(isdp->id_irq)-1; 314 setidt(ICU_OFFSET+intrno, isdp->id_intr, --- 515 unchanged lines hidden --- |