Date: Mon, 14 Mar 2011 15:42:33 +0100 From: Henrik Brix Andersen <brix@freebsd.org> To: Philip Schulz <philip.s.schulz@googlemail.com> Cc: freebsd-drivers@freebsd.org Subject: Re: Allocating resources to isab children Message-ID: <4A3AEDA0-9AAA-4040-AC02-6416543A1B6D@freebsd.org> In-Reply-To: <AANLkTi=-NBmwh2nfWreJJtCNVHSXrcKSvh_Mb7jVWf2H@mail.gmail.com> References: <3550EA55-ADDE-40AC-9C22-1FAC441A0BC8@freebsd.org> <0A707516-C7D1-4441-B17B-1273B6C256B0@FreeBSD.org> <A5AEBC94-8E50-49E0-A72E-9B9E8A73E7F6@FreeBSD.org> <AANLkTin627pE_%2B6o3LvRhCzPYpw%2BTdWEEsw%2BkjA5PT-J@mail.gmail.com> <D1A07777-B5CF-4E24-B0A8-57B57B66D9EF@freebsd.org> <AANLkTi=-NBmwh2nfWreJJtCNVHSXrcKSvh_Mb7jVWf2H@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-7--315993280 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, On Mar 14, 2011, at 00:15, Philip Schulz wrote: > I made my glxiic driver a child of isa(4) because I didn't know where > else to put it. After all, the DIVIL contains a bunch of devices on > legacy I/O addresses such as e.g. UARTs which are already managed by > ISA device drivers. Also, I couldn't get glxiic to be a direct child > of isab unless I added a device_add_child() to isab_attach() - > something I didn't want to do because it would be non-generic. > Finally, glxiic can't be a PCI device driver because on my system, the > entire DIVIL announces itself as one single PCI function (15.0, seems > to be the same on your system). If glxiic attached to that function, > isab wouldn't be able to attach anymore and I'd lose all of the other > ISA devices. Of course, I could have added the ISA bridge logic to > glxiic as well, but then I'd have glxiic+isab merged in one driver. Right. I use DEVICE_IDENTIFY(9) to check the PCI device ID of the isab = device and add a glxiic(4) child upon match. This way, glxiic(4) becomes a child of isab. Regards, Brix --=20 Henrik Brix Andersen <brix@FreeBSD.org> --Apple-Mail-7--315993280 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAk1+KVkACgkQv+Q4flTiePjWgQCaAw20bwDifOBmadAzmvv9Kjg6 uDcAn2hLt7AQkBBLeUxQxUbeE7OZ+QVY =Gk6m -----END PGP SIGNATURE----- --Apple-Mail-7--315993280--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A3AEDA0-9AAA-4040-AC02-6416543A1B6D>