diff options
author | bde <bde@FreeBSD.org> | 1995-11-04 14:43:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-04 14:43:30 +0000 |
commit | 7c623a0f2b9ac109c5787e4ccbd9c44e73cf38d4 (patch) | |
tree | 9e196b2a73845bd22645305f0f4b170ece1b3afa /sys/i386/scsi | |
parent | 6e2f3d416d4ce07e6bb490e08ca92e39a8e25cec (diff) | |
download | FreeBSD-src-7c623a0f2b9ac109c5787e4ccbd9c44e73cf38d4.zip FreeBSD-src-7c623a0f2b9ac109c5787e4ccbd9c44e73cf38d4.tar.gz |
Fixed the type of ahcintr(). The type of an ISA interrupt handler is
incompatible with the type of a PCI interrupt handler. A new entry
point `ahc_pci_intr()' is used for PCI. ISA and PCI interrupts are
penalized equally (:-) by calling a common handler `ahc_intr()'. This
should be reorganized. Some strings now name the wrong function...
Diffstat (limited to 'sys/i386/scsi')
-rw-r--r-- | sys/i386/scsi/aic7xxx.c | 19 | ||||
-rw-r--r-- | sys/i386/scsi/aic7xxx.h | 4 |
2 files changed, 18 insertions, 5 deletions
diff --git a/sys/i386/scsi/aic7xxx.c b/sys/i386/scsi/aic7xxx.c index 649168a..3288e75 100644 --- a/sys/i386/scsi/aic7xxx.c +++ b/sys/i386/scsi/aic7xxx.c @@ -24,7 +24,7 @@ * * commenced: Sun Sep 27 18:14:01 PDT 1992 * - * $Id: aic7xxx.c,v 1.41 1995/10/29 05:57:48 gibbs Exp $ + * $Id: aic7xxx.c,v 1.42 1995/10/31 18:41:49 phk Exp $ */ /* * TODO: @@ -1051,8 +1051,8 @@ void ahc_add_waiting_scb (iobase, scb, where) /* * Catch an interrupt from the adaptor */ -int -ahcintr(unit) +static int +ahc_intr(unit) int unit; { int intstat; @@ -1694,6 +1694,19 @@ cmdcomplete: return 1; } +void +ahcintr(unit) + int unit; +{ + ahc_intr(unit); +} + +int +ahc_pci_intr(vunit) + void *vunit; +{ + return (ahc_intr((int)vunit)); +} static int enable_seeprom(u_long offset, diff --git a/sys/i386/scsi/aic7xxx.h b/sys/i386/scsi/aic7xxx.h index 4b64b15..6d15925 100644 --- a/sys/i386/scsi/aic7xxx.h +++ b/sys/i386/scsi/aic7xxx.h @@ -20,7 +20,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: aic7xxx.h,v 1.13 1995/09/05 23:52:03 gibbs Exp $ + * $Id: aic7xxx.h,v 1.14 1995/10/26 23:57:18 gibbs Exp $ */ #ifndef _AIC7XXX_H_ @@ -176,6 +176,6 @@ extern struct ahc_data *ahcdata[NAHC]; int ahcprobe __P((int unit, u_long io_base, ahc_type type, ahc_flag flags)); int ahc_attach __P((int unit)); -int ahcintr(); +int ahc_pci_intr __P((void *vunit)); #endif /* _AIC7XXX_H_ */ |