11.8Schs/* $NetBSD: eisa_machdep.c,v 1.8 2012/10/27 17:18:09 chs Exp $ */ 21.1Sthorpej 31.1Sthorpej/*- 41.1Sthorpej * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * This code is derived from software contributed to The NetBSD Foundation 81.1Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 91.1Sthorpej * NASA Ames Research Center. 101.1Sthorpej * 111.1Sthorpej * Redistribution and use in source and binary forms, with or without 121.1Sthorpej * modification, are permitted provided that the following conditions 131.1Sthorpej * are met: 141.1Sthorpej * 1. Redistributions of source code must retain the above copyright 151.1Sthorpej * notice, this list of conditions and the following disclaimer. 161.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 171.1Sthorpej * notice, this list of conditions and the following disclaimer in the 181.1Sthorpej * documentation and/or other materials provided with the distribution. 191.1Sthorpej * 201.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 211.1Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 221.1Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 231.1Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 241.1Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 251.1Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 261.1Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 271.1Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 281.1Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 291.1Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 301.1Sthorpej * POSSIBILITY OF SUCH DAMAGE. 311.1Sthorpej */ 321.1Sthorpej 331.1Sthorpej/* 341.1Sthorpej * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 351.1Sthorpej * 361.1Sthorpej * Redistribution and use in source and binary forms, with or without 371.1Sthorpej * modification, are permitted provided that the following conditions 381.1Sthorpej * are met: 391.1Sthorpej * 1. Redistributions of source code must retain the above copyright 401.1Sthorpej * notice, this list of conditions and the following disclaimer. 411.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 421.1Sthorpej * notice, this list of conditions and the following disclaimer in the 431.1Sthorpej * documentation and/or other materials provided with the distribution. 441.1Sthorpej * 3. All advertising materials mentioning features or use of this software 451.1Sthorpej * must display the following acknowledgement: 461.1Sthorpej * This product includes software developed by Christopher G. Demetriou 471.1Sthorpej * for the NetBSD Project. 481.1Sthorpej * 4. The name of the author may not be used to endorse or promote products 491.1Sthorpej * derived from this software without specific prior written permission 501.1Sthorpej * 511.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 521.1Sthorpej * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 531.1Sthorpej * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 541.1Sthorpej * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 551.1Sthorpej * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 561.1Sthorpej * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 571.1Sthorpej * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 581.1Sthorpej * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 591.1Sthorpej * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 601.1Sthorpej * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 611.1Sthorpej */ 621.1Sthorpej 631.1Sthorpej/* 641.1Sthorpej * Machine-specific functions for EISA autoconfiguration. 651.1Sthorpej */ 661.2Slukem 671.2Slukem#include <sys/cdefs.h> 681.8Schs__KERNEL_RCSID(0, "$NetBSD: eisa_machdep.c,v 1.8 2012/10/27 17:18:09 chs Exp $"); 691.1Sthorpej 701.1Sthorpej#include <sys/types.h> 711.1Sthorpej#include <sys/param.h> 721.1Sthorpej#include <sys/time.h> 731.1Sthorpej#include <sys/systm.h> 741.1Sthorpej#include <sys/errno.h> 751.1Sthorpej#include <sys/device.h> 761.1Sthorpej#include <sys/extent.h> 771.1Sthorpej 781.7Sdyoung#include <sys/bus.h> 791.1Sthorpej#include <dev/eisa/eisavar.h> 801.1Sthorpej 811.1Sthorpejvoid 821.8Schseisa_attach_hook(device_t parent, device_t self, struct eisabus_attach_args *eba) 831.1Sthorpej{ 841.1Sthorpej} 851.1Sthorpej 861.1Sthorpejint 871.5Sdsleisa_maxslots(eisa_chipset_tag_t ec) 881.1Sthorpej{ 891.1Sthorpej 901.1Sthorpej /* 911.1Sthorpej * Always try 16 slots. 921.1Sthorpej */ 931.1Sthorpej return (16); 941.1Sthorpej} 95