Date: Mon, 3 Jul 2000 19:20:31 -0700 (PDT) From: Matt Jacob <mjacob@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci isp_pci.c Message-ID: <200007040220.TAA88050@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
mjacob 2000/07/03 19:20:31 PDT
Modified files: (Branch: RELENG_4)
sys/pci isp_pci.c
Log:
MFC (1.47): Change startup locking. Use new isp_handle_index function
for indexing off of handles to get dma maps.
MFC (1.46): Clean up firmware load issues and remove darn near all config
options. Force alphas to prefer mem mapping as the default.
Basically, we have a pointer to a function which we can call which will
return us a pointer to firmware for the card we have. We call this function
(if it's non-NULL) with the address of our mdvec f/w pointer.
The way this works is that if ispfw (as a module or a static) is loaded,
it initializes the pointer in isp_pci, so we can call into to it to fetch
a pointer to a f/w set.
If ispfw is MOD_UNLOADed, it's retained a pointer to our mdvec f/w pointers,
which then get zeroed out so we don't have any references to data that's
now gone from kernel memory. Removing the f/w saves ~360KBytes.
Alas, there is no autounload mechanism that works for is here.
Revision Changes Path
1.45.2.1 +58 -115 src/sys/pci/isp_pci.c
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?200007040220.TAA88050>
