]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - embedded/app/usbcan/can/ul_usb1.h
Embedded code and LinCAN driver now working
[lincan.git] / embedded / app / usbcan / can / ul_usb1.h
index 818bb242abee7b881c7829a0273b65824d809164..385f4e39be0c3e3ad1a2c9528723a13f23499f3d 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef UL_USB1_H
+#define UL_USB1_H
+
 /* ul_usb1.h
  * Header file for the Linux CAN-bus driver.
  * Written by Arnaud Westenberg email:arnaud@wanadoo.nl
  * Version lincan-0.3  17 Jun 2004
  */
 
-// int ul_usb1_request_io(struct candevice_t *candev);
-// int ul_usb1_release_io(struct candevice_t *candev);
-// int ul_usb1_reset(struct candevice_t *candev);
-// int ul_usb1_init_hw_data(struct candevice_t *candev);
-// int ul_usb1_init_chip_data(struct candevice_t *candev, int chipnr);
-// int ul_usb1_init_obj_data(struct canchip_t *chip, int objnr);
-// void ul_usb1_write_register(struct candevice_t *candev,unsigned data, unsigned long address);
-// unsigned ul_usb1_read_register(struct candevice_t *candev,unsigned long address);
-// int ul_usb1_program_irq(struct candevice_t *candev);
+struct ul_usb1_chip_data
+{
+       int flags;
+};
+
+#define UL_USB1_CHIP_MASK_SET (1<<0)
+#define UL_USB1_CHIP_BAUD_SET (1<<1)
 
 int ul_usb1_init(void);
 void ul_usb1_exit(void);
+
+extern int ul_usb1_register(struct hwspecops_t *hwspecops);
+
+#endif /* UL_USB1_H */