X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/626f7414aee3ecd51ab35d093314919528f67b12..01b12d9b7e632bab288a0e2736525ce32fd1004d:/lincan/include/sja1000p.h diff --git a/lincan/include/sja1000p.h b/lincan/include/sja1000p.h index 9f6806e..9ca166b 100644 --- a/lincan/include/sja1000p.h +++ b/lincan/include/sja1000p.h @@ -1,22 +1,26 @@ /* sja1000p.h * Header file for the Linux CAN-bus driver. * Written by Arnaud Westenberg email:arnaud@wanadoo.nl - * This software is released under the GPL-License. - * Version 0.6.1 T.Motylewski@bfad.de 13.03.2001 + * Added by T.Motylewski@bfad.de * See app. note an97076.pdf from Philips Semiconductors * and SJA1000 data sheet * PELICAN mode + * This software is released under the GPL-License. + * Version lincan-0.3 17 Jun 2004 */ -int sja1000p_chip_config(struct chip_t *chip); -int sja1000p_extended_mask(struct chip_t *chip, unsigned long code, unsigned long mask); -int sja1000p_baud_rate(struct chip_t *chip, int rate, int clock, int sjw, +int sja1000p_chip_config(struct canchip_t *chip); +int sja1000p_extended_mask(struct canchip_t *chip, unsigned long code, unsigned long mask); +int sja1000p_baud_rate(struct canchip_t *chip, int rate, int clock, int sjw, int sampl_pt, int flags); -int sja1000p_pre_read_config(struct chip_t *chip, struct msgobj_t *obj); -int sja1000p_pre_write_config(struct chip_t *chip, struct msgobj_t *obj, +int sja1000p_pre_read_config(struct canchip_t *chip, struct msgobj_t *obj); +int sja1000p_pre_write_config(struct canchip_t *chip, struct msgobj_t *obj, struct canmsg_t *msg); -int sja1000p_send_msg(struct chip_t *chip, struct msgobj_t *obj, +int sja1000p_send_msg(struct canchip_t *chip, struct msgobj_t *obj, struct canmsg_t *msg); +int sja1000p_fill_chipspecops(struct canchip_t *chip); +int sja1000p_irq_handler(int irq, struct canchip_t *chip); + /* PeliCAN mode */ enum SJA1000_PeliCAN_regs {