summaryrefslogtreecommitdiffstats
path: root/sys/pci/pcivar.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-13 04:59:19 +0000
committerbde <bde@FreeBSD.org>1999-01-13 04:59:19 +0000
commit3c957151d334c463eb5e1e118af59ae0c19c65f5 (patch)
treee001356130f2926ac0f932b52e439dc9b732adcb /sys/pci/pcivar.h
parenta674a735374d522a6401e59952c96357f535be62 (diff)
downloadFreeBSD-src-3c957151d334c463eb5e1e118af59ae0c19c65f5.zip
FreeBSD-src-3c957151d334c463eb5e1e118af59ae0c19c65f5.tar.gz
Let drivers specify interrupt flags (INTR_EXCL and/or INTR_FAST)
using the new pci_map_int_right() variant of pci_map_int(). Fast interrupts work for PCI devices if and only if they are exclusive. (The PCI interrupt mux doesn't support fast interrupts and can't support a mixture of fast and slow interrupts even in principle.) Don't assume that intrmask_t == unsigned in pci_map_int().
Diffstat (limited to 'sys/pci/pcivar.h')
-rw-r--r--sys/pci/pcivar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h
index 75f48a8..15f1478 100644
--- a/sys/pci/pcivar.h
+++ b/sys/pci/pcivar.h
@@ -23,7 +23,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: pcivar.h,v 1.22 1998/10/06 14:18:40 dfr Exp $
+ * $Id: pcivar.h,v 1.23 1998/12/14 05:47:29 dillon Exp $
*
*/
@@ -223,7 +223,10 @@ int pci_map_port (pcici_t tag, u_long reg, pci_port_t* pa);
int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
int pci_map_dense (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
int pci_map_bwx (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
-int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
+int pci_map_int (pcici_t tag, pci_inthand_t *handler, void *arg,
+ intrmask_t *maskptr);
+int pci_map_int_right(pcici_t cfg, pci_inthand_t *handler, void *arg,
+ intrmask_t *maskptr, u_int flags);
int pci_unmap_int (pcici_t tag);
int pci_register_lkm (struct pci_device *dvp, int if_revision);
OpenPOWER on IntegriCloud