27 #define DRIVER_NAME "emlxs"
28 #define EMLXS_FW_TABLE_DEF
29
30 #include <sys/types.h>
31 #include <sys/modctl.h>
32 #include <emlxs_version.h>
33 #include <emlxs_fw.h>
34
35 emlxs_firmware_t emlxs_fw_mod_table[] = EMLXS_FW_TABLE;
36 int emlxs_fw_mod_count = sizeof (emlxs_fw_mod_table) /
37 sizeof (emlxs_firmware_t);
38 char emlxs_fw_mod_name[] = EMLXS_FW_NAME;
39
40 static struct modlmisc emlxs_modlmisc = {
41 &mod_miscops,
42 emlxs_fw_mod_name
43 };
44
45 static struct modlinkage emlxs_modlinkage = {
46 MODREV_1,
47 (void *)&emlxs_modlmisc,
48 NULL
49 };
50
51 int
52 _init(void)
53 {
54 int rval;
55
56 rval = mod_install(&emlxs_modlinkage);
57
58 return (rval);
59
60 } /* _init() */
61
62 int
63 _fini()
64 {
65 int rval;
66
67 rval = mod_remove(&emlxs_modlinkage);
68
|
27 #define DRIVER_NAME "emlxs"
28 #define EMLXS_FW_TABLE_DEF
29
30 #include <sys/types.h>
31 #include <sys/modctl.h>
32 #include <emlxs_version.h>
33 #include <emlxs_fw.h>
34
35 emlxs_firmware_t emlxs_fw_mod_table[] = EMLXS_FW_TABLE;
36 int emlxs_fw_mod_count = sizeof (emlxs_fw_mod_table) /
37 sizeof (emlxs_firmware_t);
38 char emlxs_fw_mod_name[] = EMLXS_FW_NAME;
39
40 static struct modlmisc emlxs_modlmisc = {
41 &mod_miscops,
42 emlxs_fw_mod_name
43 };
44
45 static struct modlinkage emlxs_modlinkage = {
46 MODREV_1,
47 { (void *)&emlxs_modlmisc, NULL }
48 };
49
50 int
51 _init(void)
52 {
53 int rval;
54
55 rval = mod_install(&emlxs_modlinkage);
56
57 return (rval);
58
59 } /* _init() */
60
61 int
62 _fini()
63 {
64 int rval;
65
66 rval = mod_remove(&emlxs_modlinkage);
67
|