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



IT> The topic is how to add 8th type and currently fd.c uses hardcoded '8'.
JN> Actually, the topic is asking what the purpose of FDUNIT and
JN> FDTYPE is.  That question has been answered.
As I started this discussion in the first place, I should probably clarify what 
my intentions on asking this question were.

1. I observed that, at least on amd64, MAKEDEV adds 16 to the minor for fd1 
while fd.c treats the minor mod/div 8. So (either I was wrong, which doesn't 
semm to be the case or) MAKEDEV or fd.c had to be fixed in order for a second 
floppy (fd1, unit 1) to work.
2. As I originally observed that discrepancy in the course of adding a ninth 
floppy type, I expressed that my personal choice would have been to adjust the 
kernel to MAKEDEV (e.g. div/mod 16) and not the other way round (e.g. div/mod 
8).

Since I seem to be about the only person using floppies in NetBSD land (and my 
current intent is only to have the content of some four shoeboxes full of 
(mostly ten-sector) Atari floppies more readily available), the question is 
probably irrelevant. I have modified my local copy of fd.c to have ten sectors 
at type 8; so I modified it to also treat the minor div/mod 16. I could also 
hijack one of the other six types I don't need and stay div/mod 8.


Home | Main Index | Thread Index | Old Index