This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

===== Week 5 [ Mon 21 Jun 2010 - Sun 27 Jun 2010 ] ===== ==== Day 1 [ Mon 21 Jun 2010 ] ==== Git commit: [[http://git.etherboot.org/?p=people/andreif/gpxe.git;a=commit;h=0906919af2982e3f285287035c210e101fafd783|0906919af2982e3f285287035c210e101fafd783]] Today I continued with my work on the forcedeth driver. Eventually I reached a point where I really needed the registers mapped. At this point, I was really confused since I saw that most of the drivers simply got ioaddr as the base address or used ioremap to get a memory mapped BAR. The Linux driver can't do this since some models have different register sizes (i guess this is the total size of all registers). So, it has to search all the BARs and select the one which describes the largest memory area. I had to go a bit more low-level to do this, and use some pci_* routines. With stefanha's help I did manage to do it eventually. I spent most of the time reading up on the PCI specification and studying to see if other drivers have this problem. There is the ''via-velocity'' driver which has a similar problem and implements its own ''pci_resource_flags routine''. Perhaps this should be moved to a common header somewhere. Tomorrow I'll finish .probe and do the first tests on the NIC I have :)


Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:2010:andreif:journal:week5 (generated for current page)