nvmxip.h 677 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
  4. *
  5. * Authors:
  6. * Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
  7. */
  8. #ifndef __DRIVER_NVMXIP_H__
  9. #define __DRIVER_NVMXIP_H__
  10. #include <blk.h>
  11. #define NVMXIP_BLKDRV_NAME "nvmxip-blk"
  12. #define NVMXIP_BLKDEV_NAME_SZ 20
  13. /**
  14. * struct nvmxip_plat - the NVMXIP driver plat
  15. *
  16. * @phys_base: NVM XIP device base address
  17. * @lba_shift: block size shift count
  18. * @lba: number of blocks
  19. *
  20. * The NVMXIP information read from the DT.
  21. */
  22. struct nvmxip_plat {
  23. phys_addr_t phys_base;
  24. u32 lba_shift;
  25. lbaint_t lba;
  26. };
  27. #endif /* __DRIVER_NVMXIP_H__ */