summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_freebsd.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-07-09 17:50:20 +0000
committermjacob <mjacob@FreeBSD.org>2006-07-09 17:50:20 +0000
commita6dea567ad2965b9db76644f687e9f9e987be2ff (patch)
tree02927e03d3704d09891594870139269cd8f3c287 /sys/dev/isp/isp_freebsd.h
parent685013634879c9cf1799d85237fd981587e51745 (diff)
downloadFreeBSD-src-a6dea567ad2965b9db76644f687e9f9e987be2ff.zip
FreeBSD-src-a6dea567ad2965b9db76644f687e9f9e987be2ff.tar.gz
Convert isp(4) and ispfw(4) to use firmware(9) to manage firmware
loading for the QLogic cards. Because isp(4) exists before the root is mounted, it's not really possible for us to use the kernel's linker to load modules directly from disk- that's really too bad. However, the this is still a net win in in that the firmware has been split up on a per chip (and in some cases, functionality) basis, so the amount of stuff loaded *can* be substantially less than the 1.5MB of firmware images that ispfw now manages. That is, each specific f/w set is now also built as a module. For example, QLogic 2322 f/w is built as isp_2322.ko and Initiator/Target 1080 firmware is built as isp_1080_it.ko. For compatibility purposes (i.e., to perturb folks the least), we also still build all of the firmware as one ispfw.ko module. This allows us to let 'ispfw_LOAD' keep on working in existing loader.conf files. If you now want to strip this down to just the firmware for your h/w, you can then change loader.conf to load the f/w you specifically want. We also still allow for ispfw to be statically built (e.g., for PAE and sparc64). Future changes will look at f/w unloading and also role switching that then uses the kernel linker to load different ips f/w sets. MFC after: 2 months
Diffstat (limited to 'sys/dev/isp/isp_freebsd.h')
-rw-r--r--sys/dev/isp/isp_freebsd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index f0fd37d..02c0e96 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -97,8 +97,6 @@
#endif
#endif
-typedef void ispfwfunc(int, int, int, uint16_t **);
-
#ifdef ISP_TARGET_MODE
#define ISP_TARGET_FUNCTIONS 1
#define ATPDPSIZE 256
@@ -155,6 +153,7 @@ struct isposinfo {
intsok : 1,
simqfrozen : 3;
#if __FreeBSD_version >= 500000
+ struct firmware * fw;
struct mtx lock;
struct cv kthread_cv;
#endif
OpenPOWER on IntegriCloud