linux/drivers/net/ethernet/renesas/rtsn.h

/* SPDX-License-Identifier: GPL-2.0 */

/* Renesas Ethernet-TSN device driver
 *
 * Copyright (C) 2022 Renesas Electronics Corporation
 * Copyright (C) 2023 Niklas Söderlund <[email protected]>
 */

#ifndef __RTSN_H__
#define __RTSN_H__

#include <linux/types.h>

#define AXIBMI
#define TSNMHD
#define RMSO
#define RMRO

enum rtsn_reg {};

/* AXIBMI */
#define RR_RATRR
#define RR_TATRR
#define RR_RST
#define RR_RST_COMPLETE

#define AXIWC_DEFAULT
#define AXIRC_DEFAULT

#define TATLS0_TEDE
#define TATLS0_TATEN_SHIFT
#define TATLS0_TATEN(n)
#define TATLR_TATL

#define RATLS0_RETS
#define RATLS0_REDE
#define RATLS0_RATEN_SHIFT
#define RATLS0_RATEN(n)
#define RATLR_RATL

#define DIE_DID_TDICX(n)
#define DIE_DID_RDICX(n)
#define TDIE_TDID_TDX(n)
#define RDIE_RDID_RDX(n)
#define TDIS_TDS(n)
#define RDIS_RDS(n)

/* MHD */
#define OSR_OPS
#define SWR_SWR

#define TGC1_TQTM_SFM
#define TGC1_STTV_DEFAULT

#define TMS_MFS_MAX

/* RMAC System */
#define CFCR_SDID(n)
#define FMSCR_FMSIE(n)

/* RMAC */
#define MPIC_PIS_MASK
#define MPIC_PIS_MII
#define MPIC_PIS_RMII
#define MPIC_PIS_GMII
#define MPIC_PIS_RGMII
#define MPIC_LSC_SHIFT
#define MPIC_LSC_MASK
#define MPIC_LSC_10M
#define MPIC_LSC_100M
#define MPIC_LSC_1G
#define MPIC_PSMCS_SHIFT
#define MPIC_PSMCS_MASK
#define MPIC_PSMCS_DEFAULT
#define MPIC_PSMHT_SHIFT
#define MPIC_PSMHT_MASK
#define MPIC_PSMHT_DEFAULT

#define MLVC_PASE
#define MLVC_PSE
#define MLVC_PLV

#define MPSM_PSME
#define MPSM_PSMAD
#define MPSM_PDA_SHIFT
#define MPSM_PDA_MASK
#define MPSM_PDA(n)
#define MPSM_PRA_SHIFT
#define MPSM_PRA_MASK
#define MPSM_PRA(n)
#define MPSM_PRD_SHIFT
#define MPSM_PRD_SET(n)
#define MPSM_PRD_GET(n)

#define GPOUT_RDM
#define GPOUT_TDM

/* RTSN */
#define RTSN_INTERVAL_US
#define RTSN_TIMEOUT_US

#define TX_NUM_CHAINS
#define RX_NUM_CHAINS

#define TX_CHAIN_SIZE
#define RX_CHAIN_SIZE

#define TX_CHAIN_IDX
#define RX_CHAIN_IDX

#define TX_CHAIN_ADDR_OFFSET
#define RX_CHAIN_ADDR_OFFSET

#define PKT_BUF_SZ
#define RTSN_ALIGN

enum rtsn_mode {};

/* Descriptors */
enum RX_DS_CC_BIT {};

enum TX_FS_TAGL_BIT {};

enum DIE_DT {};

struct rtsn_desc {} __packed;

struct rtsn_ts_desc {} __packed;

struct rtsn_ext_desc {} __packed;

struct rtsn_ext_ts_desc {} __packed;

enum EXT_INFO_DS_BIT {};

#endif