]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/template.h
CAN driver infrastructure redesign to LinCAN-0.2 version
[lincan.git] / lincan / include / template.h
index 410a46bdacf495f057778454e195ad10e14698da..f61e31f88851b54a8a808ace1f62e971adf3e996 100644 (file)
@@ -1,17 +1,19 @@
 /* template.h
  * Header file for the Linux CAN-bus driver.
  * Written by Arnaud Westenberg email:arnaud@wanadoo.nl
 /* template.h
  * Header file for the Linux CAN-bus driver.
  * Written by Arnaud Westenberg email:arnaud@wanadoo.nl
+ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member
+ * email:pisa@cmp.felk.cvut.cz
  * This software is released under the GPL-License.
  * This software is released under the GPL-License.
- * Version 0.7  6 Aug 2001
+ * Version lincan-0.2  9 Jul 2003
  */
 
  */
 
-int template_request_io(unsigned long io_addr);
-int template_release_io(unsigned long io_addr);
-int template_reset(int card); 
-int template_init_hw_data(int card);
-int template_init_chip_data(int card, int chipnr);
-int template_init_obj_data(int chipnr, int objnr);
+int template_request_io(struct candevice_t *candev);
+int template_release_io(struct candevice_t *candev);
+int template_reset(struct candevice_t *candev); 
+int template_init_hw_data(struct candevice_t *candev);
+int template_init_chip_data(struct candevice_t *candev, int chipnr);
+int template_init_obj_data(struct chip_t *chip, int objnr);
 void template_write_register(unsigned char data, unsigned long address);
 unsigned template_read_register(unsigned long address);
 void template_write_register(unsigned char data, unsigned long address);
 unsigned template_read_register(unsigned long address);
-int template_program_irq(int card);
+int template_program_irq(struct candevice_t *candev);