1139749Simp#- 2130275Simp# Copyright (c) 2004 M. Warner Losh 3130275Simp# All rights reserved. 4130275Simp# 5130275Simp# Redistribution and use in source and binary forms, with or without 6130275Simp# modification, are permitted provided that the following conditions 7130275Simp# are met: 8130275Simp# 1. Redistributions of source code must retain the above copyright 9130275Simp# notice, this list of conditions and the following disclaimer. 10130275Simp# 2. Redistributions in binary form must reproduce the above copyright 11130275Simp# notice, this list of conditions and the following disclaimer in the 12130275Simp# documentation and/or other materials provided with the distribution. 13130275Simp# 14130275Simp# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15130275Simp# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16130275Simp# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17130275Simp# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18130275Simp# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19130275Simp# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20130275Simp# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21130275Simp# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22130275Simp# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23130275Simp# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24130275Simp# SUCH DAMAGE. 25130275Simp# 26130275Simp# $FreeBSD$ 27130275Simp# 28130275Simp 29130275Simp#include <sys/bus.h> 30130275Simp#include <sys/types.h> 31130275Simp 32130275SimpINTERFACE eisa; 33130275Simp 34130275Simp# 35130275Simp# Add interrupt information for an EISA device. irq is the irq number 36130275Simp# and trigger is either EISA_TRIGGER_EDGE or EISA_TRIGGER_LEVEL 37130275Simp# 38130275SimpMETHOD int add_intr { 39130275Simp device_t dev; 40130275Simp device_t child; 41130275Simp int irq; 42130275Simp int trigger; 43130275Simp}; 44130275Simp 45130275Simp# 46130275Simp# Adds an I/O space to the reservation lis 47130275Simp# 48130275SimpMETHOD int add_iospace { 49130275Simp device_t dev; 50130275Simp device_t child; 51130275Simp u_long iobase; 52130275Simp u_long iosize; 53130275Simp int flags; 54130275Simp}; 55130275Simp 56130275Simp# 57130275Simp# Adds a memory range to the reservation lis 58130275Simp# 59130275SimpMETHOD int add_mspace { 60130275Simp device_t dev; 61130275Simp device_t child; 62130275Simp u_long mbase; 63130275Simp u_long msize; 64130275Simp int flags; 65130275Simp}; 66