Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI can't give you an exact answer, but I can tell you what my experience has been in working with custom drivers.
Your problem may have something to do with the HAL. In every Altera Component directory, there is a makefile of some sort that compiles the device drivers for that component, along with a component.mk. You need to have these present. When these are present, the Altera HAL will automatically register your driver as an Ethernet driver by calling it's init functiion. You should basically copy all the files from the LAn91C directory and modify them accordingly. Be sure to look in the header files, because some structures in there are responsible for calling the init functions. I know some function adds the ethernet device to a linked list, and then sets up a bunch of function pointers for rx, tx , interrupt etc... Hope this points you at least in the right direction!!!