hmcdrv_cache.h 655 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * SE/HMC Drive (Read) Cache Functions
  4. *
  5. * Copyright IBM Corp. 2013
  6. * Author(s): Ralf Hoppe ([email protected])
  7. */
  8. #ifndef __HMCDRV_CACHE_H__
  9. #define __HMCDRV_CACHE_H__
  10. #include <linux/mmzone.h>
  11. #include "hmcdrv_ftp.h"
  12. #define HMCDRV_CACHE_SIZE_DFLT (MAX_ORDER_NR_PAGES * PAGE_SIZE / 2UL)
  13. typedef ssize_t (*hmcdrv_cache_ftpfunc)(const struct hmcdrv_ftp_cmdspec *ftp,
  14. size_t *fsize);
  15. ssize_t hmcdrv_cache_cmd(const struct hmcdrv_ftp_cmdspec *ftp,
  16. hmcdrv_cache_ftpfunc func);
  17. int hmcdrv_cache_startup(size_t cachesize);
  18. void hmcdrv_cache_shutdown(void);
  19. #endif /* __HMCDRV_CACHE_H__ */