idualwifi7260 & iaxwifi200: Enable PCI busmastering.

The FreeBSD KPIs that we emulate expect this to be done manually,
so we have to do it before we begin doing PCI access.

Fixes firmware load failures and device initialization problems
since the introduction of the OpenBSD driver replacing the FreeBSD one.
This commit is contained in:
Augustin Cavalier
2022-06-20 17:17:20 -04:00
parent 561bb7bac5
commit b3dab377a9
2 changed files with 2 additions and 0 deletions
@@ -10648,6 +10648,7 @@ iwx_attach(struct device *parent, struct device *self, void *aux)
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
BUS_SPACE_MAXSIZE_32BIT, BUS_SPACE_UNRESTRICTED, BUS_SPACE_MAXSIZE_32BIT, 0, NULL, NULL,
&sc->sc_dmat);
pci_enable_busmaster(sc->sc_dev);
if_alloc_inplace(ifp, IFT_ETHER);
#else
@@ -11743,6 +11743,7 @@ iwm_attach(struct device *parent, struct device *self, void *aux)
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
BUS_SPACE_MAXSIZE_32BIT, BUS_SPACE_UNRESTRICTED, BUS_SPACE_MAXSIZE_32BIT, 0, NULL, NULL,
&sc->sc_dmat);
pci_enable_busmaster(sc->sc_dev);
if_alloc_inplace(ifp, IFT_ETHER);
#else