Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Request_Region

Altera_Forum
Honored Contributor II
933 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
266 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
266 Views

OK I understand thanks for the answer.

0 Kudos
Reply