2 * Header file for the Linux CAN-bus driver.
3 * Written by Jan Kriz email:johen@post.cz
4 * This software is released under the GPL-License.
5 * Version lincan-0.3 17 Jul 2008
8 int usbcan_request_io(struct candevice_t *candev);
9 int usbcan_release_io(struct candevice_t *candev);
10 int usbcan_reset(struct candevice_t *candev);
11 int usbcan_init_hw_data(struct candevice_t *candev);
12 int usbcan_init_chip_data(struct candevice_t *candev, int chipnr);
13 int usbcan_init_obj_data(struct canchip_t *chip, int objnr);
14 void usbcan_write_register(unsigned data, unsigned long address);
15 unsigned usbcan_read_register(unsigned long address);
16 int usbcan_program_irq(struct candevice_t *candev);
18 int usbcan_chip_config(struct canchip_t *chip);
19 int usbcan_extended_mask(struct canchip_t *chip, unsigned long code, unsigned long mask);
20 int usbcan_baud_rate(struct canchip_t *chip, int rate, int clock, int sjw,
21 int sampl_pt, int flags);
22 int usbcan_pre_read_config(struct canchip_t *chip, struct msgobj_t *obj);
23 int usbcan_pre_write_config(struct canchip_t *chip, struct msgobj_t *obj,
24 struct canmsg_t *msg);
25 int usbcan_send_msg(struct canchip_t *chip, struct msgobj_t *obj,
26 struct canmsg_t *msg);
27 int usbcan_fill_chipspecops(struct canchip_t *chip);
28 int usbcan_irq_handler(int irq, struct canchip_t *chip);