Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

linux mailbox-altera driver

Altera_Forum
Honored Contributor II
890 Views

Hi, 

 

I was wondering if anyone had any examples on using the mailbox-altera linux driver. I'm trying to communicate data back and forth between the hps and nios side and wanted to use this driver. I looked online but didn't see any documentation on using this driver for the hps side. For the nios side I'm using altera_avalon_mailbox_simple api. 

 

I did find the link below with examples but don't understand where to set this information and how to use the functions within the driver. Normally, drivers use file operations like open, release, read, and write. However, in this driver send_data, startup, shutdown, last_tx_done, and peek_data are being used as the channel operations. Should I call these operations and what do I set for the chan? 

 

http://svn.dd-wrt.com/browser/src/linux/universal/linux-4.4/documentation/devicetree/bindings/mailbo... 

 

Thanks, 

~Nora
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
152 Views

After more research, I found that the example in the link was the device tree for the altera mailbox. I don't have any experience with this so will need to do more research.  

 

I'll configure the device tree with the required properties and go from there. If anyone knows what to do after that please let me know. I'll continue my research in the mean time.
Reply