FEMU  原版 master 7e238cc
FEMU: Accurate, Scalable and Extensible NVMe SSD Emulator (FAST'18)
dram.h
浏览该文件的文档.
1 #ifndef __FEMU_MEM_BACKEND
2 #define __FEMU_MEM_BACKEND
3 
12 #include <stdint.h>
13 
18 typedef struct SsdDramBackend {
20  int64_t size;
21  int femu_mode;
23 
24 int init_dram_backend(SsdDramBackend **mbe, int64_t nbytes);
26 
27 int backend_rw(SsdDramBackend *, QEMUSGList *, uint64_t *, bool);
28 
29 #endif
SsdDramBackend
DRAM backend SSD address space
Definition: dram.h:18
SsdDramBackend
struct SsdDramBackend SsdDramBackend
DRAM backend SSD address space
backend_rw
int backend_rw(SsdDramBackend *, QEMUSGList *, uint64_t *, bool)
Definition: dram.c:37
backend_rw
int backend_rw(SsdDramBackend *b, QEMUSGList *qsg, uint64_t *lbal, bool is_write)
Definition: dram.c:37
SsdDramBackend::logical_space
void * logical_space
Definition: dram.h:19
FEMU_ZNSSD_MODE
@ FEMU_ZNSSD_MODE
Definition: nvme.h:1361
FEMU_OCSSD_MODE
@ FEMU_OCSSD_MODE
Definition: nvme.h:1358
SsdDramBackend::femu_mode
int femu_mode
Definition: dram.h:21
SsdDramBackend::size
int64_t size
Definition: dram.h:20
free_dram_backend
void free_dram_backend(SsdDramBackend *)
Definition: dram.c:29
free_dram_backend
void free_dram_backend(SsdDramBackend *b)
Definition: dram.c:29
init_dram_backend
int init_dram_backend(SsdDramBackend **mbe, int64_t nbytes)
Definition: dram.c:13
FEMU_BBSSD_MODE
@ FEMU_BBSSD_MODE
Definition: nvme.h:1359
init_dram_backend
int init_dram_backend(SsdDramBackend **mbe, int64_t nbytes)
Definition: dram.c:13
FEMU_NOSSD_MODE
@ FEMU_NOSSD_MODE
Definition: nvme.h:1360
femu_err
#define femu_err(fmt,...)
Definition: nvme.h:1511