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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Request_Region

Altera_Forum
Honored Contributor II
1,168 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
501 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
501 Views

OK I understand thanks for the answer.

0 Kudos
Reply