X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a4c9ead4b64bd4de307f375c2ff313a7a07a06e0..2400133f2d0cb18784a9c2edb4d5e58a8500d175:/lincan/include/sja1000.h diff --git a/lincan/include/sja1000.h b/lincan/include/sja1000.h index bb6dd11..fa04cce 100644 --- a/lincan/include/sja1000.h +++ b/lincan/include/sja1000.h @@ -7,23 +7,24 @@ * Version lincan-0.3 17 Jun 2004 */ -int sja1000_enable_configuration(struct chip_t *chip); -int sja1000_disable_configuration(struct chip_t *chip); -int sja1000_chip_config(struct chip_t *chip); -int sja1000_standard_mask(struct chip_t *chip, unsigned short code, unsigned short mask); -int sja1000_baud_rate(struct chip_t *chip, int rate, int clock, int sjw, +int sja1000_enable_configuration(struct canchip_t *chip); +int sja1000_disable_configuration(struct canchip_t *chip); +int sja1000_chip_config(struct canchip_t *chip); +int sja1000_standard_mask(struct canchip_t *chip, unsigned short code, unsigned short mask); +int sja1000_baud_rate(struct canchip_t *chip, int rate, int clock, int sjw, int sampl_pt, int flags); -int sja1000_pre_read_config(struct chip_t *chip, struct msgobj_t *obj); -int sja1000_pre_write_config(struct chip_t *chip, struct msgobj_t *obj, +int sja1000_pre_read_config(struct canchip_t *chip, struct msgobj_t *obj); +int sja1000_pre_write_config(struct canchip_t *chip, struct msgobj_t *obj, struct canmsg_t *msg); -int sja1000_send_msg(struct chip_t *chip, struct msgobj_t *obj, +int sja1000_send_msg(struct canchip_t *chip, struct msgobj_t *obj, struct canmsg_t *msg); -int sja1000_check_tx_stat(struct chip_t *chip); -int sja1000_set_btregs(struct chip_t *chip, unsigned short btr0, +int sja1000_check_tx_stat(struct canchip_t *chip); +int sja1000_set_btregs(struct canchip_t *chip, unsigned short btr0, unsigned short btr1); -int sja1000_start_chip(struct chip_t *chip); -int sja1000_stop_chip(struct chip_t *chip); -can_irqreturn_t sja1000_irq_handler(int irq, void *dev_id, struct pt_regs *regs); +int sja1000_start_chip(struct canchip_t *chip); +int sja1000_stop_chip(struct canchip_t *chip); +int sja1000_irq_handler(int irq, struct canchip_t *chip); +int sja1000_fill_chipspecops(struct canchip_t *chip); /* BasicCAN mode address map */ #define SJACR 0x00 /* Control register */