staging: unisys: Move channel.h to include. Controvlm to visorbus
authorDavid Kershner <david.kershner@unisys.com>
Wed, 13 May 2015 17:22:04 +0000 (13:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:28:54 +0000 (13:28 -0700)
Channel.h is used by all channels, it needs to be in include.
Controlvm Channel is only used by visorbus, it needs to just be there.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/channel.h [moved from drivers/staging/unisys/common-spar/include/channels/channel.h with 94% similarity]
drivers/staging/unisys/include/channel_guid.h [moved from drivers/staging/unisys/common-spar/include/channels/channel_guid.h with 100% similarity]
drivers/staging/unisys/visorbus/controlvmchannel.h [moved from drivers/staging/unisys/common-spar/include/channels/controlvmchannel.h with 100% similarity]

@@ -114,41 +114,6 @@ ULTRA_CHANNELCLI_STRING(u32 v)
          (((o) == CHANNELCLI_BUSY) && ((n) == CHANNELCLI_OWNED)) || (0)) \
         ? (1) : (0))
 
-#define SPAR_CHANNEL_CLIENT_CHK_TRANSITION(old, new, id, log,  \
-                                           file, line)                 \
-       do {                                                            \
-               if (!ULTRA_VALID_CHANNELCLI_TRANSITION(old, new))       \
-                       pr_info("%s Channel StateTransition INVALID! (%s) %s(%d)-->%s(%d) @%s:%d\n", \
-                               id, "CliState<x>",              \
-                               ULTRA_CHANNELCLI_STRING(old),   \
-                               old,                            \
-                               ULTRA_CHANNELCLI_STRING(new),   \
-                               new,                            \
-                               pathname_last_n_nodes((u8 *)file, 4), \
-                               line);                          \
-       } while (0)
-
-#define SPAR_CHANNEL_CLIENT_TRANSITION(ch, id, newstate, log)          \
-       do {                                                            \
-               SPAR_CHANNEL_CLIENT_CHK_TRANSITION(                     \
-                       readl(&(((struct channel_header __iomem *)\
-                                (ch))->cli_state_os)),         \
-                       newstate, id, log, __FILE__, __LINE__);         \
-                       pr_info("%s Channel StateTransition (%s) %s(%d)-->%s(%d) @%s:%d\n", \
-                               id, "CliStateOS",                       \
-                               ULTRA_CHANNELCLI_STRING( \
-                                     readl(&((struct channel_header __iomem *)\
-                                             (ch))->cli_state_os)),    \
-                               readl(&((struct channel_header __iomem *)\
-                                     (ch))->cli_state_os),             \
-                               ULTRA_CHANNELCLI_STRING(newstate),      \
-                               newstate,                               \
-                               pathname_last_n_nodes(__FILE__, 4), __LINE__); \
-               writel(newstate, &((struct channel_header __iomem *)\
-                                  (ch))->cli_state_os);                \
-               mb(); /* required for channel synch */                  \
-       } while (0)
-
 /* Values for ULTRA_CHANNEL_PROTOCOL.CliErrorBoot: */
 /* throttling invalid boot channel statetransition error due to client
  * disabled */