Skip to content
Permalink
Browse files

Add support for 9260 and 9560 devices to iwm(4).

Joint work with patrick@
Parts lifted from FreeBSD's r354492, r354502, r354508, r354516, r354508.

Firmware is available with fw_update(1) thanks to sthen@

7265 device tested by myself (still works)
8260 device tested by phessler@ (still works)
9260 devices tested by Travis Cole and myself
9560 devices tested by jcs@, mlarkin@, kevlo@, guenther@

Some 9560 devices have known issues. Those are being worked on.

ok patrick@
  • Loading branch information
stspdotname committed Nov 18, 2019
1 parent d2a7ef3 commit 3287dca4fa10b49b6f91c8c5fcff3f9e84a1b859
Showing with 593 additions and 60 deletions.
  1. +403 −47 sys/dev/pci/if_iwm.c
  2. +180 −8 sys/dev/pci/if_iwmreg.h
  3. +10 −5 sys/dev/pci/if_iwmvar.h

2 comments on commit 3287dca

@thecount12

This comment has been minimized.

Copy link

thecount12 replied Nov 20, 2019

I got latest source for anoncvs. Then I pulled these 3 files.
/usr/src/sys/dev/pci/if_iwm.c:1564:23: error: use of undeclared identifier 'PCI_PCIE_DCSR2' sc->sc_cap_off + PCI_PCIE_DCSR2); ^ /usr/src/sys/dev/pci/if_iwm.c:1565:30: error: use of undeclared identifier 'PCI_PCIE_DCSR2_LTREN' sc->sc_ltr_enabled = (cap & PCI_PCIE_DCSR2_LTREN) ? 1 : 0; ^ /usr/src/sys/dev/pci/if_iwm.c:8341:22: error: use of undeclared identifier 'PCI_PRODUCT_INTEL_WL_9260_1' { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_WL_9260_1 },

@thecount12

This comment has been minimized.

Copy link

thecount12 replied Nov 20, 2019

I'm trying to make CUSTOM with those 3 files. Any idea's what I might be doing wrong
/usr/src/sys/dev/pci/if_iwm.c:8350:6: error: invalid application of 'sizeof' to an incomplete type 'const struct pci_matchid []' nitems(iwm_devices)); ^~~~~~~~~~~~~~~~~~~ /usr/src/sys/sys/param.h:204:27: note: expanded from macro 'nitems' #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) ^~~~~~ /usr/src/sys/dev/pci/if_iwm.c:8553:7: error: use of undeclared identifier 'PCI_PRODUCT_INTEL_WL_9260_1' case PCI_PRODUCT_INTEL_WL_9260_1: ^ 5 errors generated. *** Error 1 in /usr/src/sys/arch/amd64/compile/CUSTOM (Makefile:1550 'if_iwm.o')

Please sign in to comment.
You can’t perform that action at this time.