On 08/18/2011 07:55 AM, Oliver Hartkopp wrote:
> On 16.08.2011 21:45, Willy Lambert wrote:
> 
>> Hi all,
>>
>> I used sja1000 on a 32bits system and I am trying to switch to a 64b system.
>> It not possible to select CONFIG_SJA1000_ISA when CONFIG_ISA is not set, 
>> which
>> is not available when CONFIG_X86_64 is set.
>>
>> As in xenomai "socket" drivers I am able to use my board, I wonder why this 
>> is
>> not possible under a vanilla linux. I access my HW by iomem (the equivalent
>> xenomai driver is xeno_can_mem), is there an equivalent socket can driver ?
> 
> 
> Hi Willy,
> 
> i've looked into
> 
> http://lxr.linux.no/#linux+v3.0.3/drivers/tty/serial/8250.c
> 
> which should have a similar problem, as these old-style serial hardware is
> also using the ISA bus.
> 
> But the serial drivers are now depending on HAS_IOMEM
> 
> http://lxr.linux.no/#linux+v3.0.3/drivers/tty/serial/Kconfig#L4
> 
> and they use platform calls
> 
> http://lxr.linux.no/#linux+v3.0.3/drivers/tty/serial/8250.c#L3177
> 
> like platform_device_alloc(), platform_device_add(),
> platform_driver_register() and friends ...
> 
> http://lxr.linux.no/#linux+v3.0.3/drivers/tty/serial/8250.c#L3349
> 
> The sja1000_isa.c still uses the ISA pendants
> 
> http://lxr.linux.no/#linux+v3.0.3/drivers/net/can/sja1000/sja1000_isa.c#L253
> 
> So IMO the sja1000_isa driver 'just' needs to be converted like they did with
> the serial drivers.
> 
> @Wolfgang/Marc: Or is it better to create some platform bindings for x86 and
> use the 'sja1000_platform' driver??

A platform driver is of course sexier :)

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to