* Linux CAN-bus device driver.
* Written by Arnaud Westenberg email:arnaud@casema.net
* This software is released under the GPL-License.
* Linux CAN-bus device driver.
* Written by Arnaud Westenberg email:arnaud@casema.net
* This software is released under the GPL-License.
int ssvcan_irq[2]={-1,-1};
unsigned long ssvcan_base=0x0;
int ssvcan_irq[2]={-1,-1};
unsigned long ssvcan_base=0x0;
/* IO_RANGE is the io-memory range that gets reserved, please adjust according
* your hardware. Example: #define IO_RANGE 0x100 for i82527 chips or
* #define IO_RANGE 0x20 for sja1000 chips.
/* IO_RANGE is the io-memory range that gets reserved, please adjust according
* your hardware. Example: #define IO_RANGE 0x100 for i82527 chips or
* #define IO_RANGE 0x20 for sja1000 chips.
candev->chip[chipnr]->chip_base_addr=
candev->io_addr+0x100*chipnr;
candev->chip[chipnr]->clock = 16000000;
candev->chip[chipnr]->chip_base_addr=
candev->io_addr+0x100*chipnr;
candev->chip[chipnr]->clock = 16000000;
* on the CAN chip. You should only have to edit this function if your hardware
* uses some specific write process.
*/
* on the CAN chip. You should only have to edit this function if your hardware
* uses some specific write process.
*/
outb(address-ssvcan_base-0x100, ssvcan_base+0x02);
ret=inb(ssvcan_base+1+0x02);
outb(address-ssvcan_base-0x100, ssvcan_base+0x02);
ret=inb(ssvcan_base+1+0x02);