tech-kern archive

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

Re: call for testing: completing the device/softc split

On Oct 10, 2012, at 10:55 AM, Izumi Tsutsui wrote:

> I wrote:
>> ite chnages seem to cause silent hang at early bootstrap at least on XM6i,
>> so I'll check it on real X68030 with serial console later.
>> (IIRC atari's ite also had annoying quirks around console probe code..)
> I've also fixed and committed x68k ite.
> It has a static struct softc for early console,
> so we should also prepare a static struct device
> after it's split out from softc.  Oh well.

No.  Just use a softc size of 0 and set self->dv_private to the static softc in 
the attach and sc->sc_dev to self as well

(we probably should have a device_set_private(device_t, void *) function)

> (IIRC there were several such devices that required extra struct device
> and softc, like sys/dev/sbus/esp_sbus.c)

Home | Main Index | Thread Index | Old Index