diff options
author | bde <bde@FreeBSD.org> | 1995-11-04 15:05:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-04 15:05:52 +0000 |
commit | a85dc60d0ba4b862af20f6ea4018842be9a2924c (patch) | |
tree | 9cd93b7fcd8da306ac1399e962e202236cea5c32 /sys | |
parent | 7c623a0f2b9ac109c5787e4ccbd9c44e73cf38d4 (diff) | |
download | FreeBSD-src-a85dc60d0ba4b862af20f6ea4018842be9a2924c.zip FreeBSD-src-a85dc60d0ba4b862af20f6ea4018842be9a2924c.tar.gz |
Fixed the type of feaintr(). The type of an EISA interrupt handler is
incompatible with the type of a PCI interrupt handler.
Fixed the type of pdc_pci_ifintr(). The type of a PCI interrupt handler
is too generic to pass arbitrary struct pointers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pci/if_pdq.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/pci/if_pdq.c b/sys/pci/if_pdq.c index 7aeb495..34a9546 100644 --- a/sys/pci/if_pdq.c +++ b/sys/pci/if_pdq.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_pdq.c,v 1.7 1995/10/13 19:48:06 wollman Exp $ + * $Id: if_pdq.c,v 1.8 1995/10/29 15:33:28 phk Exp $ * */ @@ -478,8 +478,10 @@ pdq_pci_ifwatchdog( static int pdq_pci_ifintr( - pdq_softc_t *sc) + void *vsc) { + pdq_softc_t *sc = vsc; + return pdq_interrupt(sc->sc_pdq); } @@ -568,12 +570,18 @@ pdq_eisa_ifwatchdog( pdq_ifwatchdog(PDQ_EISA_UNIT_TO_SOFTC(unit)); } +#ifdef __FreeBSD__ +void +#else int +#endif feaintr( int unit) { pdq_interrupt(PDQ_EISA_UNIT_TO_SOFTC(unit)->sc_pdq); +#ifndef __FreeBSD__ return unit; +#endif } static void |