Daniel Baluta wrote: > On Fri, Sep 4, 2009 at 11:38 PM, Wolfgang Grandegger<[email protected]> > wrote: >> On 09/04/2009 10:31 PM, Daniel Baluta wrote: >>> Hello, >>> >>> I'm analyzing the file sja1000.c from linux-2.6.31-rc8 and I cannot >>> find the implementation >>> for write_reg member function of sja1000_priv structure. >>> Is this file incomplete? >> The SJA1000 board/card drivers use the interface and implement these >> functions, e.g. sja1000_platform.c, *_pci.c, etc. > > Hmm, so sja1000.c exports some sort of a generic interface and *_pci.c > and *_platform.c are specific implementations of this interface?
Yes. The *_platform, *_pci, *_pcmcia or *_isa stuff is the frontend that is needed to talk to the SJA1000 controller chip. It initializes the board specific hardware to have access to the SJA1000 and also provides the functions, how the SJA1000 is accessed on register level. And when e.g. the interrupt request happens the code in sja1000.ko uses these provided functions. sja1000.ko provides only the 'how to do things with the SJA1000', but it does not know about the board. Regards, Oliver _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
