Linux 4.1.16
[linux/fpc-iii.git] / drivers / s390 / char / hmcdrv_cache.h
bloba14b57526781f67395e61d68c8f238129037b20d
1 /*
2 * SE/HMC Drive (Read) Cache Functions
4 * Copyright IBM Corp. 2013
5 * Author(s): Ralf Hoppe (rhoppe@de.ibm.com)
6 */
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,
17 size_t *fsize);
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__ */