Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
target_core_rd.h
Go to the documentation of this file.
1 #ifndef TARGET_CORE_RD_H
2 #define TARGET_CORE_RD_H
3 
4 #define RD_HBA_VERSION "v4.0"
5 #define RD_MCP_VERSION "4.0"
6 
7 /* Largest piece of memory kmalloc can allocate */
8 #define RD_MAX_ALLOCATION_SIZE 65536
9 #define RD_DEVICE_QUEUE_DEPTH 32
10 #define RD_MAX_DEVICE_QUEUE_DEPTH 128
11 #define RD_BLOCKSIZE 512
12 
13 /* Used in target_core_init_configfs() for virtual LUN 0 access */
14 int __init rd_module_init(void);
15 void rd_module_exit(void);
16 
23 
24 #define RDF_HAS_PAGE_COUNT 0x01
25 
26 struct rd_dev {
28  /* Unique Ramdisk Device ID in Ramdisk HBA */
30  /* Total page count for ramdisk device */
32  /* Number of SG tables in sg_table_array */
34  /* Array of rd_dev_sg_table_t containing scatterlists */
36  /* Ramdisk HBA device is connected to */
37  struct rd_host *rd_host;
39 
40 struct rd_host {
42  u32 rd_host_id; /* Unique Ramdisk Host ID */
44 
45 #endif /* TARGET_CORE_RD_H */