aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/sir-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/irda/sir-dev.h')
-rw-r--r--drivers/net/irda/sir-dev.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/net/irda/sir-dev.h b/drivers/net/irda/sir-dev.h
index 6d5b1e2b1289..f50b9c1c0639 100644
--- a/drivers/net/irda/sir-dev.h
+++ b/drivers/net/irda/sir-dev.h
@@ -102,28 +102,29 @@ struct sir_driver {
102 102
103/* exported */ 103/* exported */
104 104
105extern int irda_register_dongle(struct dongle_driver *new); 105int irda_register_dongle(struct dongle_driver *new);
106extern int irda_unregister_dongle(struct dongle_driver *drv); 106int irda_unregister_dongle(struct dongle_driver *drv);
107 107
108extern struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *name); 108struct sir_dev *sirdev_get_instance(const struct sir_driver *drv,
109extern int sirdev_put_instance(struct sir_dev *self); 109 const char *name);
110int sirdev_put_instance(struct sir_dev *self);
110 111
111extern int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type); 112int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type);
112extern void sirdev_write_complete(struct sir_dev *dev); 113void sirdev_write_complete(struct sir_dev *dev);
113extern int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count); 114int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count);
114 115
115/* low level helpers for SIR device/dongle setup */ 116/* low level helpers for SIR device/dongle setup */
116extern int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len); 117int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len);
117extern int sirdev_raw_read(struct sir_dev *dev, char *buf, int len); 118int sirdev_raw_read(struct sir_dev *dev, char *buf, int len);
118extern int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts); 119int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts);
119 120
120/* not exported */ 121/* not exported */
121 122
122extern int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type); 123int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type);
123extern int sirdev_put_dongle(struct sir_dev *self); 124int sirdev_put_dongle(struct sir_dev *self);
124 125
125extern void sirdev_enable_rx(struct sir_dev *dev); 126void sirdev_enable_rx(struct sir_dev *dev);
126extern int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param); 127int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param);
127 128
128/* inline helpers */ 129/* inline helpers */
129 130