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