https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b12069d67070ca59a3c5fc...
commit b12069d67070ca59a3c5fc24f62da7d7c3cd3099 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Wed Jun 14 22:11:23 2023 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Mon Jun 19 21:10:44 2023 +0200
[DDK] srb.h: Introduce Win8+ SCSI_MAXIMUM_BUSES_PER_ADAPTER and comment about the old SCSI_MAXIMUM_* variables. --- sdk/include/ddk/srb.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/sdk/include/ddk/srb.h b/sdk/include/ddk/srb.h index 297be69d073..78c9fde397a 100644 --- a/sdk/include/ddk/srb.h +++ b/sdk/include/ddk/srb.h @@ -27,13 +27,22 @@ extern "C" { #endif
-#define SCSI_MAXIMUM_LOGICAL_UNITS 8 +/* NOTE: the current SCSI_MAXIMUM_TARGETS_PER_BUS is applicable + * only on scsiport miniports. For storport miniports, the max + * target supported is 255. */ +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define SCSI_MAXIMUM_BUSES_PER_ADAPTER 255 +#endif #define SCSI_MAXIMUM_TARGETS_PER_BUS 128 #define SCSI_MAXIMUM_LUNS_PER_TARGET 255 -#define SCSI_MAXIMUM_BUSES 8 #define SCSI_MINIMUM_PHYSICAL_BREAKS 16 #define SCSI_MAXIMUM_PHYSICAL_BREAKS 255 + +/* These constants are for backward compatibility. + * They used to be the maximum supported. */ +#define SCSI_MAXIMUM_BUSES 8 #define SCSI_MAXIMUM_TARGETS 8 +#define SCSI_MAXIMUM_LOGICAL_UNITS 8
/* PORT_CONFIGURATION_INFORMATION.Dma64BitAddresses constants */ #define SCSI_DMA64_MINIPORT_SUPPORTED 0x01