ioat(4): Export the number of available channels
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
df1928aa33
commit
f8f92e9180
@ -742,6 +742,13 @@ ioat_reset_hw_task(void *ctx, int pending __unused)
|
||||
/*
|
||||
* User API functions
|
||||
*/
|
||||
unsigned
|
||||
ioat_get_nchannels(void)
|
||||
{
|
||||
|
||||
return (ioat_channel_index);
|
||||
}
|
||||
|
||||
bus_dmaengine_t
|
||||
ioat_get_dmaengine(uint32_t index, int flags)
|
||||
{
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user