Date: Sat, 4 Jun 2016 03:54:31 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301297 - head/sys/dev/ioat Message-ID: <201606040354.u543sVeP051611@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Sat Jun 4 03:54:30 2016 New Revision: 301297 URL: https://svnweb.freebsd.org/changeset/base/301297 Log: ioat(4): Export the number of available channels Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/ioat/ioat.c head/sys/dev/ioat/ioat.h Modified: head/sys/dev/ioat/ioat.c ============================================================================== --- head/sys/dev/ioat/ioat.c Sat Jun 4 03:52:19 2016 (r301296) +++ head/sys/dev/ioat/ioat.c Sat Jun 4 03:54:30 2016 (r301297) @@ -742,6 +742,13 @@ ioat_reset_hw_task(void *ctx, int pendin /* * User API functions */ +unsigned +ioat_get_nchannels(void) +{ + + return (ioat_channel_index); +} + bus_dmaengine_t ioat_get_dmaengine(uint32_t index, int flags) { Modified: head/sys/dev/ioat/ioat.h ============================================================================== --- head/sys/dev/ioat/ioat.h Sat Jun 4 03:52:19 2016 (r301296) +++ head/sys/dev/ioat/ioat.h Sat Jun 4 03:54:30 2016 (r301297) @@ -85,6 +85,8 @@ typedef void *bus_dmaengine_t; struct bus_dmadesc; typedef void (*bus_dmaengine_callback_t)(void *arg, int error); +unsigned ioat_get_nchannels(void); + /* * Called first to acquire a reference to the DMA channel *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606040354.u543sVeP051611>