]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/app/usbcan/can/ul_usb1.h
0848d91adea124592e42eb6d3c81b1ff334cec77
[lincan.git] / embedded / app / usbcan / can / ul_usb1.h
1 #ifndef UL_USB1_H
2 #define UL_USB1_H
3
4 /* ul_usb1.h
5  * Header file for the Linux CAN-bus driver.
6  * Written by Arnaud Westenberg email:arnaud@wanadoo.nl
7  * Rewritten for new CAN queues by Pavel Pisa - OCERA team member
8  * email:pisa@cmp.felk.cvut.cz
9  * This software is released under the GPL-License.
10  * Version lincan-0.3  17 Jun 2004
11  */
12
13 // int ul_usb1_request_io(struct candevice_t *candev);
14 // int ul_usb1_release_io(struct candevice_t *candev);
15 // int ul_usb1_reset(struct candevice_t *candev);
16 // int ul_usb1_init_hw_data(struct candevice_t *candev);
17 // int ul_usb1_init_chip_data(struct candevice_t *candev, int chipnr);
18 // int ul_usb1_init_obj_data(struct canchip_t *chip, int objnr);
19 // void ul_usb1_write_register(struct candevice_t *candev,unsigned data, unsigned long address);
20 // unsigned ul_usb1_read_register(struct candevice_t *candev,unsigned long address);
21 // int ul_usb1_program_irq(struct candevice_t *candev);
22
23 struct ul_usb1_chip_data
24 {
25         int flags;
26 };
27
28 #define UL_USB1_CHIP_MASK_SET (1<<0)
29 #define UL_USB1_CHIP_BAUD_SET (1<<1)
30
31 int ul_usb1_init(void);
32 void ul_usb1_exit(void);
33
34 #endif /* UL_USB1_H */