-/* $OpenBSD: if_iwx.c,v 1.88 2021/07/30 14:09:12 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.89 2021/08/07 09:21:51 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
resp5->lmac_data[1].dbg_ptrs.error_event_table_ptr);
sc->sc_uc.uc_log_event_table = le32toh(
resp5->lmac_data[0].dbg_ptrs.log_event_table_ptr);
- sc->sched_base = le32toh(
- resp5->lmac_data[0].dbg_ptrs.scd_base_ptr);
sc->sc_uc.uc_umac_error_event_table = le32toh(
resp5->umac_data.dbg_ptrs.error_info_addr);
if (resp5->status == IWX_ALIVE_STATUS_OK)
resp4->lmac_data[1].dbg_ptrs.error_event_table_ptr);
sc->sc_uc.uc_log_event_table = le32toh(
resp4->lmac_data[0].dbg_ptrs.log_event_table_ptr);
- sc->sched_base = le32toh(
- resp4->lmac_data[0].dbg_ptrs.scd_base_ptr);
sc->sc_uc.uc_umac_error_event_table = le32toh(
resp4->umac_data.dbg_ptrs.error_info_addr);
if (resp4->status == IWX_ALIVE_STATUS_OK)
goto fail1;
}
- /* TX scheduler rings must be aligned on a 1KB boundary. */
- err = iwx_dma_contig_alloc(sc->sc_dmat, &sc->sched_dma,
- nitems(sc->txq) * sizeof(struct iwx_agn_scd_bc_tbl), 1024);
- if (err) {
- printf("%s: could not allocate TX scheduler rings\n",
- DEVNAME(sc));
- goto fail3;
- }
-
for (txq_i = 0; txq_i < nitems(sc->txq); txq_i++) {
err = iwx_alloc_tx_ring(sc, &sc->txq[txq_i], txq_i);
if (err) {
fail4: while (--txq_i >= 0)
iwx_free_tx_ring(sc, &sc->txq[txq_i]);
iwx_free_rx_ring(sc, &sc->rxq);
- iwx_dma_contig_free(&sc->sched_dma);
-fail3: if (sc->ict_dma.vaddr != NULL)
+ if (sc->ict_dma.vaddr != NULL)
iwx_dma_contig_free(&sc->ict_dma);
fail1: iwx_dma_contig_free(&sc->ctxt_info_dma);
-/* $OpenBSD: if_iwxvar.h,v 1.21 2021/07/30 13:56:44 stsp Exp $ */
+/* $OpenBSD: if_iwxvar.h,v 1.22 2021/08/07 09:21:51 stsp Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
const void *sc_ih;
int sc_msix;
- /* TX scheduler rings. */
- struct iwx_dma_info sched_dma;
- uint32_t sched_base;
-
/* TX/RX rings. */
struct iwx_tx_ring txq[IWX_MAX_QUEUES];
struct iwx_rx_ring rxq;