hmcdrv_cache.h 616 B

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