equal
deleted
inserted
replaced
16 * fields enclosed by brackets "[]" replaced with your own identifying |
16 * fields enclosed by brackets "[]" replaced with your own identifying |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
|
21 |
21 /* |
22 /* |
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
23 * Use is subject to license terms. |
24 * Use is subject to license terms. |
24 */ |
25 */ |
25 |
26 |
26 #ifndef _SYS_SCSI_ADAPTERS_SCSI_VHCI_H |
27 #ifndef _SYS_SCSI_ADAPTERS_SCSI_VHCI_H |
27 #define _SYS_SCSI_ADAPTERS_SCSI_VHCI_H |
28 #define _SYS_SCSI_ADAPTERS_SCSI_VHCI_H |
28 |
|
29 #pragma ident "%Z%%M% %I% %E% SMI" |
|
30 |
29 |
31 /* |
30 /* |
32 * Multiplexed I/O SCSI vHCI global include |
31 * Multiplexed I/O SCSI vHCI global include |
33 */ |
32 */ |
34 #include <sys/note.h> |
33 #include <sys/note.h> |
618 ((sfo) ? (strcmp((sfo)->sfo_name, SFO_NAME_TPGS) == 0) : 0) |
617 ((sfo) ? (strcmp((sfo)->sfo_name, SFO_NAME_TPGS) == 0) : 0) |
619 |
618 |
620 /* |
619 /* |
621 * Macro to provide plumbing for basic failover module |
620 * Macro to provide plumbing for basic failover module |
622 */ |
621 */ |
623 #define _SCSI_FAILOVER_OP(sfo_name, local_name, ops_name, vers) \ |
622 #define _SCSI_FAILOVER_OP(sfo_name, local_name, ops_name) \ |
624 static struct modlmisc modlmisc = { \ |
623 static struct modlmisc modlmisc = { \ |
625 &mod_miscops, sfo_name " " vers \ |
624 &mod_miscops, sfo_name \ |
626 }; \ |
625 }; \ |
627 static struct modlinkage modlinkage = { \ |
626 static struct modlinkage modlinkage = { \ |
628 MODREV_1, (void *)&modlmisc, NULL \ |
627 MODREV_1, (void *)&modlmisc, NULL \ |
629 }; \ |
628 }; \ |
630 int _init() \ |
629 int _init() \ |
672 local_name##_analyze_sense, \ |
671 local_name##_analyze_sense, \ |
673 local_name##_pathclass_next \ |
672 local_name##_pathclass_next \ |
674 } |
673 } |
675 |
674 |
676 #ifdef lint |
675 #ifdef lint |
677 #define SCSI_FAILOVER_OP(sfo_name, local_name, vers) \ |
676 #define SCSI_FAILOVER_OP(sfo_name, local_name) \ |
678 _SCSI_FAILOVER_OP(sfo_name, local_name, local_name, vers) |
677 _SCSI_FAILOVER_OP(sfo_name, local_name, local_name) |
679 #else /* lint */ |
678 #else /* lint */ |
680 #define SCSI_FAILOVER_OP(sfo_name, local_name, vers) \ |
679 #define SCSI_FAILOVER_OP(sfo_name, local_name) \ |
681 _SCSI_FAILOVER_OP(sfo_name, local_name, scsi_vhci, vers) |
680 _SCSI_FAILOVER_OP(sfo_name, local_name, scsi_vhci) |
682 #endif /* lint */ |
681 #endif /* lint */ |
683 |
682 |
684 /* |
683 /* |
685 * Return values for sfo_device_probe |
684 * Return values for sfo_device_probe |
686 */ |
685 */ |