You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

181 lines
7.5 KiB

/* Generated by ./xlat/gen.sh from ./xlat/scsi_sg_commands.in; do not edit. */
#include "gcc_compat.h"
#include "static_assert.h"
#if defined(SG_SET_TIMEOUT) || (defined(HAVE_DECL_SG_SET_TIMEOUT) && HAVE_DECL_SG_SET_TIMEOUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_TIMEOUT) == (0x2201), "SG_SET_TIMEOUT != 0x2201");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_TIMEOUT 0x2201
#endif
#if defined(SG_GET_TIMEOUT) || (defined(HAVE_DECL_SG_GET_TIMEOUT) && HAVE_DECL_SG_GET_TIMEOUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_TIMEOUT) == (0x2202), "SG_GET_TIMEOUT != 0x2202");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_TIMEOUT 0x2202
#endif
#if defined(SG_EMULATED_HOST) || (defined(HAVE_DECL_SG_EMULATED_HOST) && HAVE_DECL_SG_EMULATED_HOST)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_EMULATED_HOST) == (0x2203), "SG_EMULATED_HOST != 0x2203");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_EMULATED_HOST 0x2203
#endif
#if defined(SG_SET_TRANSFORM) || (defined(HAVE_DECL_SG_SET_TRANSFORM) && HAVE_DECL_SG_SET_TRANSFORM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_TRANSFORM) == (0x2204), "SG_SET_TRANSFORM != 0x2204");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_TRANSFORM 0x2204
#endif
#if defined(SG_GET_TRANSFORM) || (defined(HAVE_DECL_SG_GET_TRANSFORM) && HAVE_DECL_SG_GET_TRANSFORM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_TRANSFORM) == (0x2205), "SG_GET_TRANSFORM != 0x2205");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_TRANSFORM 0x2205
#endif
#if defined(SG_GET_COMMAND_Q) || (defined(HAVE_DECL_SG_GET_COMMAND_Q) && HAVE_DECL_SG_GET_COMMAND_Q)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_COMMAND_Q) == (0x2270), "SG_GET_COMMAND_Q != 0x2270");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_COMMAND_Q 0x2270
#endif
#if defined(SG_SET_COMMAND_Q) || (defined(HAVE_DECL_SG_SET_COMMAND_Q) && HAVE_DECL_SG_SET_COMMAND_Q)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_COMMAND_Q) == (0x2271), "SG_SET_COMMAND_Q != 0x2271");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_COMMAND_Q 0x2271
#endif
#if defined(SG_GET_RESERVED_SIZE) || (defined(HAVE_DECL_SG_GET_RESERVED_SIZE) && HAVE_DECL_SG_GET_RESERVED_SIZE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_RESERVED_SIZE) == (0x2272), "SG_GET_RESERVED_SIZE != 0x2272");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_RESERVED_SIZE 0x2272
#endif
#if defined(SG_SET_RESERVED_SIZE) || (defined(HAVE_DECL_SG_SET_RESERVED_SIZE) && HAVE_DECL_SG_SET_RESERVED_SIZE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_RESERVED_SIZE) == (0x2275), "SG_SET_RESERVED_SIZE != 0x2275");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_RESERVED_SIZE 0x2275
#endif
#if defined(SG_GET_SCSI_ID) || (defined(HAVE_DECL_SG_GET_SCSI_ID) && HAVE_DECL_SG_GET_SCSI_ID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_SCSI_ID) == (0x2276), "SG_GET_SCSI_ID != 0x2276");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_SCSI_ID 0x2276
#endif
#if defined(SG_SET_FORCE_LOW_DMA) || (defined(HAVE_DECL_SG_SET_FORCE_LOW_DMA) && HAVE_DECL_SG_SET_FORCE_LOW_DMA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_FORCE_LOW_DMA) == (0x2279), "SG_SET_FORCE_LOW_DMA != 0x2279");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_FORCE_LOW_DMA 0x2279
#endif
#if defined(SG_GET_LOW_DMA) || (defined(HAVE_DECL_SG_GET_LOW_DMA) && HAVE_DECL_SG_GET_LOW_DMA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_LOW_DMA) == (0x227a), "SG_GET_LOW_DMA != 0x227a");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_LOW_DMA 0x227a
#endif
#if defined(SG_SET_FORCE_PACK_ID) || (defined(HAVE_DECL_SG_SET_FORCE_PACK_ID) && HAVE_DECL_SG_SET_FORCE_PACK_ID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_FORCE_PACK_ID) == (0x227b), "SG_SET_FORCE_PACK_ID != 0x227b");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_FORCE_PACK_ID 0x227b
#endif
#if defined(SG_GET_PACK_ID) || (defined(HAVE_DECL_SG_GET_PACK_ID) && HAVE_DECL_SG_GET_PACK_ID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_PACK_ID) == (0x227c), "SG_GET_PACK_ID != 0x227c");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_PACK_ID 0x227c
#endif
#if defined(SG_GET_NUM_WAITING) || (defined(HAVE_DECL_SG_GET_NUM_WAITING) && HAVE_DECL_SG_GET_NUM_WAITING)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_NUM_WAITING) == (0x227d), "SG_GET_NUM_WAITING != 0x227d");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_NUM_WAITING 0x227d
#endif
#if defined(SG_SET_DEBUG) || (defined(HAVE_DECL_SG_SET_DEBUG) && HAVE_DECL_SG_SET_DEBUG)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_DEBUG) == (0x227e), "SG_SET_DEBUG != 0x227e");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_DEBUG 0x227e
#endif
#if defined(SG_GET_SG_TABLESIZE) || (defined(HAVE_DECL_SG_GET_SG_TABLESIZE) && HAVE_DECL_SG_GET_SG_TABLESIZE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_SG_TABLESIZE) == (0x227F), "SG_GET_SG_TABLESIZE != 0x227F");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_SG_TABLESIZE 0x227F
#endif
#if defined(SG_GET_VERSION_NUM) || (defined(HAVE_DECL_SG_GET_VERSION_NUM) && HAVE_DECL_SG_GET_VERSION_NUM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_VERSION_NUM) == (0x2282), "SG_GET_VERSION_NUM != 0x2282");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_VERSION_NUM 0x2282
#endif
#if defined(SG_NEXT_CMD_LEN) || (defined(HAVE_DECL_SG_NEXT_CMD_LEN) && HAVE_DECL_SG_NEXT_CMD_LEN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_NEXT_CMD_LEN) == (0x2283), "SG_NEXT_CMD_LEN != 0x2283");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_NEXT_CMD_LEN 0x2283
#endif
#if defined(SG_SCSI_RESET) || (defined(HAVE_DECL_SG_SCSI_RESET) && HAVE_DECL_SG_SCSI_RESET)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SCSI_RESET) == (0x2284), "SG_SCSI_RESET != 0x2284");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SCSI_RESET 0x2284
#endif
#if defined(SG_IO) || (defined(HAVE_DECL_SG_IO) && HAVE_DECL_SG_IO)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_IO) == (0x2285), "SG_IO != 0x2285");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_IO 0x2285
#endif
#if defined(SG_GET_REQUEST_TABLE) || (defined(HAVE_DECL_SG_GET_REQUEST_TABLE) && HAVE_DECL_SG_GET_REQUEST_TABLE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_REQUEST_TABLE) == (0x2286), "SG_GET_REQUEST_TABLE != 0x2286");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_REQUEST_TABLE 0x2286
#endif
#if defined(SG_SET_KEEP_ORPHAN) || (defined(HAVE_DECL_SG_SET_KEEP_ORPHAN) && HAVE_DECL_SG_SET_KEEP_ORPHAN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_SET_KEEP_ORPHAN) == (0x2287), "SG_SET_KEEP_ORPHAN != 0x2287");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_SET_KEEP_ORPHAN 0x2287
#endif
#if defined(SG_GET_KEEP_ORPHAN) || (defined(HAVE_DECL_SG_GET_KEEP_ORPHAN) && HAVE_DECL_SG_GET_KEEP_ORPHAN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_KEEP_ORPHAN) == (0x2288), "SG_GET_KEEP_ORPHAN != 0x2288");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_KEEP_ORPHAN 0x2288
#endif
#if defined(SG_GET_ACCESS_COUNT) || (defined(HAVE_DECL_SG_GET_ACCESS_COUNT) && HAVE_DECL_SG_GET_ACCESS_COUNT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((SG_GET_ACCESS_COUNT) == (0x2289), "SG_GET_ACCESS_COUNT != 0x2289");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define SG_GET_ACCESS_COUNT 0x2289
#endif