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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user