~ubuntu-branches/ubuntu/lucid/xenomai/lucid

« back to all changes in this revision

Viewing changes to ksrc/drivers/can/sja1000/rtcan_isa.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-24 22:17:01 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090624221701-mwnah8aj90zmp6uj
Tags: 2.4.8-2ubuntu1
* Merge from debian unstable (LP: #391918), remaining changes:
  - Add lpia to supported architectures.
  - debian/rules: Create file for debhelper to pick up, use debhelper to
    install it.
  - debian/libxenomai1.dirs: Do not create directory.
  - debian/libxenomai1.preinst: Remove symlink on upgrade, remove old udev.
    rule unless modified in which case move to new name.
  - debian/libxenomai1.postinst: Do not create symlink.
  - debian/libxenomai1.postrm: No symlink to remove.
  - Bump build-depend on debhelper to install udev rules into
    /lib/udev/rules.d, add Breaks on udev to get correct version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
static u16 io[RTCAN_ISA_MAX_DEV];
49
49
static int irq[RTCAN_ISA_MAX_DEV];
50
 
static u32 clock[RTCAN_ISA_MAX_DEV];
 
50
static u32 can_clock[RTCAN_ISA_MAX_DEV];
51
51
static u8 ocr[RTCAN_ISA_MAX_DEV];
52
52
static u8 cdr[RTCAN_ISA_MAX_DEV];
53
53
 
54
54
compat_module_param_array(io, ushort, RTCAN_ISA_MAX_DEV, 0444);
55
55
compat_module_param_array(irq, int, RTCAN_ISA_MAX_DEV, 0444);
56
 
compat_module_param_array(clock, uint, RTCAN_ISA_MAX_DEV, 0444);
 
56
compat_module_param_array(can_clock, uint, RTCAN_ISA_MAX_DEV, 0444);
57
57
compat_module_param_array(ocr, byte, RTCAN_ISA_MAX_DEV, 0444);
58
58
compat_module_param_array(cdr, byte, RTCAN_ISA_MAX_DEV, 0444);
59
59
 
60
60
MODULE_PARM_DESC(io, "The io-port address");
61
61
MODULE_PARM_DESC(irq, "The interrupt number");
62
 
MODULE_PARM_DESC(clock, "External clock frequency (default 16 MHz)");
 
62
MODULE_PARM_DESC(can_clock, "External clock frequency (default 16 MHz)");
63
63
MODULE_PARM_DESC(ocr, "Value of output control register (default 0x1a)");
64
64
MODULE_PARM_DESC(cdr, "Value of clock divider register (default 0xc8");
65
65
 
116
116
        }
117
117
 
118
118
        /* Clock frequency in Hz */
119
 
        if (clock[idx])
120
 
                dev->can_sys_clock = clock[idx] / 2;
 
119
        if (can_clock[idx])
 
120
                dev->can_sys_clock = can_clock[idx] / 2;
121
121
        else
122
122
                dev->can_sys_clock = 8000000; /* 16/2 MHz */
123
123