Subject: Re: console device selection
To: Garrett D'Amore <>
From: Simon Burge <>
List: tech-kern
Date: 09/02/2006 16:09:54
Garrett D'Amore wrote:

> somewhere in common kernel code, we can then have:
> #if NRADEON > 0
>     radeonfb_register();
> #endif

If you do this, use link sets.  We don't want to have to update common
code for new device drivers, and spread any more #ifdef mess around than
we need to.

> We also need to assume that machdep code might register machdep console
> devices, e.g. custom serial ports, etc.  We don't want to store those
> all in the common.c, but machdep code can call the cons_register()
> routine for those before calling master consinit.
> The above is merely a strawman, intended to spark discussion.  I really
> don't want to have #if NRADEON, etc. in every port that might have a PCI
> bus, for example.

Link sets can address this too.