162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/******************************************************************************* 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * CTU CAN FD IP Core 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 2015-2018 Ondrej Ille <ondrej.ille@gmail.com> FEE CTU 762306a36Sopenharmony_ci * Copyright (C) 2018-2021 Ondrej Ille <ondrej.ille@gmail.com> self-funded 862306a36Sopenharmony_ci * Copyright (C) 2018-2019 Martin Jerabek <martin.jerabek01@gmail.com> FEE CTU 962306a36Sopenharmony_ci * Copyright (C) 2018-2021 Pavel Pisa <pisa@cmp.felk.cvut.cz> FEE CTU/self-funded 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * Project advisors: 1262306a36Sopenharmony_ci * Jiri Novak <jnovak@fel.cvut.cz> 1362306a36Sopenharmony_ci * Pavel Pisa <pisa@cmp.felk.cvut.cz> 1462306a36Sopenharmony_ci * 1562306a36Sopenharmony_ci * Department of Measurement (http://meas.fel.cvut.cz/) 1662306a36Sopenharmony_ci * Faculty of Electrical Engineering (http://www.fel.cvut.cz) 1762306a36Sopenharmony_ci * Czech Technical University (http://www.cvut.cz/) 1862306a36Sopenharmony_ci ******************************************************************************/ 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci/* This file is autogenerated, DO NOT EDIT! */ 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#ifndef __CTU_CAN_FD_CAN_FD_FRAME_FORMAT__ 2362306a36Sopenharmony_ci#define __CTU_CAN_FD_CAN_FD_FRAME_FORMAT__ 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#include <linux/bits.h> 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci/* CAN_Frame_format memory map */ 2862306a36Sopenharmony_cienum ctu_can_fd_can_frame_format { 2962306a36Sopenharmony_ci CTUCANFD_FRAME_FORMAT_W = 0x0, 3062306a36Sopenharmony_ci CTUCANFD_IDENTIFIER_W = 0x4, 3162306a36Sopenharmony_ci CTUCANFD_TIMESTAMP_L_W = 0x8, 3262306a36Sopenharmony_ci CTUCANFD_TIMESTAMP_U_W = 0xc, 3362306a36Sopenharmony_ci CTUCANFD_DATA_1_4_W = 0x10, 3462306a36Sopenharmony_ci CTUCANFD_DATA_5_8_W = 0x14, 3562306a36Sopenharmony_ci CTUCANFD_DATA_61_64_W = 0x4c, 3662306a36Sopenharmony_ci}; 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci/* CAN_FD_Frame_format memory region */ 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci/* FRAME_FORMAT_W registers */ 4162306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_DLC GENMASK(3, 0) 4262306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_RTR BIT(5) 4362306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_IDE BIT(6) 4462306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_FDF BIT(7) 4562306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_BRS BIT(9) 4662306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_ESI_RSV BIT(10) 4762306a36Sopenharmony_ci#define REG_FRAME_FORMAT_W_RWCNT GENMASK(15, 11) 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci/* IDENTIFIER_W registers */ 5062306a36Sopenharmony_ci#define REG_IDENTIFIER_W_IDENTIFIER_EXT GENMASK(17, 0) 5162306a36Sopenharmony_ci#define REG_IDENTIFIER_W_IDENTIFIER_BASE GENMASK(28, 18) 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci/* TIMESTAMP_L_W registers */ 5462306a36Sopenharmony_ci#define REG_TIMESTAMP_L_W_TIME_STAMP_L_W GENMASK(31, 0) 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci/* TIMESTAMP_U_W registers */ 5762306a36Sopenharmony_ci#define REG_TIMESTAMP_U_W_TIMESTAMP_U_W GENMASK(31, 0) 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci/* DATA_1_4_W registers */ 6062306a36Sopenharmony_ci#define REG_DATA_1_4_W_DATA_1 GENMASK(7, 0) 6162306a36Sopenharmony_ci#define REG_DATA_1_4_W_DATA_2 GENMASK(15, 8) 6262306a36Sopenharmony_ci#define REG_DATA_1_4_W_DATA_3 GENMASK(23, 16) 6362306a36Sopenharmony_ci#define REG_DATA_1_4_W_DATA_4 GENMASK(31, 24) 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci/* DATA_5_8_W registers */ 6662306a36Sopenharmony_ci#define REG_DATA_5_8_W_DATA_5 GENMASK(7, 0) 6762306a36Sopenharmony_ci#define REG_DATA_5_8_W_DATA_6 GENMASK(15, 8) 6862306a36Sopenharmony_ci#define REG_DATA_5_8_W_DATA_7 GENMASK(23, 16) 6962306a36Sopenharmony_ci#define REG_DATA_5_8_W_DATA_8 GENMASK(31, 24) 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci/* DATA_61_64_W registers */ 7262306a36Sopenharmony_ci#define REG_DATA_61_64_W_DATA_61 GENMASK(7, 0) 7362306a36Sopenharmony_ci#define REG_DATA_61_64_W_DATA_62 GENMASK(15, 8) 7462306a36Sopenharmony_ci#define REG_DATA_61_64_W_DATA_63 GENMASK(23, 16) 7562306a36Sopenharmony_ci#define REG_DATA_61_64_W_DATA_64 GENMASK(31, 24) 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci#endif 78