Date: Wed, 26 May 1999 12:37:02 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Roger Hardiman <roger@cs.strath.ac.uk> Cc: Nick Hibma <nick.hibma@jrc.it>, Roger Hardiman <roger@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf options Message-ID: <199905261637.MAA14742@khavrinen.lcs.mit.edu> In-Reply-To: <374C0F14.59E2@cs.strath.ac.uk> References: <Pine.GSO.3.95q.990526164046.11052l-100000@elect8> <374C0F14.59E2@cs.strath.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 26 May 1999 16:11:16 +0100, Roger Hardiman <roger@cs.strath.ac.uk> said: > While on the subject, I want the bt848 driver to read the > PCI Host chipset ID and select the 'compatibility' mode > automatically. (Just like the Windows and Linux drivers do) It looks like: { device_t myparent, hisparent; u_int32_t data; myparent = device_get_parent(me); hisparent = device_get_parent(myparent); data = PCI_READ_CONFIG(hisparent, myparent, PCIR_DEVVENDOR, 4); switch (data) { case 0x12345678: something_special = 1; break; /* other cases */ } } ...is all you need for -current. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905261637.MAA14742>