Add target_data_bits().
[fw/openocd] / src / target / target_type.h
index cc51c0401659405d2307f79766673126f22f7101..cf30cf8cc69e88b72f6f30fda4baa6a5afd9b884 100644 (file)
@@ -295,6 +295,11 @@ struct target_type {
         * typically be 32 for 32-bit targets, and 64 for 64-bit targets. If not
         * implemented, it's assumed to be 32. */
        unsigned (*address_bits)(struct target *target);
+
+       /* Return the number of system bus data bits this target supports. This
+        * will typically be 32 for 32-bit targets, and 64 for 64-bit targets. If
+        * not implemented, it's assumed to be 32. */
+       unsigned int (*data_bits)(struct target *target);
 };
 
 #endif /* OPENOCD_TARGET_TARGET_TYPE_H */