Forum Discussion
Altera_Forum
Honored Contributor
16 years agoRequest_Region
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.2 Replies
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
OK I understand thanks for the answer.