1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Altera TSE SGDMA and MSGDMA Linux driver
3  * Copyright (C) 2014 Altera Corporation. All rights reserved
4  */
5 
6 #include <linux/kernel.h>
7 
8 #ifndef __ALTERA_UTILS_H__
9 #define __ALTERA_UTILS_H__
10 
11 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
12 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
13 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
14 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
15 
16 #endif /* __ALTERA_UTILS_H__*/
17