- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
my extern device's physical address is start from 0x010008F0 , what address should i read in the uclinux kernel ?
someone can help me ?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi rawbeer,
> what address should i read in the uclinux kernel ? Use the same address. If you are using a data cache, you should use the readx/writex macros [i.e. - readb()/writeb(), readw()/writew() etc.] to bypass the cache. They are defined in asm/io.h. You might want to look at the following thread as well if you plan on trying to access the device from a user application (rather than a driver): http://forum.niosforum.com/forum/index.php?showtopic=3084 (http://forum.niosforum.com/forum/index.php?showtopic=3084) Regards, --Scott
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page