Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
sd.h File Reference

Go to the source code of this file.

Data Structures

struct  scsi_disk
 
struct  sd_dif_tuple
 

Macros

#define SD_MAJORS   16
 
#define SD_TIMEOUT   (30 * HZ)
 
#define SD_MOD_TIMEOUT   (75 * HZ)
 
#define SD_FLUSH_TIMEOUT   (60 * HZ)
 
#define SD_WRITE_SAME_TIMEOUT   (120 * HZ)
 
#define SD_MAX_RETRIES   5
 
#define SD_PASSTHROUGH_RETRIES   1
 
#define SD_MAX_MEDIUM_TIMEOUTS   2
 
#define SD_BUF_SIZE   512
 
#define SD_LAST_BUGGY_SECTORS   8
 
#define to_scsi_disk(obj)   container_of(obj,struct scsi_disk,dev)
 
#define sd_printk(prefix, sdsk, fmt, a...)
 

Enumerations

enum  { SD_EXT_CDB_SIZE = 32, SD_MEMPOOL_SIZE = 2 }
 
enum  { SD_MAX_WS10_BLOCKS = 0xffff, SD_MAX_WS16_BLOCKS = 0x7fffff }
 
enum  {
  SD_LBP_FULL = 0, SD_LBP_UNMAP, SD_LBP_WS16, SD_LBP_WS10,
  SD_LBP_ZERO, SD_LBP_DISABLE
}
 
enum  sd_dif_target_protection_types { SD_DIF_TYPE0_PROTECTION = 0x0, SD_DIF_TYPE1_PROTECTION = 0x1, SD_DIF_TYPE2_PROTECTION = 0x2, SD_DIF_TYPE3_PROTECTION = 0x3 }
 

Macro Definition Documentation

#define SD_BUF_SIZE   512

Definition at line 29 of file sd.h.

#define SD_FLUSH_TIMEOUT   (60 * HZ)

Definition at line 16 of file sd.h.

#define SD_LAST_BUGGY_SECTORS   8

Definition at line 35 of file sd.h.

#define SD_MAJORS   16

Definition at line 9 of file sd.h.

#define SD_MAX_MEDIUM_TIMEOUTS   2

Definition at line 24 of file sd.h.

#define SD_MAX_RETRIES   5

Definition at line 22 of file sd.h.

#define SD_MOD_TIMEOUT   (75 * HZ)

Definition at line 15 of file sd.h.

#define SD_PASSTHROUGH_RETRIES   1

Definition at line 23 of file sd.h.

#define sd_printk (   prefix,
  sdsk,
  fmt,
  a... 
)
Value:
(sdsk)->disk ? \
sdev_printk(prefix, (sdsk)->device, "[%s] " fmt, \
(sdsk)->disk->disk_name, ##a) : \
sdev_printk(prefix, (sdsk)->device, fmt, ##a)

Definition at line 95 of file sd.h.

#define SD_TIMEOUT   (30 * HZ)

Definition at line 14 of file sd.h.

#define SD_WRITE_SAME_TIMEOUT   (120 * HZ)

Definition at line 17 of file sd.h.

#define to_scsi_disk (   obj)    container_of(obj,struct scsi_disk,dev)

Definition at line 88 of file sd.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SD_EXT_CDB_SIZE 
SD_MEMPOOL_SIZE 

Definition at line 37 of file sd.h.

anonymous enum
Enumerator:
SD_MAX_WS10_BLOCKS 
SD_MAX_WS16_BLOCKS 

Definition at line 42 of file sd.h.

anonymous enum
Enumerator:
SD_LBP_FULL 
SD_LBP_UNMAP 
SD_LBP_WS16 
SD_LBP_WS10 
SD_LBP_ZERO 
SD_LBP_DISABLE 

Definition at line 47 of file sd.h.

Enumerator:
SD_DIF_TYPE0_PROTECTION 
SD_DIF_TYPE1_PROTECTION 
SD_DIF_TYPE2_PROTECTION 
SD_DIF_TYPE3_PROTECTION 

Definition at line 147 of file sd.h.