vserver 1.9.5.x5
[linux-2.6.git] / drivers / scsi / megaraid / mega_common.h
index e151175..18969a4 100644 (file)
@@ -221,6 +221,9 @@ typedef struct {
 #define MRAID_IS_LOGICAL(adp, scp)     \
        (SCP2CHANNEL(scp) == (adp)->max_channel) ? 1 : 0
 
+#define MRAID_IS_LOGICAL_SDEV(adp, sdev)       \
+       (sdev->channel == (adp)->max_channel) ? 1 : 0
+
 #define MRAID_GET_DEVICE_MAP(adp, scp, p_chan, target, islogical)      \
        /*                                                              \
         * Is the request coming for the virtual channel                \