diff options
author | marius <marius@FreeBSD.org> | 2008-04-26 11:01:38 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-04-26 11:01:38 +0000 |
commit | cea060d682520e7be22be9111ea74d28f51de01a (patch) | |
tree | 6671742869f22d63c49a444ca1faad75eaf388f4 /sys/sparc64/pci | |
parent | 2381edc5468ff27df84fcf44a3cf35b65691e9d7 (diff) | |
download | FreeBSD-src-cea060d682520e7be22be9111ea74d28f51de01a.zip FreeBSD-src-cea060d682520e7be22be9111ea74d28f51de01a.tar.gz |
Remove the MD isa_irq_pending() and the underlying PCI-specific
infrastructure. Its only consumer ever was sio(4) and thus was
unused on sparc64 since removing the last traces of sio(4) in
sparc64 configuration files in favor for uart(4) over three
years ago. If similar functionality is required again it should
be brought back as an MD intr_pending() which works for all
busses by using for example interrupt controller hooks.
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r-- | sys/sparc64/pci/ofw_pci.h | 2 | ||||
-rw-r--r-- | sys/sparc64/pci/ofw_pci_if.m | 53 | ||||
-rw-r--r-- | sys/sparc64/pci/psycho.c | 19 |
3 files changed, 0 insertions, 74 deletions
diff --git a/sys/sparc64/pci/ofw_pci.h b/sys/sparc64/pci/ofw_pci.h index 40d531e..352b8b8 100644 --- a/sys/sparc64/pci/ofw_pci.h +++ b/sys/sparc64/pci/ofw_pci.h @@ -38,8 +38,6 @@ typedef uint32_t ofw_pci_intr_t; -#include "ofw_pci_if.h" - /* PCI range child spaces. XXX: are these MI? */ #define OFW_PCI_CS_CONFIG 0x00 #define OFW_PCI_CS_IO 0x01 diff --git a/sys/sparc64/pci/ofw_pci_if.m b/sys/sparc64/pci/ofw_pci_if.m deleted file mode 100644 index ee0e99c..0000000 --- a/sys/sparc64/pci/ofw_pci_if.m +++ /dev/null @@ -1,53 +0,0 @@ -#- -# Copyright (c) 2001, 2003 by Thomas Moestl <tmm@FreeBSD.org> -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $FreeBSD$ - -#include <sys/bus.h> - -#include <dev/ofw/openfirm.h> - -#include <sparc64/pci/ofw_pci.h> - -INTERFACE ofw_pci; - -CODE { - static ofw_pci_intr_pending_t ofw_pci_default_intr_pending; - - static int - ofw_pci_default_intr_pending(device_t dev, ofw_pci_intr_t intr) - { - - if (device_get_parent(dev) != NULL) - return (OFW_PCI_INTR_PENDING(device_get_parent(dev), - intr)); - return (0); - } -}; - -# Return whether an interrupt request is pending for the INO intr. -METHOD int intr_pending { - device_t dev; - ofw_pci_intr_t intr; -} DEFAULT ofw_pci_default_intr_pending; diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index 87c9df8..4ea8d73 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -121,7 +121,6 @@ static pcib_maxslots_t psycho_maxslots; static pcib_read_config_t psycho_read_config; static pcib_write_config_t psycho_write_config; static pcib_route_interrupt_t psycho_route_interrupt; -static ofw_pci_intr_pending_t psycho_intr_pending; static ofw_bus_get_node_t psycho_get_node; static device_method_t psycho_methods[] = { @@ -152,9 +151,6 @@ static device_method_t psycho_methods[] = { /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, psycho_get_node), - /* ofw_pci interface */ - DEVMETHOD(ofw_pci_intr_pending, psycho_intr_pending), - { 0, 0 } }; @@ -1373,21 +1369,6 @@ psycho_get_dma_tag(device_t bus, device_t child) return (sc->sc_pci_dmat); } -static int -psycho_intr_pending(device_t dev, ofw_pci_intr_t intr) -{ - struct psycho_softc *sc; - u_long diag; - - sc = device_get_softc(dev); - if (psycho_find_intrmap(sc, intr, NULL, NULL, &diag) == 0) { - device_printf(dev, "%s: mapping not found for %d\n", __func__, - intr); - return (0); - } - return (diag != 0); -} - static phandle_t psycho_get_node(device_t bus, device_t dev) { |