[lkml]   [2000]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectA simple question about readw, readw and the like


I was looking into some of the Linux device drivers ( a new thing for me), and I
found out that many (all?) were using calls to "readw", "readl".... and the
I did some tests using a PCI board with a PLX9050 bridge and I quickly succeeded
in accessing the bridge directly by defining a "plx9050" structure, using the
address returned by "ioremap" as a pointer to such a structure and reading and
writing the registers with e.g. plx_ptr->local_address_base_0

So what are the advantages/problems associated with using readw, writel and the
like? Is this a way to get compatibility across various platforms?

Which access method is best?

Any info, pointer will be appreciated

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:57    [from the cache]
©2003-2011 Jasper Spaans