]> rtime.felk.cvut.cz Git - lincan.git/blob - lincan/include/sh7760.h
Added support for HCAN2 controllers integrated in SH7760.
[lincan.git] / lincan / include / sh7760.h
1 /* sh7760.h
2  * Header file for the Linux CAN-bus driver.
3  * This software is released under the GPL-License.
4  */
5
6 #define NR_82527        0
7 #define NR_SJA1000      0
8 #define NR_ALL          2
9
10 #define SH7760_CAN_IRQ          56
11 #define SH7760_CAN_CHIP_OFFSET  0x10000
12 #define SH7760_CAN_CLOCK        33333330          /* 33.3 MHz */
13
14 #define IO_RANGE                0x10000
15
16 /* static CAN_DEFINE_SPINLOCK(sh7760_port_lock); */
17
18
19
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);
29