linux/drivers/net/can/sja1000
Wolfgang Grandegger 2a6ba39ad6 can: sja1000: legacy SJA1000 ISA bus driver
This patch adds support for legacy SJA1000 CAN controllers on the ISA
or PC-104 bus. The I/O port or memory address and the IRQ number must
be specified via module parameters:

  insmod sja1000_isa.ko port=0x310,0x380 irq=7,11

for ISA devices using I/O ports or:

  insmod sja1000_isa.ko mem=0xd1000,0xd1000 irq=7,11

for memory mapped ISA devices.

Indirect access via address and data port is supported as well:

  insmod sja1000_isa.ko port=0x310,0x380 indirect=1 irq=7,11

Here is a full list of the supported module parameters:

  port:I/O port number (array of ulong)
  mem:I/O memory address (array of ulong)
  indirect:Indirect access via address and data port (array of byte)
  irq:IRQ number (array of int)
  clk:External oscillator clock frequency (default=16000000 [16 MHz])
      (array of int)
  cdr:Clock divider register (default=0x48 [CDR_CBP | CDR_CLK_OFF])
      (array of byte)
  ocr:Output clock register (default=0x18 [OCR_TX0_PUSHPULL])
      (array of byte)

Note: for clk, cdr, ocr, the first argument re-defines the default
for all other devices, e.g.:

 insmod sja1000_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000

is equivalent to

 insmod sja1000_isa.ko mem=0xd1000,0xd1000 irq=7,11 \
                       clk=24000000,24000000

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Tested-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-09-04 02:16:16 -07:00
..
ems_pci.c can: sja1000: Add support for the new 4 channel EMS CPC-PCI cards 2009-07-23 18:01:02 -07:00
kvaser_pci.c can: sja1000: stop misusing member base_addr of struct net_device 2009-06-01 02:53:34 -07:00
Makefile can: sja1000: legacy SJA1000 ISA bus driver 2009-09-04 02:16:16 -07:00
sja1000_isa.c can: sja1000: legacy SJA1000 ISA bus driver 2009-09-04 02:16:16 -07:00
sja1000_of_platform.c can: sja1000_of_platform: fix build problems with printk format 2009-06-10 01:12:39 -07:00
sja1000_platform.c can: sja1000: stop misusing member base_addr of struct net_device 2009-06-01 02:53:34 -07:00
sja1000.c can: sja1000: fix network statistics update 2009-09-04 02:16:15 -07:00
sja1000.h can: sja1000: stop misusing member base_addr of struct net_device 2009-06-01 02:53:34 -07:00