Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *    SE/HMC Drive (Read) Cache Functions
0004  *
0005  *    Copyright IBM Corp. 2013
0006  *    Author(s): Ralf Hoppe (rhoppe@de.ibm.com)
0007  */
0008 
0009 #ifndef __HMCDRV_CACHE_H__
0010 #define __HMCDRV_CACHE_H__
0011 
0012 #include <linux/mmzone.h>
0013 #include "hmcdrv_ftp.h"
0014 
0015 #define HMCDRV_CACHE_SIZE_DFLT  (MAX_ORDER_NR_PAGES * PAGE_SIZE / 2UL)
0016 
0017 typedef ssize_t (*hmcdrv_cache_ftpfunc)(const struct hmcdrv_ftp_cmdspec *ftp,
0018                     size_t *fsize);
0019 
0020 ssize_t hmcdrv_cache_cmd(const struct hmcdrv_ftp_cmdspec *ftp,
0021              hmcdrv_cache_ftpfunc func);
0022 int hmcdrv_cache_startup(size_t cachesize);
0023 void hmcdrv_cache_shutdown(void);
0024 
0025 #endif   /* __HMCDRV_CACHE_H__ */