]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/constants.h
Added QUERY ioctl command for checking of driver version and message formats.
[lincan.git] / lincan / include / constants.h
index 8a918baca03cd5dae1d7cd825ea1c475ef4b9d80..81d39e1658e881af65003d8c890c7abd149cfef6 100644 (file)
 /* Device name as it will appear in /proc/devices */
 #define DEVICE_NAME "can"
 
-/* Version of the driver reported by */
-
+/* Branch of the driver */
+#define CAN_DRV_BRANCH (('L'<<24)|('I'<<16)|('N'<<8)|'C')
+
+/* Version of the driver */
+#define CAN_DRV_VER_MAJOR 0
+#define CAN_DRV_VER_MINOR 2
+#define CAN_DRV_VER_PATCH 1
+#define CAN_DRV_VER ((CAN_DRV_VER_MAJOR<<16) | (CAN_DRV_VER_MINOR<<8) | CAN_DRV_VER_PATCH)
 
 /* Default driver major number, see /usr/src/linux/Documentation/devices.txt */
 #define CAN_MAJOR 91