2017-10-26 02:55:36 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <syscall_handler.h>
|
|
|
|
#include <aio_comparator.h>
|
|
|
|
|
2018-05-05 06:57:57 +08:00
|
|
|
Z_SYSCALL_HANDLER(aio_cmp_disable, dev, index)
|
2017-10-26 02:55:36 +08:00
|
|
|
{
|
2018-05-05 06:57:57 +08:00
|
|
|
Z_OOPS(Z_SYSCALL_DRIVER_AIO_CMP(dev, disable));
|
2019-03-09 05:19:05 +08:00
|
|
|
return z_impl_aio_cmp_disable((struct device *)dev, index);
|
2017-10-26 02:55:36 +08:00
|
|
|
}
|
|
|
|
|
2018-05-05 06:57:57 +08:00
|
|
|
Z_SYSCALL_HANDLER(aio_cmp_get_pending_int, dev)
|
2018-04-05 04:50:32 +08:00
|
|
|
{
|
2018-05-05 06:57:57 +08:00
|
|
|
Z_OOPS(Z_SYSCALL_DRIVER_AIO_CMP(dev, get_pending_int));
|
2019-03-09 05:19:05 +08:00
|
|
|
return z_impl_aio_get_pending_int((struct device *)dev, index);
|
2018-04-05 04:50:32 +08:00
|
|
|
}
|