2017-05-19 15:52:40 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define ERR_NOT_FOUND 2
|
|
|
|
|
2017-05-19 15:58:19 +02:00
|
|
|
int read_page_group(struct ftl_map *map,
|
2017-05-19 15:52:40 +02:00
|
|
|
struct ftl_page_group *group, uint32_t group_no);
|
2017-05-19 15:58:19 +02:00
|
|
|
int read_page_desc(struct ftl_map *map,
|
2017-05-19 15:52:40 +02:00
|
|
|
struct ftl_page_desc *page_desc, uint32_t upage);
|
2017-05-19 18:06:02 +02:00
|
|
|
int write_upage(struct ftl_map *map, const void *page,
|
2017-05-19 15:52:40 +02:00
|
|
|
const struct ftl_page_desc *page_desc);
|
2017-05-19 15:58:19 +02:00
|
|
|
int trace_path(struct ftl_map *map, struct ftl_page_desc *new_page_desc,
|
2017-05-19 15:52:40 +02:00
|
|
|
uint32_t *page, uint32_t va);
|