Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci

On Sep 5, 2009, at 2:44 PM, David Young wrote:

I think that we would add callbacks to many, many softc's, like we did
with the enable/disable routines. Lots of code would be duplicated. I am gradually replacing those routines with self-suspension. PMF should
handle bus-independent/bus-dependent suspend/resume, too.

Let the programmer of drivers add a bus-dependent PMF hook in the bus
attachment routine, and a bus-independent PMF hook in the generic attach
routine.  Something like this, for example,

Yah, we could just define a protocol for PMF to call, and bus-specific subclasses can provide their own methods as necessary.

Oh, nevermind.

-- thorpej

Home | Main Index | Thread Index | Old Index