linux/drivers/net/ethernet/altera/altera_sgdmahw.h

/* SPDX-License-Identifier: GPL-2.0-only */
/* Altera TSE SGDMA and MSGDMA Linux driver
 * Copyright (C) 2014 Altera Corporation. All rights reserved
 */

#ifndef __ALTERA_SGDMAHW_H__
#define __ALTERA_SGDMAHW_H__

/* SGDMA descriptor structure */
struct sgdma_descrip {} __packed;

#define SGDMA_DESC_LEN

#define SGDMA_STATUS_ERR
#define SGDMA_STATUS_LENGTH_ERR
#define SGDMA_STATUS_CRC_ERR
#define SGDMA_STATUS_TRUNC_ERR
#define SGDMA_STATUS_PHY_ERR
#define SGDMA_STATUS_COLL_ERR
#define SGDMA_STATUS_EOP

#define SGDMA_CONTROL_EOP
#define SGDMA_CONTROL_RD_FIXED
#define SGDMA_CONTROL_WR_FIXED

/* Channel is always 0, so just zero initialize it */

#define SGDMA_CONTROL_HW_OWNED

/* SGDMA register space */
struct sgdma_csr {};

#define sgdma_csroffs(a)
#define sgdma_descroffs(a)

#define SGDMA_STSREG_ERR
#define SGDMA_STSREG_EOP
#define SGDMA_STSREG_DESCRIP
#define SGDMA_STSREG_CHAIN
#define SGDMA_STSREG_BUSY

#define SGDMA_CTRLREG_IOE
#define SGDMA_CTRLREG_IOEOP
#define SGDMA_CTRLREG_IDESCRIP
#define SGDMA_CTRLREG_ILASTD
#define SGDMA_CTRLREG_INTEN
#define SGDMA_CTRLREG_START
#define SGDMA_CTRLREG_STOPERR
#define SGDMA_CTRLREG_INTMAX
#define SGDMA_CTRLREG_RESET
#define SGDMA_CTRLREG_COBHW
#define SGDMA_CTRLREG_POLL
#define SGDMA_CTRLREG_CLRINT

#endif /* __ALTERA_SGDMAHW_H__ */