[GSOC-18] Convert PCI drivers to be table driven - Week 8

Lakhan Shiva Kamireddy lakhan at freebsd.org
Mon Jul 9 11:17:43 UTC 2018


 Hi All,

As you are aware, my project is to convert PCI drivers to be table driven.
This week, I've worked on some of the PCI drivers which needed some
modification. As we decided to create a new macro - PCI_MATCH, there was a
change in strategy for conversion.

Firstly as per the earlier strategy I pushed the code to bsdimp fork. Then
from there I began the conversion process to consolidate the PCI drivers to
conform to our new strategy. Most of last week went into changing the probe
routines to use the new device tables that i created. I have also fixed
numerous style issues that came up.

I have already started the conversion process after rebasing to the latest
FreeBSD build. After the work on probe routines has been completed, I
worked on the earlier drivers such as amdsmb, ismt, iir, iwm, ips, ignore
[1].

We need to convert the drivers in a certain way so that kldxref can find it
and record it in linker hints. I am working on PCI drivers so as to make it
easy for kldxref to find them.

I am also learning the internals of the kernel, this will help our goal
ultimately - Automatic module loading. [5]

Please find my updated project homepage here. [6]

Thank you,
Lakhan
[1] https://github.com/bsdimp/freebsd/pull/8
[2] https://reviews.freebsd.org/D15995
[3] https://reviews.freebsd.org/D15996
[4] https://reviews.freebsd.org/D15979
[5]
http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html
[6]
https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables


More information about the soc-status mailing list