diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2019-11-26 07:37:51 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2019-11-26 07:37:51 +0000 |
commit | 254ff6083566911b7e56c29cdb5d0a79d776b2d7 (patch) | |
tree | 03e234ba849902ef5ef40df9c0cd3ff4db9a8ca5 /sys/dev/pci/if_iwmvar.h | |
parent | 27c93f4c709c63be10b0d414738acabf5e455bf5 (diff) |
Add support for MSI-X. MSI-X allows establishing a number of
interrupt vectors and mapping events (RX on queues, commands,
mgmt frames) to those vectors. For now we keep the existing
behaviour, establish a single vector and map all events to it.
Makes my Intel NUC 8i5BEH 9560 work
Tested by jcs@ on a 9560 (w/ MSI-X)
Tested by deraadt@ on a 9260 (w/ MSI-X)
Tested by phessler@ on a 8260 (w/o MSI-X)
ok stsp@
Diffstat (limited to 'sys/dev/pci/if_iwmvar.h')
-rw-r--r-- | sys/dev/pci/if_iwmvar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwmvar.h b/sys/dev/pci/if_iwmvar.h index ed8a83570dc..dd4c70febfb 100644 --- a/sys/dev/pci/if_iwmvar.h +++ b/sys/dev/pci/if_iwmvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwmvar.h,v 1.47 2019/11/18 18:53:11 stsp Exp $ */ +/* $OpenBSD: if_iwmvar.h,v 1.48 2019/11/26 07:37:50 patrick Exp $ */ /* * Copyright (c) 2014 genua mbh <info@genua.de> @@ -394,6 +394,7 @@ struct iwm_softc { pci_chipset_tag_t sc_pct; pcitag_t sc_pcitag; const void *sc_ih; + int sc_msix; /* TX scheduler rings. */ struct iwm_dma_info sched_dma; @@ -444,6 +445,11 @@ struct iwm_softc { int sc_intmask; int sc_flags; + uint32_t sc_fh_init_mask; + uint32_t sc_hw_init_mask; + uint32_t sc_fh_mask; + uint32_t sc_hw_mask; + /* * So why do we need a separate stopped flag and a generation? * the former protects the device from issueing commands when it's |