]> rtime.felk.cvut.cz Git - can-eth-gw.git/blobdiff - kernel/canethgw.h
canethgw micsdevice
[can-eth-gw.git] / kernel / canethgw.h
index 10f745a8392da509688c3d9b59e36971b5433a5f..4381bda47e68faf2f460666a9b62c19f487a1f62 100644 (file)
@@ -4,6 +4,10 @@
 #include <linux/types.h>
 #include <linux/can.h>
 
+#define CEGW_IOCTL_BASE 'c'
+#define CEGW_IOCTL_CAN_SOCK _IOW(CEGW_IOCTL_BASE, 0, int)
+#define CEGW_IOCTL_UDP_SOCK _IOW(CEGW_IOCTL_BASE, 1, int)
+
 /* these are from gw.h */
 struct rtcanmsg {
        __u8  can_family;
@@ -28,8 +32,6 @@ enum {
        CEGW_ETH_IP,
        CEGW_ETH_PORT,
        CEGW_CMD_INFO,
-       CEGW_CAN_SOCK,
-       CEGW_ETH_SOCK,
        __CEGW_MAX
 };
 #define CEGW_MAX (__CEGW_MAX - 1)