840 fcp_attach, /* attach and detach are mandatory */
841 fcp_detach,
842 nodev, /* reset */
843 &fcp_cb_ops, /* cb_ops */
844 NULL, /* bus_ops */
845 NULL, /* power */
846 };
847
848
849 char *fcp_version = FCP_NAME_VERSION;
850
851 static struct modldrv modldrv = {
852 &mod_driverops,
853 FCP_NAME_VERSION,
854 &fcp_ops
855 };
856
857
858 static struct modlinkage modlinkage = {
859 MODREV_1,
860 &modldrv,
861 NULL
862 };
863
864
865 static fc_ulp_modinfo_t fcp_modinfo = {
866 &fcp_modinfo, /* ulp_handle */
867 FCTL_ULP_MODREV_4, /* ulp_rev */
868 FC4_SCSI_FCP, /* ulp_type */
869 "fcp", /* ulp_name */
870 FCP_STATEC_MASK, /* ulp_statec_mask */
871 fcp_port_attach, /* ulp_port_attach */
872 fcp_port_detach, /* ulp_port_detach */
873 fcp_port_ioctl, /* ulp_port_ioctl */
874 fcp_els_callback, /* ulp_els_callback */
875 fcp_data_callback, /* ulp_data_callback */
876 fcp_statec_callback /* ulp_statec_callback */
877 };
878
879 #ifdef DEBUG
880 #define FCP_TRACE_DEFAULT (FC_TRACE_LOG_MASK | FCP_LEVEL_1 | \
881 FCP_LEVEL_2 | FCP_LEVEL_3 | \
|
840 fcp_attach, /* attach and detach are mandatory */
841 fcp_detach,
842 nodev, /* reset */
843 &fcp_cb_ops, /* cb_ops */
844 NULL, /* bus_ops */
845 NULL, /* power */
846 };
847
848
849 char *fcp_version = FCP_NAME_VERSION;
850
851 static struct modldrv modldrv = {
852 &mod_driverops,
853 FCP_NAME_VERSION,
854 &fcp_ops
855 };
856
857
858 static struct modlinkage modlinkage = {
859 MODREV_1,
860 { &modldrv, NULL }
861 };
862
863
864 static fc_ulp_modinfo_t fcp_modinfo = {
865 &fcp_modinfo, /* ulp_handle */
866 FCTL_ULP_MODREV_4, /* ulp_rev */
867 FC4_SCSI_FCP, /* ulp_type */
868 "fcp", /* ulp_name */
869 FCP_STATEC_MASK, /* ulp_statec_mask */
870 fcp_port_attach, /* ulp_port_attach */
871 fcp_port_detach, /* ulp_port_detach */
872 fcp_port_ioctl, /* ulp_port_ioctl */
873 fcp_els_callback, /* ulp_els_callback */
874 fcp_data_callback, /* ulp_data_callback */
875 fcp_statec_callback /* ulp_statec_callback */
876 };
877
878 #ifdef DEBUG
879 #define FCP_TRACE_DEFAULT (FC_TRACE_LOG_MASK | FCP_LEVEL_1 | \
880 FCP_LEVEL_2 | FCP_LEVEL_3 | \
|