svn commit: r301297 - head/sys/dev/ioat

Conrad E. Meyer cem at FreeBSD.org
Sat Jun 4 03:54:32 UTC 2016


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
  *


More information about the svn-src-all mailing list