summaryrefslogtreecommitdiffstats
path: root/include/linux/vme.h
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2015-10-11 01:00:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 22:03:00 -0700
commitad1bfe410e91189522514ea784668dc75a4e64c4 (patch)
tree516b42acabd3366dfacc1261b870e58183f5e680 /include/linux/vme.h
parent37784706bf9e3b723898125b47d6f1e76a8db418 (diff)
downloadlinux-ad1bfe410e91189522514ea784668dc75a4e64c4.tar.gz
linux-ad1bfe410e91189522514ea784668dc75a4e64c4.tar.bz2
linux-ad1bfe410e91189522514ea784668dc75a4e64c4.zip
vme: 8-bit status/id takes 256 values, not 255
Fixes an off by one array size. Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/vme.h')
-rw-r--r--include/linux/vme.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/vme.h b/include/linux/vme.h
index c0131358f351..71e4a6dec5ac 100644
--- a/include/linux/vme.h
+++ b/include/linux/vme.h
@@ -81,6 +81,9 @@ struct vme_resource {
extern struct bus_type vme_bus_type;
+/* Number of VME interrupt vectors */
+#define VME_NUM_STATUSID 256
+
/* VME_MAX_BRIDGES comes from the type of vme_bus_numbers */
#define VME_MAX_BRIDGES (sizeof(unsigned int)*8)
#define VME_MAX_SLOTS 32