]> err.no Git - linux-2.6/blobdiff - include/linux/connector.h
[PATCH] Pass struct dev pointer to dma_cache_sync()
[linux-2.6] / include / linux / connector.h
index 95952cc1f525b509b365191738911c2d992d19ac..3ea1cd58de97fd7ccbba6f762f32dedca10014db 100644 (file)
 #define CN_IDX_CONNECTOR               0xffffffff
 #define CN_VAL_CONNECTOR               0xffffffff
 
-#define CN_NETLINK_USERS               1
+/*
+ * Process Events connector unique ids -- used for message routing
+ */
+#define CN_IDX_PROC                    0x1
+#define CN_VAL_PROC                    0x1
+#define CN_IDX_CIFS                    0x2
+#define CN_VAL_CIFS                     0x1
+#define CN_W1_IDX                      0x3     /* w1 communication */
+#define CN_W1_VAL                      0x1
+
+
+#define CN_NETLINK_USERS               4
 
 /*
  * Maximum connector's message size.
@@ -122,7 +133,7 @@ struct cn_callback_data {
 struct cn_callback_entry {
        struct list_head callback_entry;
        struct cn_callback *cb;
-       struct work_struct work;
+       struct delayed_work work;
        struct cn_queue_dev *pdev;
 
        struct cn_callback_id id;
@@ -159,7 +170,7 @@ void cn_queue_free_dev(struct cn_queue_dev *dev);
 
 int cn_cb_equal(struct cb_id *, struct cb_id *);
 
-void cn_queue_wrapper(void *data);
+void cn_queue_wrapper(struct work_struct *work);
 
 extern int cn_already_initialized;