BlueSCSI_presets.h 932 B

1234567891011121314151617181920212223242526272829303132
  1. // Preset configurations for various system types.
  2. // Set by "System" config option in config ini.
  3. #pragma once
  4. // The settings set here will be used as defaults but
  5. // can be overridden by the ini file settings.
  6. struct preset_config_t {
  7. // Informative name of the preset configuration, or NULL for defaults
  8. const char *presetName;
  9. // Default settings that apply per SCSI ID
  10. int quirks;
  11. int deviceTypeModifier;
  12. int sectorsPerTrack;
  13. int headsPerCylinder;
  14. int prefetchBytes;
  15. bool rightAlignStrings;
  16. bool reinsertOnInquiry;
  17. // Default settings that apply to all SCSI IDs
  18. int selectionDelay;
  19. int maxSyncSpeed;
  20. bool enableUnitAttention;
  21. bool enableSCSI2;
  22. bool enableSelLatch;
  23. bool mapLunsToIDs;
  24. bool enableParity;
  25. };
  26. // Fetch a preset configuration, or return the default config if unknown system type.
  27. preset_config_t getSystemPreset(const char *presetName);