Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
constants.c File Reference
#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>

Go to the source code of this file.

Macros

#define MAINTENANCE_IN   0xa3
 
#define MAINTENANCE_OUT   0xa4
 
#define SERVICE_ACTION_IN_12   0xab
 
#define SERVICE_ACTION_OUT_12   0xa9
 
#define SERVICE_ACTION_IN_16   0x9e
 
#define SERVICE_ACTION_OUT_16   0x9f
 

Functions

void __scsi_print_command (unsigned char *cdb)
 
 EXPORT_SYMBOL (__scsi_print_command)
 
void scsi_print_command (struct scsi_cmnd *cmd)
 
 EXPORT_SYMBOL (scsi_print_command)
 
void scsi_print_status (unsigned char scsi_status)
 
 EXPORT_SYMBOL (scsi_print_status)
 
const charscsi_sense_key_string (unsigned char key)
 
 EXPORT_SYMBOL (scsi_sense_key_string)
 
const charscsi_extd_sense_format (unsigned char asc, unsigned char ascq)
 
 EXPORT_SYMBOL (scsi_extd_sense_format)
 
void scsi_show_extd_sense (unsigned char asc, unsigned char ascq)
 
 EXPORT_SYMBOL (scsi_show_extd_sense)
 
void scsi_show_sense_hdr (struct scsi_sense_hdr *sshdr)
 
 EXPORT_SYMBOL (scsi_show_sense_hdr)
 
void scsi_print_sense_hdr (const char *name, struct scsi_sense_hdr *sshdr)
 
 EXPORT_SYMBOL (scsi_print_sense_hdr)
 
void scsi_cmd_print_sense_hdr (struct scsi_cmnd *scmd, const char *desc, struct scsi_sense_hdr *sshdr)
 
 EXPORT_SYMBOL (scsi_cmd_print_sense_hdr)
 
void __scsi_print_sense (const char *name, const unsigned char *sense_buffer, int sense_len)
 
 EXPORT_SYMBOL (__scsi_print_sense)
 
void scsi_print_sense (char *name, struct scsi_cmnd *cmd)
 
 EXPORT_SYMBOL (scsi_print_sense)
 
void scsi_show_result (int result)
 
 EXPORT_SYMBOL (scsi_show_result)
 
void scsi_print_result (struct scsi_cmnd *cmd)
 
 EXPORT_SYMBOL (scsi_print_result)
 

Macro Definition Documentation

#define MAINTENANCE_IN   0xa3

Definition at line 24 of file constants.c.

#define MAINTENANCE_OUT   0xa4

Definition at line 25 of file constants.c.

#define SERVICE_ACTION_IN_12   0xab

Definition at line 26 of file constants.c.

#define SERVICE_ACTION_IN_16   0x9e

Definition at line 28 of file constants.c.

#define SERVICE_ACTION_OUT_12   0xa9

Definition at line 27 of file constants.c.

#define SERVICE_ACTION_OUT_16   0x9f

Definition at line 29 of file constants.c.

Function Documentation

void __scsi_print_command ( unsigned char cdb)

Definition at line 332 of file constants.c.

void __scsi_print_sense ( const char name,
const unsigned char sense_buffer,
int  sense_len 
)

Definition at line 1389 of file constants.c.

EXPORT_SYMBOL ( __scsi_print_command  )
EXPORT_SYMBOL ( scsi_print_command  )
EXPORT_SYMBOL ( scsi_print_status  )
EXPORT_SYMBOL ( scsi_sense_key_string  )
EXPORT_SYMBOL ( scsi_extd_sense_format  )
EXPORT_SYMBOL ( scsi_show_extd_sense  )
EXPORT_SYMBOL ( scsi_show_sense_hdr  )
EXPORT_SYMBOL ( scsi_print_sense_hdr  )
EXPORT_SYMBOL ( scsi_cmd_print_sense_hdr  )
EXPORT_SYMBOL ( __scsi_print_sense  )
EXPORT_SYMBOL ( scsi_print_sense  )
EXPORT_SYMBOL ( scsi_show_result  )
EXPORT_SYMBOL ( scsi_print_result  )
void scsi_cmd_print_sense_hdr ( struct scsi_cmnd scmd,
const char desc,
struct scsi_sense_hdr sshdr 
)

Definition at line 1294 of file constants.c.

const char* scsi_extd_sense_format ( unsigned char  asc,
unsigned char  ascq 
)

Definition at line 1211 of file constants.c.

void scsi_print_command ( struct scsi_cmnd cmd)

Definition at line 345 of file constants.c.

void scsi_print_result ( struct scsi_cmnd cmd)

Definition at line 1456 of file constants.c.

void scsi_print_sense ( char name,
struct scsi_cmnd cmd 
)

Definition at line 1404 of file constants.c.

void scsi_print_sense_hdr ( const char name,
struct scsi_sense_hdr sshdr 
)

Definition at line 1281 of file constants.c.

void scsi_print_status ( unsigned char  scsi_status)

scsi_print_status - print scsi status description : scsi status value

If the status is recognized, the description is printed. Otherwise "Unknown status" is output. No trailing space. If CONFIG_SCSI_CONSTANTS is not set, then print status in hex (e.g. "0x2" for Check Condition).

Definition at line 373 of file constants.c.

const char* scsi_sense_key_string ( unsigned char  key)

Definition at line 1197 of file constants.c.

void scsi_show_extd_sense ( unsigned char  asc,
unsigned char  ascq 
)

Definition at line 1231 of file constants.c.

void scsi_show_result ( int  result)

Definition at line 1446 of file constants.c.

void scsi_show_sense_hdr ( struct scsi_sense_hdr sshdr)

Definition at line 1257 of file constants.c.