summaryrefslogtreecommitdiffstats
path: root/drivers/char/rtrack.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/rtrack.h')
-rw-r--r--drivers/char/rtrack.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/char/rtrack.h b/drivers/char/rtrack.h
new file mode 100644
index 000000000..b5a9bc124
--- /dev/null
+++ b/drivers/char/rtrack.h
@@ -0,0 +1,25 @@
+/* RadioTrack (RadioReveal) include file.
+ * (c) 1997 M. Kirkwood
+ *
+ * Not in include/linux/ because there's no need for anyone
+ * to know about these details, I reckon.
+ */
+
+#ifndef __RTRACK_H
+#define __RTRACK_H
+
+#include <linux/radio.h>
+
+void radiotrack_init(void);
+int rt_setvol(struct radio_device *dev, int vol);
+int rt_setband(struct radio_device *dev, int vol);
+int rt_setfreq(struct radio_device *dev, int vol);
+int rt_getsigstr(struct radio_device *dev);
+
+/* frequency encoding stuff... */
+/* we have to careful not to introduce fp stuff here */
+#define RTRACK_ENCODE(x) (((((x)*2)/5)-(40*88))+0xf6c)
+#define RTRACK_DECODE(x) (((((x)-0xf6c)+(40*88))*5)/2)
+/* we shouldn't actually need the decode macro (or the excessive bracketing :-) */
+
+#endif /* __RTRACK_H */