Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHi,
I haven't port TSE MAC to uCLinux but I had read/modified/changed on the driver for TSE driver the interniche stack provided with MicroC/OS-II (come with Nios2-ide) before, i think it is not too difficult to understand it, in order to port the driver to uCLinux, what you need to knows (I think so, if it is not please let me know:)) 1. look at the section where TSE MAC driver provided all the necessary function pointer to the interniche stack as a struct --> you need to figure out what struct the uCLinux need, for example, interniche stack required the ethernet packet accept in memory being pad with 2 bytes of 0 in front so that it can jump to byte number-12 for the payload easily. 2. you need to see how the interniche stack in OS-II consume/take in the struct mentioned in 1 3. later will be modified other part of the driver that use function native to OS-II to uCLinux 4. check what is the other specific requirement that the uCLinux required from a MAC interface, if the feature exists in the TSE MAC as hardware function, add few more lines register read/write:) 5. if a feature doesn't exist in the TSE MAC, try to emulate it in the driver, or file a Service Request to the Altera TSE IP team for feature recommendation.