]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/hms30c7202_can.h
The first phase of integration of Hynix HMS30c7202 C_CAN support
[lincan.git] / lincan / include / hms30c7202_can.h
diff --git a/lincan/include/hms30c7202_can.h b/lincan/include/hms30c7202_can.h
new file mode 100644 (file)
index 0000000..25ce632
--- /dev/null
@@ -0,0 +1,28 @@
+/* hms30c7202_can.h - Hynix HMS30c7202 ARM device specific code\r
+ * Linux CAN-bus device driver.\r
+ * Written by Sebastian Stolzenberg email:stolzi@sebastian-stolzenberg.de\r
+ * Based on code from Arnaud Westenberg email:arnaud@wanadoo.nl\r
+ * and Ake Hedman, eurosource, akhe@eurosource.se\r
+ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member\r
+ * email:pisa@cmp.felk.cvut.cz\r
+ * This software is released under the GPL-License.\r
+ * Version lincan-0.2  9 Jul 2003\r
+ */\r
+\r
+#ifndef __HMS30C7202_CAN__\r
+# define __HMS30C7202_CAN__\r
+\r
+int hms30c7202_init_hw_data(struct candevice_t *candev);\r
+int hms30c7202_init_chip_data(struct candevice_t *candev, int chipnr);\r
+int hms30c7202_request_io(struct candevice_t *candev);\r
+int hms30c7202_release_io(struct candevice_t *candev);\r
+int hms30c7202_reset(  struct candevice_t *candev);\r
+void hms30c7202_write_reg_w(const struct chip_t *pchip, u16 data, unsigned reg);\r
+u16 hms30c7202_read_reg_w(const struct chip_t *pchip, unsigned reg);\r
+\r
+\r
+\r
+int hms30c7202_init_obj_data(struct chip_t *chip, int objnr);\r
+int hms30c7202_program_irq(struct candevice_t *candev);\r
+\r
+#endif /* __HMS30C7202_CAN__ */\r