/* * Copyright(c) 2012-2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #ifndef __CAS_CACHE_H__ #define __CAS_CACHE_H__ #include "ocf/ocf.h" #include "ocf_env.h" #include #include #include "linux_kernel_version.h" #include "layer_upgrade.h" #include "control.h" #include "layer_cache_management.h" #include "service_ui_ioctl.h" #include "utils/cas_cache_utils.h" #include "volume/vol_blk_utils.h" #include "classifier.h" #include "context.h" #include #define CAS_KERN_EMERG KERN_EMERG OCF_PREFIX_SHORT #define CAS_KERN_ALERT KERN_ALERT OCF_PREFIX_SHORT #define CAS_KERN_CRIT KERN_CRIT OCF_PREFIX_SHORT #define CAS_KERN_ERR KERN_ERR OCF_PREFIX_SHORT #define CAS_KERN_WARNING KERN_WARNING OCF_PREFIX_SHORT #define CAS_KERN_NOTICE KERN_NOTICE OCF_PREFIX_SHORT #define CAS_KERN_INFO KERN_INFO OCF_PREFIX_SHORT #define CAS_KERN_DEBUG KERN_DEBUG OCF_PREFIX_SHORT #ifndef SECTOR_SHIFT #define SECTOR_SHIFT 9 #endif #ifndef SECTOR_SIZE #define SECTOR_SIZE (1<