summaryrefslogtreecommitdiffstats
path: root/src/raw1394.h
diff options
context:
space:
mode:
authorGravatar aeb 2000-03-16 03:40:52 +0000
committerGravatar aeb 2000-03-16 03:40:52 +0000
commit227464b31ce04e1ceba51067b500ebbe54b2c08f (patch)
tree4414d7778310d0b663a719079dc794f656f22d2d /src/raw1394.h
parentRemoved obsolete AC_PROG_RANLIB. (diff)
Added FCP listen functionality.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@12 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/raw1394.h')
-rw-r--r--src/raw1394.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/raw1394.h b/src/raw1394.h
index 81abb0a..899cd5a 100644
--- a/src/raw1394.h
+++ b/src/raw1394.h
@@ -104,6 +104,16 @@ iso_handler_t raw1394_set_iso_handler(raw1394handle_t handle,
unsigned int channel,
iso_handler_t new_h);
+/*
+ * Set the handler that will be called when the local FCP_COMMAND or
+ * FCP_RESPONSE register gets written to. Returns old handler.
+ *
+ * The handler arg nodeid contains the node ID of the writer. If response is 0
+ * FCP_COMMAND was written, FCP_RESPONSE otherwise.
+ */
+typedef int (*fcp_handler_t)(raw1394handle_t, nodeid_t nodeid, int response,
+ size_t length, unsigned char *data);
+fcp_handler_t raw1394_set_fcp_handlet(raw1394handle_t, fcp_handler_t);
/*
* This is the general request handle. It is used by the default tag handler
@@ -147,6 +157,13 @@ int raw1394_lock(struct raw1394_handle *handle, nodeid_t node, nodeaddr_t addr,
int raw1394_start_iso_rcv(raw1394handle_t handle, unsigned int channel);
int raw1394_stop_iso_rcv(raw1394handle_t handle, unsigned int channel);
+/*
+ * Start and stop receiving requests sent to the local FCP_COMMAND and
+ * FCP_RESPONSE registers.
+ */
+int raw1394_start_fcp_listen(struct raw1394_handle *handle);
+int raw1394_stop_fcp_listen(struct raw1394_handle *handle);
+
#ifdef __cplusplus
}
#endif