7516 };
7517 #ifdef UNIQUE_FW_NAME
7518 unsigned short qlc_fw2300cs2_length01 = 0xe8e8;
7519 #else
7520 unsigned short risc_code_length01 = 0xe8e8;
7521 #endif
7522
7523 /*
7524 * Common Solaris kernel module linkage code added at the end of
7525 * each QLogic ql_fw_*.c to form the solaris qlc_fw_*.c file.
7526 */
7527
7528 #include <sys/modctl.h>
7529
7530 static struct modlmisc modlmisc = {
7531 &mod_miscops, "SunFC Qlogic FCA-FW " FW_VERSION_STRING
7532 };
7533
7534 static struct modlinkage modlinkage = {
7535 MODREV_1,
7536 (void *)&modlmisc
7537 };
7538
7539 int
7540 _init()
7541 {
7542 return (mod_install(&modlinkage));
7543 }
7544
7545 int
7546 _fini()
7547 {
7548 return (mod_remove(&modlinkage));
7549 }
7550
7551 int
7552 _info(struct modinfo *mip)
7553 {
7554 return (mod_info(&modlinkage, mip));
7555 }
|
7516 };
7517 #ifdef UNIQUE_FW_NAME
7518 unsigned short qlc_fw2300cs2_length01 = 0xe8e8;
7519 #else
7520 unsigned short risc_code_length01 = 0xe8e8;
7521 #endif
7522
7523 /*
7524 * Common Solaris kernel module linkage code added at the end of
7525 * each QLogic ql_fw_*.c to form the solaris qlc_fw_*.c file.
7526 */
7527
7528 #include <sys/modctl.h>
7529
7530 static struct modlmisc modlmisc = {
7531 &mod_miscops, "SunFC Qlogic FCA-FW " FW_VERSION_STRING
7532 };
7533
7534 static struct modlinkage modlinkage = {
7535 MODREV_1,
7536 { (void *)&modlmisc, NULL }
7537 };
7538
7539 int
7540 _init()
7541 {
7542 return (mod_install(&modlinkage));
7543 }
7544
7545 int
7546 _fini()
7547 {
7548 return (mod_remove(&modlinkage));
7549 }
7550
7551 int
7552 _info(struct modinfo *mip)
7553 {
7554 return (mod_info(&modlinkage, mip));
7555 }
|