-/* $OpenBSD: if_iwx.c,v 1.86 2021/07/29 12:13:58 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.87 2021/07/30 13:56:44 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
case PCI_PRODUCT_INTEL_WL_22500_1:
sc->sc_fwname = "iwx-cc-a0-63";
sc->sc_device_family = IWX_DEVICE_FAMILY_22000;
- sc->sc_fwdmasegsz = IWX_FWDMASEGSZ_8000;
sc->sc_integrated = 1;
sc->sc_ltr_delay = IWX_SOC_FLAGS_LTR_APPLY_DELAY_NONE;
sc->sc_low_latency_xtal = 0;
sc->sc_fwname = "iwx-QuZ-a0-hr-b0-63";
sc->sc_device_family = IWX_DEVICE_FAMILY_22000;
- sc->sc_fwdmasegsz = IWX_FWDMASEGSZ_8000;
sc->sc_integrated = 1;
sc->sc_ltr_delay = IWX_SOC_FLAGS_LTR_APPLY_DELAY_200;
sc->sc_low_latency_xtal = 0;
case PCI_PRODUCT_INTEL_WL_22500_4:
sc->sc_fwname = "iwx-Qu-c0-hr-b0-63";
sc->sc_device_family = IWX_DEVICE_FAMILY_22000;
- sc->sc_fwdmasegsz = IWX_FWDMASEGSZ_8000;
sc->sc_integrated = 1;
sc->sc_ltr_delay = IWX_SOC_FLAGS_LTR_APPLY_DELAY_200;
sc->sc_low_latency_xtal = 0;
return;
}
- /*
- * Allocate DMA memory for firmware transfers.
- * Must be aligned on a 16-byte boundary.
- */
- err = iwx_dma_contig_alloc(sc->sc_dmat, &sc->fw_dma,
- sc->sc_fwdmasegsz, 16);
- if (err) {
- printf("%s: could not allocate memory for firmware transfers\n",
- DEVNAME(sc));
- goto fail0;
- }
-
/* Allocate interrupt cause table (ICT).*/
err = iwx_dma_contig_alloc(sc->sc_dmat, &sc->ict_dma,
IWX_ICT_SIZE, 1<<IWX_ICT_PADDR_SHIFT);
fail3: if (sc->ict_dma.vaddr != NULL)
iwx_dma_contig_free(&sc->ict_dma);
-fail1: iwx_dma_contig_free(&sc->fw_dma);
-fail0: iwx_dma_contig_free(&sc->ctxt_info_dma);
+fail1: iwx_dma_contig_free(&sc->ctxt_info_dma);
return;
}
-/* $OpenBSD: if_iwxvar.h,v 1.20 2021/07/29 12:01:04 stsp Exp $ */
+/* $OpenBSD: if_iwxvar.h,v 1.21 2021/07/30 13:56:44 stsp Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
(1 << IEEE80211_RADIOTAP_CHANNEL))
#define IWX_UCODE_SECT_MAX 48
-#define IWX_FWDMASEGSZ (192*1024)
-#define IWX_FWDMASEGSZ_8000 (320*1024)
-/* sanity check value */
-#define IWX_FWMAXSIZE (2*1024*1024)
/*
* fw_status is used to determine if we've already parsed the firmware file
#define IWX_DEVICE_FAMILY_22000 1
#define IWX_DEVICE_FAMILY_22560 2
- struct iwx_dma_info fw_dma;
-
struct iwx_dma_info ctxt_info_dma;
struct iwx_self_init_dram init_dram;
int sc_cap_off; /* PCIe caps */
const char *sc_fwname;
- bus_size_t sc_fwdmasegsz;
struct iwx_fw_info sc_fw;
struct iwx_dma_info fw_mon;
int sc_fw_phy_config;