X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/2a4663dd0b20d96d1ffe20993dd0c63ed2ca9f20..23de740dc1fe197cc326b0e3ef6c3622a0e3cb7f:/lincan/include/sja1000.h diff --git a/lincan/include/sja1000.h b/lincan/include/sja1000.h index 16dc20c..fa04cce 100644 --- a/lincan/include/sja1000.h +++ b/lincan/include/sja1000.h @@ -7,24 +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_fill_chipspecops(struct chip_t *chip); +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 */