Add QLogic 2400 (4Gb) firmware.

This commit is contained in:
Matt Jacob 2006-08-26 18:39:18 +00:00
parent 9fe741b895
commit 9b2027cec5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161647
2 changed files with 12242 additions and 1 deletions

12229
sys/dev/ispfw/asm_2400.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$");
#define ISP_2200 1
#define ISP_2300 1
#define ISP_2322 1
#define ISP_2400 1
#ifdef __sparc64__
#define ISP_1000 1
#endif
@ -75,6 +76,9 @@ __FBSDID("$FreeBSD$");
#if defined(ISP_2322)
#include <dev/ispfw/asm_2322.h>
#endif
#if defined(ISP_2400)
#include <dev/ispfw/asm_2400.h>
#endif
#if defined(ISP_1000)
#include <dev/ispfw/asm_1000.h>
#endif
@ -82,7 +86,8 @@ __FBSDID("$FreeBSD$");
#define ISPFW_VERSION 1
#define RMACRO(token) \
if (firmware_register(#token, token##_risc_code, \
token##_risc_code [3] << 1, ISPFW_VERSION, NULL) == NULL) { \
token##_risc_code [3] * sizeof token##_risc_code [3], \
ISPFW_VERSION, NULL) == NULL) { \
printf("unable to register firmware '%s'\n", #token); \
} else { \
printf("registered firmware set <%s>\n", #token); \
@ -127,6 +132,9 @@ do_load_fw(void)
#endif
#if defined(ISP_2322)
RMACRO(isp_2322);
#endif
#if defined(ISP_2400)
RMACRO(isp_2400);
#endif
return (0);
}
@ -156,6 +164,8 @@ do_unload_fw(void)
UMACRO(isp_2300);
#elif defined(ISP_2322)
UMACRO(isp_2322);
#elif defined(ISP_2400)
UMACRO(isp_2400);
#endif
return (0);
}
@ -205,5 +215,7 @@ DECLARE_MODULE(isp_2200, ispfw_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
DECLARE_MODULE(isp_2300, ispfw_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
#elif defined(ISP_2322)
DECLARE_MODULE(isp_2322, ispfw_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
#elif defined(ISP_2400)
DECLARE_MODULE(isp_2400, ispfw_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
#endif
#endif