BMAC Ethernet Driver

Rafal Jaworowski raj at semihalf.com
Wed Apr 30 17:36:49 UTC 2008


Peter Grehan wrote:
>> I'm trying to figure out where to put the files. There are a lot of
>> sparc64 (and i386) specific drivers in /sys/dev, but SoC peripherals
>> tend to end up in an arch-specific location. For powermac hardware, we
>> seem to have a mix (UART driver in /sys/dev, built-in ATA in
>> powermac). Unless someone tells me otherwise, I will put the if_bm*
>> stuff in powermac.
> 
>  I was mistaken in putting the ATA stuff (and others) into powermac/. It
> makes it a tad more difficult to build modules, manpages etc. There's
> plenty of precedent for single-arch drivers going into dev/. It also
> makes it easier for folk to find things when they are doing changes that
> sweep the tree, such as modifying a field in the ifnet struct.
> 
>  I vote for it to go into dev/.

Yes, I also think we should keep the drivers under sys/dev/, unless really
required otherwise. Even for the SoCs it's common to see their integrated
peripherals being shared between different models or even families, which
could be based on totally different CPU cores (or even architecture).

On a more general note: the sys/dev/ has long been a simple flat container
with everything in it, which is slowly making things more difficult with all
new architectures and peripherals coming into the tree. Has anyone
contemplated some reorganization of device drivers directory in a more
hierarchical fashion, so we could better manage similar classes of devices
from various vendors, have a bit more uniform naming scheme and so on?

Rafal


More information about the freebsd-ppc mailing list