
Change license to BSD-3-Clause Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/*
|
|
* Copyright(c) 2012-2021 Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __METADATA_RAW_VOLATILE_H__
|
|
#define __METADATA_RAW_VOLATILE_H__
|
|
|
|
/*
|
|
* RAW volatile Implementation - Size on SSD
|
|
*/
|
|
uint32_t raw_volatile_size_on_ssd(struct ocf_metadata_raw *raw);
|
|
|
|
/*
|
|
* RAW volatile Implementation - Checksum
|
|
*/
|
|
uint32_t raw_volatile_checksum(ocf_cache_t cache,
|
|
struct ocf_metadata_raw *raw);
|
|
|
|
/*
|
|
* RAW volatile Implementation - Update
|
|
*/
|
|
int raw_volatile_update(ocf_cache_t cache,
|
|
struct ocf_metadata_raw *raw, ctx_data_t *data,
|
|
uint64_t page, uint64_t count);
|
|
|
|
/*
|
|
* RAW volatile Implementation - Load all metadata elements from SSD
|
|
*/
|
|
void raw_volatile_load_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
|
ocf_metadata_end_t cmpl, void *priv);
|
|
|
|
/*
|
|
* RAW volatile Implementation - Flush all elements
|
|
*/
|
|
void raw_volatile_flush_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
|
ocf_metadata_end_t cmpl, void *priv);
|
|
|
|
/*
|
|
* RAM RAW volatile Implementation - Mark to Flush
|
|
*/
|
|
void raw_volatile_flush_mark(ocf_cache_t cache, struct ocf_request *req,
|
|
uint32_t map_idx, int to_state, uint8_t start, uint8_t stop);
|
|
|
|
/*
|
|
* RAM RAW volatile Implementation - Do Flush asynchronously
|
|
*/
|
|
int raw_volatile_flush_do_asynch(ocf_cache_t cache,
|
|
struct ocf_request *req, struct ocf_metadata_raw *raw,
|
|
ocf_req_end_t complete);
|
|
|
|
#endif /* __METADATA_RAW_VOLATILE_H__ */
|