target_core_file.h 941 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef TARGET_CORE_FILE_H
  2. #define TARGET_CORE_FILE_H
  3. #define FD_VERSION "4.0"
  4. #define FD_MAX_DEV_NAME 256
  5. #define FD_DEVICE_QUEUE_DEPTH 32
  6. #define FD_MAX_DEVICE_QUEUE_DEPTH 128
  7. #define FD_BLOCKSIZE 512
  8. #define FD_MAX_SECTORS 1024
  9. #define RRF_EMULATE_CDB 0x01
  10. #define RRF_GOT_LBA 0x02
  11. #define FBDF_HAS_PATH 0x01
  12. #define FBDF_HAS_SIZE 0x02
  13. #define FDBD_HAS_BUFFERED_IO_WCE 0x04
  14. struct fd_dev {
  15. u32 fbd_flags;
  16. unsigned char fd_dev_name[FD_MAX_DEV_NAME];
  17. /* Unique Ramdisk Device ID in Ramdisk HBA */
  18. u32 fd_dev_id;
  19. /* Number of SG tables in sg_table_array */
  20. u32 fd_table_count;
  21. u32 fd_queue_depth;
  22. u32 fd_block_size;
  23. unsigned long long fd_dev_size;
  24. struct file *fd_file;
  25. /* FILEIO HBA device is connected to */
  26. struct fd_host *fd_host;
  27. } ____cacheline_aligned;
  28. struct fd_host {
  29. u32 fd_host_dev_id_count;
  30. /* Unique FILEIO Host ID */
  31. u32 fd_host_id;
  32. } ____cacheline_aligned;
  33. #endif /* TARGET_CORE_FILE_H */