- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to write an interrupt driver. I have seen that many drivers inside init_function appeared a function like "request_reg_region". I have read some documentation about the function but I haven't clear my ideas. I don't understand the necessity of doing this manner, because inside uClinux there is the document "nios.h" where appear all my physical adress which I can access my hardware. If someone can explain me which are benefits. Thanks a lot.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should never directly access hardware registers. The new NIOS Linux distribution is able to use the MMU and thus any (driver-) software should be done in a portable way.
-Michael- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK I understand thanks for the answer.
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