tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sys/dev/isa/fd.c FDUNIT/FDTYPE
On Tue, May 03, 2011 at 08:06:56PM +0200, Edgar Fuß wrote:
> sys/dev/isa/fd.c defines FDUNIT and FDTYPE as DIV/MOD 8.
> etc/MAKEDEV uses makedisk_p16 for fd*.
>
> Who's right?
> As I'm just adding a ninth (ten-sector) fd_type, I prefer the 16 version.
FDUNIT and FDTYPE both derive from minor(dev).
MAKEDEV creates 16 minors, so you get unit 0 and 1, and 8 types each.
What is FDUNIT good for?
Martin
Home |
Main Index |
Thread Index |
Old Index