162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* Altera TSE SGDMA and MSGDMA Linux driver 362306a36Sopenharmony_ci * Copyright (C) 2014 Altera Corporation. All rights reserved 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __ALTERA_UTILS_H__ 762306a36Sopenharmony_ci#define __ALTERA_UTILS_H__ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/compiler.h> 1062306a36Sopenharmony_ci#include <linux/types.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_civoid tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask); 1362306a36Sopenharmony_civoid tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask); 1462306a36Sopenharmony_ciint tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask); 1562306a36Sopenharmony_ciint tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask); 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#endif /* __ALTERA_UTILS_H__*/ 18