Subject: micro-code and PCI
To: None <tech-kern@netbsd.org>
From: Steven Grunza <steven_grunza@ieee.org>
List: tech-kern
Date: 07/27/2000 11:17:45
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm writing a driver for a PCI board that requires microcode to be
downloaded to it.  Has any kind of standard been created for doing
this?  Mainly, where should the microcode be kept (/sys/dev/pci,
/sys/microcode, ???).

Also, I need to have the board DMA the micro-code from host memory. 
Should the driver be given the name of the micro-code by the userland
program or should the userland program open the file and pass the
driver a pointer to the memory?  If the userland program passes a
pointer to memory, it would seem that the driver will need to
allocate wired memory, copy the data from userland, and then start
the DMA.

If any one knows of a board (not necessarily PCI) that uses microcode
downloaded from a file on the host's disk drive, let me know and I'll
go read the code....

Thanks..

Steven G.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOYBSmL5JUwXGNWihEQILoQCcDj6jpqdLSG2ta+8OOxhlnA6ErR4An3cf
bfJT/F8GnruDPF3LGO4dj6cX
=smuZ
-----END PGP SIGNATURE-----



----------------------------------------------------------------------
"Luke, you're going to find that many | Steven Grunza
of the truths we cling to depend      | voice:  (856) 787 - 2759 
greatly on our own point of view."    | fax:    (856) 866 - 2033
 - Obi Wan Kenobi, Return of the Jedi | e-mail: steven_grunza@ieee.org
----------------------------------------------------------------------