2 * Header file for the Linux CAN-bus driver.
3 * This software is released under the GPL-License.
10 #define SH7760_CAN_IRQ 56
11 #define SH7760_CAN_CHIP_OFFSET 0x10000
12 #define SH7760_CAN_CLOCK 33333330 /* 33.3 MHz */
14 #define IO_RANGE 0x10000
16 /* static CAN_DEFINE_SPINLOCK(sh7760_port_lock); */
20 int sh7760_request_io(struct candevice_t *candev);
21 int sh7760_release_io(struct candevice_t *candev);
22 int sh7760_reset(struct candevice_t *candev);
23 int sh7760_init_hw_data(struct candevice_t *candev);
24 int sh7760_init_chip_data(struct candevice_t *candev, int chipnr);
25 int sh7760_init_obj_data(struct canchip_t *chip, int objnr);
26 int sh7760_program_irq(struct candevice_t *candev);
27 void sh7760_write_register(unsigned data, can_ioptr_t address);
28 unsigned sh7760_read_register(can_ioptr_t address);