Subject: various musings on PCI stuff
To: None <port-i386@NetBSD.ORG>
From: Luke Mewburn <lukem@telstra.com.au>
List: port-i386
Date: 06/15/1995 23:53:26
Whilst looking through the PCI stuff (to determine what the
'unconfigured devices' were), I noticed that except for the NCR driver
and the de enet driver, the stuff was a bit lacking.

At a hunch I went through the FreeBSD kernel src and was able to
determine that the 'unconfigured' stuff was the Intel PCI-ISA bridge
(4848086) and cache DRAM controller (4838086). The other device
'(88d05333 class 00010000)' is most likely my Hercules Graphite
Terminator 64 card.

It also appears that the FreeBSD code does some in-depth probing of
the cache DRAM controller to print out various info that, whilst not
important, looks interesting to say the least, and would mean more
pretty stuff on boot :)

If one was thinking of either merging the FreeBSD code into
/sys/dev/pci, what would be the 'cleanest' way to do it?
(listed in order of quickest/dirtiest to slowest/cleanest):
	- plonk the code into pcisupport.c (or whatever) and just
	directly code the probes into the pciattach stuff, totally
	bypassing the 'clean' method used by ncr.c & if_de.c?
	- implement the devices as separate devices to probe (with
	their own files)? This seems orthagonal, and with correct
	dependancies in files.pci of each file to pci.c (such as
	the 48[34]8086 support)
	- wait for mycroft to get some free time (Ha! I bet it's
	as mythical for him as it is for me :) so it gets done in
	the One True NetBSD way (clean, KNF, etc)?

Also, whilst I don't have one, Matt Thomas' DEFPA (DEC PCI FDDI driver)
could be useful, especially since from reading the comments the
code supports the DEFEI (eisa), and will soon support DEFTA (turbo
channel). This last one is probably more relevant to port-pmax (we
have a few 5000/260's with DEFTA's - if only we could run NetBSD
instead of ULTRIX on them ;) This is probably another of those 'when
we get around to it' things.

PS: sorry about the 'FreeBSD this' and 'FreeBSD that' tone. It's just
that they do have slightly more PCI support for the i386 at this time.

-- 
Luke Mewburn <lukem@telstra.com.au>

"Nobody dies on the Discworld, they just become dimensionally disadvantaged."
               -- Terry Pratchett in alt.fan.pratchett