freebsd-nq/sys
Bill Paul 0355003f26 Un-do the changes to the DRIVER_MODULE() declarations in these drivers.
This whole idea isn't going to work until somebody makes the bus/kld
code smarter. The idea here is to change the module's internal name
from "foo" to "if_foo" so that ifconfig can tell a network driver from
a non-network one. However doing this doesn't work correctly no matter
how you slice it. For everything to work, you have to change the name
in both the driver_t struct and the DRIVER_MODULE() declaration. The
problems are:

- If you change the name in both places, then the kernel thinks that
  the device's name is now "if_foo", so you get things like:

if_foo0: <FOO ethernet> irq foo at device foo on pcifoo
if_foo0: Ethernet address: foo:foo:foo:foo:foo:foo

  This is bogus. Now the device name doesn't agree with the logical
  interface name. There's no reason for this, and it violates the
  principle of least astonishment.

- If you leave the name in the driver_t struct as "foo" and only
  change the names in the DRIVER_MODULE() declaration to "if_foo" then
  attaching drivers to child devices doesn't work because the names don't
  agree. This breaks miibus: drivers that need to have miibuses and PHY
  drivers attached never get them.

In other words: damned if you do, damned if you don't.

This needs to be thought through some more. Since the drivers that
use miibus are broken, I have to change these all back in order to
make them work again. Yes this will stop ifconfig from being able
to demand load driver modules. On the whole, I'd rather have that
than having the drivers not work at all.
1999-09-20 19:06:45 +00:00
..
alpha This file was never used and appears to be a leftover from the NetBSD 1999-09-20 09:46:19 +00:00
amd64 Convert the VIA Rhine driver to miibus. 1999-09-19 22:03:31 +00:00
boot netboot removed until somebody fixes it so it compiles 1999-09-09 01:28:26 +00:00
cam Remove unneeded disk-related includes. 1999-09-12 08:23:21 +00:00
coda Seperate the export check in VFS_FHTOVP, exports are now checked via 1999-09-11 00:46:08 +00:00
compat This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
compile
conf On PIIX4 based SMP systems use the PMTMR register for timecounting. 1999-09-20 07:52:39 +00:00
contrib Use devstat_end_transaction_buf() rather than Use devstat_end_transaction() 1999-09-18 21:30:27 +00:00
ddb $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
dev Un-do the changes to the DRIVER_MODULE() declarations in these drivers. 1999-09-20 19:06:45 +00:00
fs Add vfs.enable_userblk_io sysctl to control whether user reads and writes 1999-09-17 06:10:27 +00:00
geom Use devstat_end_transaction_buf() rather than Use devstat_end_transaction() 1999-09-18 21:30:27 +00:00
gnu Seperate the export check in VFS_FHTOVP, exports are now checked via 1999-09-11 00:46:08 +00:00
i4b Finish making LINT compile. Disable references to pnp in files that 1999-09-03 20:38:47 +00:00
i386 Trying to set BAD144 handling on a CD is sufficiently "Dont Do That 1999-09-20 17:06:29 +00:00
isa Two more devstat_end_transaction() -> devstat_end_transaction_buf(). 1999-09-19 12:43:34 +00:00
isofs/cd9660 Seperate the export check in VFS_FHTOVP, exports are now checked via 1999-09-11 00:46:08 +00:00
kern Add a DSO_BAD144 flag which indicates that the driver actually understand 1999-09-20 17:04:39 +00:00
libkern $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
miscfs Add vfs.enable_userblk_io sysctl to control whether user reads and writes 1999-09-17 06:10:27 +00:00
modules Change the name of the installed KLM to contain a leading "if_". 1999-09-20 06:11:48 +00:00
msdosfs Seperate the export check in VFS_FHTOVP, exports are now checked via 1999-09-11 00:46:08 +00:00
net Don't call if_up() here, just set IFF_UP. 1999-09-14 01:17:30 +00:00
netatalk Change suser_xxx() to suser() where it applies. 1999-04-27 12:21:16 +00:00
netatm Fixed printf format errors (don't assume that ntohl() returns u_long; 1999-08-29 10:28:10 +00:00
netinet Change so_cred's type to a ucred, not a pcred. THis makes more sense, actually. 1999-09-19 02:17:02 +00:00
netipx Get rid of the old XNS checksum code and implement it the IPX way. 1999-08-28 18:21:55 +00:00
netkey Fix a printf(3) formatter to match its variable. 1999-08-17 22:11:02 +00:00
netnatm Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
netns $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nfs Asynchronized client-side nfs_commit. NFS commit operations were 1999-09-17 05:57:57 +00:00
nfsclient Asynchronized client-side nfs_commit. NFS commit operations were 1999-09-17 05:57:57 +00:00
nfsserver Asynchronized client-side nfs_commit. NFS commit operations were 1999-09-17 05:57:57 +00:00
ntfs Seperate the export check in VFS_FHTOVP, exports are now checked via 1999-09-11 00:46:08 +00:00
pc98 Add a DSO_BAD144 flag which indicates that the driver actually understand 1999-09-20 17:04:39 +00:00
pccard $Id$ -> $FreeBSD$ 1999-09-06 11:23:05 +00:00
pci Un-do the changes to the DRIVER_MODULE() declarations in these drivers. 1999-09-20 19:06:45 +00:00
posix4 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
powerpc $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
rpc $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
svr4 This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
sys Add a DSO_BAD144 flag which indicates that the driver actually understand 1999-09-20 17:04:39 +00:00
tools $Id$ -> $FreeBSD$ (some mangled and/or hidden ones) 1999-08-28 02:21:15 +00:00
ufs Removed diskerr()'s unused d_name arg and updated callers. This fixes 1999-09-13 12:59:41 +00:00
vm Remove inappropriate VOP_FSYNC from vm_object_page_clean(). The fsync 1999-09-17 05:48:36 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00