Skip to content

Commit

Permalink
DPAA2: remove unused functions
Browse files Browse the repository at this point in the history
to rid ourselves of compile-time warnings.
  • Loading branch information
Bjoern A. Zeeb authored and Bjoern A. Zeeb committed Jun 23, 2022
1 parent 775df1f commit 36be9ca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions sys/dev/dpaa2/dpaa2_ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,9 @@ static void dpaa2_ni_miibus_statchg(device_t);
static int dpaa2_ni_media_change(struct ifnet *);
static void dpaa2_ni_media_status(struct ifnet *, struct ifmediareq *);
static void dpaa2_ni_media_tick(void *);
static void dpaa2_ni_mii_tick(void *);

/* DMA mapping callback */
static void dpaa2_ni_dmamap_cb(void *, bus_dma_segment_t *, int, int);
static void dpaa2_ni_dmamap_cb2(void *, bus_dma_segment_t *, int, bus_size_t,
int);

/* Tx/Rx tasks. */
static void dpaa2_ni_poll_task(void *, int);
Expand Down Expand Up @@ -2543,19 +2540,6 @@ dpaa2_ni_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error)
}
}

/**
* @brief Callback to obtain a physical address of the only DMA segment mapped.
*/
static void
dpaa2_ni_dmamap_cb2(void *arg, bus_dma_segment_t *segs, int nseg,
bus_size_t mapsz __unused, int error)
{
if (error == 0) {
KASSERT(nseg == 1, ("too many segments: nseg=%d\n", nseg));
*(bus_addr_t *) arg = segs[0].ds_addr;
}
}

/**
* @brief Task to poll frames from a specific channel when CDAN is received.
*/
Expand Down

0 comments on commit 36be9ca

Please sign in to comment.