ocf/inc/ocf_types.h
Robert Baldyga a8e1ce8cc5 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2018-11-29 15:14:21 +01:00

96 lines
1.8 KiB
C

/*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
/**
* @file
* @brief OCF types
*/
#ifndef __OCF_TYPES_H_
#define __OCF_TYPES_H_
#include "ocf_env_headers.h"
/**
* @brief cache id type (by default designated as 16 bit unsigned integer)
*/
typedef uint16_t ocf_cache_id_t;
/**
* @brief cache line type (by default designated as 32 bit unsigned integer)
*/
typedef uint32_t ocf_cache_line_t;
/**
* @brief core id type (by default designated as 16 bit unsigned integer)
*/
typedef uint16_t ocf_core_id_t;
/**
* @brief core sequence number type (by default designated as 16 bit unsigned integer)
*/
typedef uint16_t ocf_seq_no_t;
/**
* @brief partition id type (by default designated as 16 bit unsigned integer)
*/
typedef uint16_t ocf_part_id_t;
/**
* @brief handle to object designating ocf context
*/
typedef struct ocf_ctx *ocf_ctx_t;
struct ocf_cache;
/**
* @brief handle to object designating ocf cache device
*/
typedef struct ocf_cache *ocf_cache_t;
struct ocf_core;
/**
* @brief handle to object designating ocf core object
*/
typedef struct ocf_core *ocf_core_t;
struct ocf_data_obj;
/**
* @brief handle to object designating ocf data object
*/
typedef struct ocf_data_obj *ocf_data_obj_t;
struct ocf_data_obj_type;
/**
* @brief handle to data object type
*/
typedef const struct ocf_data_obj_type *ocf_data_obj_type_t;
/**
* @brief handle to data object uuid
*/
typedef struct ocf_data_obj_uuid *ocf_uuid_t;
/**
* @brief handle to object designating ocf context object
*/
typedef void ctx_data_t;
/**
* @brief handle to I/O queue
*/
typedef struct ocf_queue *ocf_queue_t;
/**
* @brief handle to cleaner
*/
typedef struct ocf_cleaner *ocf_cleaner_t;
/**
* @brief handle to metadata_updater
*/
typedef struct ocf_metadata_updater *ocf_metadata_updater_t;
#endif