summaryrefslogtreecommitdiff
path: root/include/scsi.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-02-09 09:29:07 -0500
committerTom Rini <trini@konsulko.com>2022-02-09 09:29:07 -0500
commit859703251251d9567f29ab10c0a29f98eb0aff5c (patch)
treee0863f7cced9c153b8b083575d52faec05fae8d7 /include/scsi.h
parent531c00894577a0a852431adf61ade76925f8b162 (diff)
parentcccc4ab86f5e64ea6fe1e79b3ca2453baa049120 (diff)
Merge branch '2022-02-08-Kconfig-updates'
- Assorted general code cleanups to make sure we use the right macros and use them correctly and buildman updates around kconfig.h itself. - Convert some IDE and SCSI symbols to Kconfig. - Convert CONFIG_REMAKE_ELF - Introduce conversion deadline for DM_SCSI.
Diffstat (limited to 'include/scsi.h')
-rw-r--r--include/scsi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h
index 66a2caa26e3..b47c7463c1d 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -9,6 +9,10 @@
#include <asm/cache.h>
#include <linux/dma-direction.h>
+/* Fix this to the maximum */
+#define SCSI_MAX_DEVICE \
+ (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+
struct udevice;
struct scsi_cmd {