linux/drivers/scsi/constants.c

// SPDX-License-Identifier: GPL-2.0
/*
 * ASCII values for a number of symbolic constants, printing functions,
 * etc.
 * Additions for SCSI 2 and Linux 2.2.x by D. Gilbert (990422)
 * Additions for SCSI 3+ (SPC-3 T10/1416-D Rev 07 3 May 2002)
 *   by D. Gilbert and aeb (20020609)
 * Updated to SPC-4 T10/1713-D Rev 36g, D. Gilbert 20130701
 */

#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/kernel.h>

#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_dbg.h>

/* Commands with service actions that change the command name */
#define THIRD_PARTY_COPY_OUT
#define THIRD_PARTY_COPY_IN

struct sa_name_list {};

struct value_name_pair {};

static const char * cdb_byte0_names[] =;

static const struct value_name_pair maint_in_arr[] =;
#define MAINT_IN_SZ

static const struct value_name_pair maint_out_arr[] =;
#define MAINT_OUT_SZ

static const struct value_name_pair serv_in12_arr[] =;
#define SERV_IN12_SZ

static const struct value_name_pair serv_out12_arr[] =;
#define SERV_OUT12_SZ

static const struct value_name_pair serv_bidi_arr[] =;
#define SERV_BIDI_SZ

static const struct value_name_pair serv_in16_arr[] =;
#define SERV_IN16_SZ

static const struct value_name_pair serv_out16_arr[] =;
#define SERV_OUT16_SZ

static const struct value_name_pair pr_in_arr[] =;
#define PR_IN_SZ

static const struct value_name_pair pr_out_arr[] =;
#define PR_OUT_SZ

/* SPC-4 rev 34 renamed the Extended Copy opcode to Third Party Copy Out.
   LID1 (List Identifier length: 1 byte) is the Extended Copy found in SPC-2
   and SPC-3 */
static const struct value_name_pair tpc_out_arr[] =;
#define TPC_OUT_SZ

static const struct value_name_pair tpc_in_arr[] =;
#define TPC_IN_SZ


static const struct value_name_pair variable_length_arr[] =;
#define VARIABLE_LENGTH_SZ

static struct sa_name_list sa_names_arr[] =;

bool scsi_opcode_sa_name(int opcode, int service_action,
			 const char **cdb_name, const char **sa_name)
{}

struct error_info {};

/*
 * There are 700+ entries in this table. To save space, we don't store
 * (code, pointer) pairs, which would make sizeof(struct
 * error_info)==16 on 64 bits. Rather, the second element just stores
 * the size (including \0) of the corresponding string, and we use the
 * sum of these to get the appropriate offset into additional_text
 * defined below. This approach saves 12 bytes per entry.
 */
static const struct error_info additional[] =;

static const char *additional_text =

struct error_info2 {};

static const struct error_info2 additional2[] =;

/* description of the sense key values */
static const char * const snstext[] =;

/* Get sense key string or NULL if not available */
const char *
scsi_sense_key_string(unsigned char key)
{}
EXPORT_SYMBOL();

/*
 * Get additional sense code string or NULL if not available.
 * This string may contain a "%x" and should be printed with ascq as arg.
 */
const char *
scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt)
{}
EXPORT_SYMBOL();

static const char * const hostbyte_table[]=;

const char *scsi_hostbyte_string(int result)
{}
EXPORT_SYMBOL();

#define scsi_mlreturn_name(result)
static const struct value_name_pair scsi_mlreturn_arr[] =;

const char *scsi_mlreturn_string(int result)
{}
EXPORT_SYMBOL();