]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/can.h
Structured comments updated.
[lincan.git] / lincan / include / can.h
index 3cf633b75761318b4a28df9c61d522bd5c1bda4d..0473dcc393ceb3a854f7a6994f4e56c03038a9ba 100644 (file)
@@ -28,6 +28,11 @@ typedef unsigned long bittiming_t;
 typedef unsigned short channel_t;
 
 /* CAN ioctl functions */
+#define CAN_DRV_QUERY _IO(CAN_IOC_MAGIC, 0)
+#define CAN_DRV_QRY_BRANCH    0        /* returns driver branch value - "LINC" for LinCAN driver */
+#define CAN_DRV_QRY_VERSION   1        /* returns driver version as (major<<16) | (minor<<8) | patch */
+#define CAN_DRV_QRY_MSGFORMAT 2        /* format of canmsg_t structure */
+
 #define CMD_START _IOW(CAN_IOC_MAGIC, 1, channel_t)
 #define CMD_STOP _IOW(CAN_IOC_MAGIC, 2, channel_t)
 //#define CMD_RESET 3