summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_ddi.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-24 04:23:46 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-24 10:03:18 +0200
commite5067d7cd967cb17067de24a162306b79f432b20 (patch)
tree541f101762df32a5742bec354009986a96d8e564 /net/ax25/ax25_ddi.h
parent86a981e836404006efc35881ebf3d5ae36925e82 (diff)
Import newax25-2.4.3.patch.1.bz2HEADnewax25-2.4.3-1
And cleanup the *.orig and *.rej files and whitespace errors that are part of the original patch. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'net/ax25/ax25_ddi.h')
-rw-r--r--net/ax25/ax25_ddi.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/net/ax25/ax25_ddi.h b/net/ax25/ax25_ddi.h
new file mode 100644
index 000000000..acaf4aa37
--- /dev/null
+++ b/net/ax25/ax25_ddi.h
@@ -0,0 +1,39 @@
+/*
+ * Interface declaration for the DDI layer.
+ *
+ * Matthias Welwarsky (DG2FEF) 05/25/98
+ *
+ */
+
+
+#ifndef _AX25_DDI_H
+#define _AX25_DDI_H
+
+enum {
+ AX25_TX_STATE_IDLE = 0,
+ AX25_TX_STATE_RTS,
+ AX25_TX_STATE_WAIT_CTS,
+ AX25_TX_STATE_CTS
+};
+
+extern void ax25_ddi_init(void);
+extern ax25_cb* ax25_dev_list(struct net_device *);
+extern void ax25_dev_insert_cb(ax25_cb *);
+extern void ax25_dev_remove_cb(ax25_cb *);
+extern ax25_cb* ax25_dev_find_listener(ax25_address *, int, struct net_device *);
+extern struct sock* ax25_dev_find_socket(ax25_address *, ax25_address *, struct net_device *, int);
+extern int ax25_dev_match_addr(ax25_address *, struct net_device *);
+extern void ax25_kick(ax25_cb *);
+extern void ax25_send_unproto(struct sk_buff*, struct net_device*);
+extern void ax25_send_broadcast(struct sk_buff*);
+extern void ax25_dev_set_value_notify(struct net_device *dev, int, int);
+extern void ax25_dev_device_up(struct net_device *);
+extern void ax25_dev_device_down(struct net_device *);
+extern int ax25_fwd_ioctl(unsigned int, struct ax25_fwd_struct *);
+extern struct net_device* ax25_fwd_dev(struct net_device *);
+extern int ax25_dev_get_info(char*, char**, off_t, int);
+extern void ax25_notify_dispatcher(struct net_device *dev, int id, int oldval, int newval);
+extern void ax25_dev_set_dama(struct net_device *dev, int dama);
+
+extern struct net_device* ax25_devices[];
+#endif