X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/ca4ad65fe791cd40f1dcec6d0398fd74b31051cd..6986182b7f31b1ef6adc1369e71baa3bbbffdf0a:/lincan/src/smartcan.c diff --git a/lincan/src/smartcan.c b/lincan/src/smartcan.c index 4d638f9..eddd13d 100644 --- a/lincan/src/smartcan.c +++ b/lincan/src/smartcan.c @@ -4,7 +4,7 @@ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ #include "../include/can.h" @@ -78,7 +78,7 @@ int smartcan_init_hw_data(struct candevice_t *candev) int smartcan_init_chip_data(struct candevice_t *candev, int chipnr) { - candev->chip[chipnr]->chip_type="i82527"; + i82527_fill_chipspecops(candev->chip[chipnr]); candev->chip[chipnr]->chip_base_addr=candev->io_addr; candev->chip[chipnr]->clock = 16000000; candev->chip[chipnr]->int_cpu_reg = iCPU_DSC; @@ -92,7 +92,7 @@ int smartcan_init_chip_data(struct candevice_t *candev, int chipnr) return 0; } -int smartcan_init_obj_data(struct chip_t *chip, int objnr) +int smartcan_init_obj_data(struct canchip_t *chip, int objnr) { chip->msgobj[objnr]->obj_base_addr=(objnr+1)*0x10; @@ -100,7 +100,7 @@ int smartcan_init_obj_data(struct chip_t *chip, int objnr) } -void smartcan_write_register(unsigned char data, unsigned long address) +void smartcan_write_register(unsigned data, unsigned long address) { can_spin_irqflags_t flags; can_spin_lock_irqsave(&smartcan_port_lock,flags);