sbi_version.h 499 B

123456789101112131415161718192021222324
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2019 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __SBI_VERSION_H__
  10. #define __SBI_VERSION_H__
  11. #define OPENSBI_VERSION_MAJOR 0
  12. #define OPENSBI_VERSION_MINOR 9
  13. /**
  14. * OpenSBI 32-bit version with:
  15. * 1. upper 16-bits as major number
  16. * 2. lower 16-bits as minor number
  17. */
  18. #define OPENSBI_VERSION ((OPENSBI_VERSION_MAJOR << 16) | \
  19. (OPENSBI_VERSION_MINOR))
  20. #endif