adi-axi-common.h 670 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Analog Devices AXI common registers & definitions
  4. *
  5. * Copyright 2019 Analog Devices Inc.
  6. *
  7. * https://wiki.analog.com/resources/fpga/docs/axi_ip
  8. * https://wiki.analog.com/resources/fpga/docs/hdl/regmap
  9. */
  10. #ifndef ADI_AXI_COMMON_H_
  11. #define ADI_AXI_COMMON_H_
  12. #define ADI_AXI_REG_VERSION 0x0000
  13. #define ADI_AXI_PCORE_VER(major, minor, patch) \
  14. (((major) << 16) | ((minor) << 8) | (patch))
  15. #define ADI_AXI_PCORE_VER_MAJOR(version) (((version) >> 16) & 0xff)
  16. #define ADI_AXI_PCORE_VER_MINOR(version) (((version) >> 8) & 0xff)
  17. #define ADI_AXI_PCORE_VER_PATCH(version) ((version) & 0xff)
  18. #endif /* ADI_AXI_COMMON_H_ */