FreeBSD kernel pms device code
agdef.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AGTIAPI_HW_LIMIT_DEVICE   4096
 
#define AGTIAPI_MAX_LUN   256 /* Max # luns per target */
 
#define AGTIAPI_MAX_DEVICE   128
 
#define AGTIAPI_MAX_DEVICE_7H   256 /*Max devices per channel in 7H */
 
#define AGTIAPI_MAX_DEVICE_8H   512 /*Max devices per channel in 8H*/
 
#define AGTIAPI_MAX_CAM_Q_DEPTH   1024
 
#define AGTIAPI_NSEGS   (MIN(btoc(maxphys), 64) + 1)
 
#define AGTIAPI_IO_RANGE   256 /* IO mapped address range */
 
#define AGTIAPI_MAX_DMA_SEGS   128
 
#define AGTIAPI_DEFAULT_Q_DEPTH   4
 
#define AGTIAPI_MAX_Q_DEPTH   AGSA_MAX_INBOUND_Q * 512
 
#define ACTIVE   0x00000001
 
#define TIMEDOUT   0x00000002
 
#define REQ_DONE   0x00000004
 
#define AGTIAPI_INQUIRY   0x00000008
 
#define AGTIAPI_ABORT   0x00000010
 
#define AGTIAPI_RETRY   0x00000020
 
#define TASK_SUCCESS   0x00000040
 
#define AGTIAPI_CNX_UP   0x00000100
 
#define DEV_RESET   0x00000400 /* device reset */
 
#define DEV_SHIFT   0x00000800 /* device shift physical position */
 
#define AGTIAPI_YAM   0x00001000
 
#define TASK_TIMEOUT   0x00002000
 
#define ENCRYPTED_IO   0x00010000 /* encrypted IO */
 
#define SATA_DIF   0x00020000 /* SATA DIF */
 
#define EDC_DATA   0x00040000
 
#define EDC_DATA_CRC   0x00080000
 
#define TAG_SMP   0x40000000
 
#define TASK_MANAGEMENT   0x80000000
 
#define AGTIAPI_CCB_PER_DEVICE   64
 
#define AGTIAPI_CMD_PER_LUN   512
 
#define AGTIAPI_GET_DEV_MAX   2
 
#define AGTIAPI_ADDRMODE_SHIFT   6
 
#define AGTIAPI_PERIPHERAL   0x00
 
#define AGTIAPI_VOLUME_SET   0x01
 
#define AGTIAPI_LUN_ADDR   0x02
 
#define SOFT_MAPPED   0x0001
 
#define HARD_MAPPED   0x0002
 
#define DIRECT_DEVICE   0x00
 
#define TAPE_DEVICE   0x01
 
#define SLOW_DEVICE   0x02
 
#define ARRAY_DEVICE   0x04
 
#define SCSI_CDB_SIZE   16
 
#define SCSI_GOOD   0x00
 
#define SCSI_CHECK_CONDITION   0x02
 
#define SCSI_CONDITION_MET   0x04
 
#define SCSI_BUSY   0x08
 
#define SCSI_INTERMEDIATE   0x10
 
#define SCSI_INTERMEDIATE_COND_MET   0x14
 
#define SCSI_RESERVATION_CONFLICT   0x18
 
#define SCSI_TASK_ABORTED   0x40
 
#define SCSI_TASK_SET_FULL   0x28
 
#define SCSI_ACA_ACTIVE   0x30
 
#define DTYPE_DIRECT   0x00
 
#define DTYPE_SEQUENTIAL   0x01
 
#define DTYPE_PRINTER   0x02
 
#define DTYPE_PROCESSOR   0x03
 
#define DTYPE_WORM   0x04
 
#define DTYPE_RODIRECT   0x05
 
#define DTYPE_SCANNER   0x06
 
#define DTYPE_OPTICAL   0x07
 
#define DTYPE_CHANGER   0x08
 
#define DTYPE_COMM   0x09
 
#define DTYPE_ARRAY_CTRL   0x0C
 
#define DTYPE_ESI   0x0D
 
#define DTYPE_MASK   0x1F
 
#define AGTIAPI_TIMEOUT_SECS   10 /* Default timer interval */
 
#define AGTIAPI_RESET_MAX   0x7FFFFFFF /* Default max. reset */
 
#define AGTIAPI_DEV_RESET_MAX   0x10 /* Default max. reset */
 
#define AGTIAPI_RETRY_MAX   10 /* Default ccb retry cnt */
 
#define AGTIAPI_MAX_CHANNEL_NUM   0 /* Max channel # per card */
 
#define AGTIAPI_PERIPHERAL_CHANNEL   0
 
#define AGTIAPI_VOLUMESET_CHANNEL   1
 
#define AGTIAPI_LUNADDR_CHANNEL   2
 
#define AGTIAPI_EXTRA_DELAY   10000 /* extra 10 seconds delay */
 
#define AGTIAPI_TEST_ABORT   0xabcd
 
#define AGTIAPI_TEST_ABORT_DONE   0xabce
 
#define AGTIAPI_IOCTL_SIGNATURE   "AGTIAPI_IOCTL"
 
#define AGTIAPI_HBA_SCSI_ID   (AGTIAPI_MAX_DEVICE - 1)
 
#define AGTIAPI_NO_RESEND   0x01 /* Don't resend command */
 
#define AGTIAPI_RESEND   0x02 /* Resend command */
 
#define AGTIAPI_CALLBACK   0x08 /* CMD call back required */
 

Macro Definition Documentation

◆ ACTIVE

#define ACTIVE   0x00000001

Definition at line 86 of file agdef.h.

◆ AGTIAPI_ABORT

#define AGTIAPI_ABORT   0x00000010

Definition at line 90 of file agdef.h.

◆ AGTIAPI_ADDRMODE_SHIFT

#define AGTIAPI_ADDRMODE_SHIFT   6

Definition at line 120 of file agdef.h.

◆ AGTIAPI_CALLBACK

#define AGTIAPI_CALLBACK   0x08 /* CMD call back required */

Definition at line 202 of file agdef.h.

◆ AGTIAPI_CCB_PER_DEVICE

#define AGTIAPI_CCB_PER_DEVICE   64

Definition at line 108 of file agdef.h.

◆ AGTIAPI_CMD_PER_LUN

#define AGTIAPI_CMD_PER_LUN   512

Definition at line 109 of file agdef.h.

◆ AGTIAPI_CNX_UP

#define AGTIAPI_CNX_UP   0x00000100

Definition at line 96 of file agdef.h.

◆ AGTIAPI_DEFAULT_Q_DEPTH

#define AGTIAPI_DEFAULT_Q_DEPTH   4

Definition at line 80 of file agdef.h.

◆ AGTIAPI_DEV_RESET_MAX

#define AGTIAPI_DEV_RESET_MAX   0x10 /* Default max. reset */

Definition at line 183 of file agdef.h.

◆ AGTIAPI_EXTRA_DELAY

#define AGTIAPI_EXTRA_DELAY   10000 /* extra 10 seconds delay */

Definition at line 189 of file agdef.h.

◆ AGTIAPI_GET_DEV_MAX

#define AGTIAPI_GET_DEV_MAX   2

Definition at line 115 of file agdef.h.

◆ AGTIAPI_HBA_SCSI_ID

#define AGTIAPI_HBA_SCSI_ID   (AGTIAPI_MAX_DEVICE - 1)

Definition at line 198 of file agdef.h.

◆ AGTIAPI_HW_LIMIT_DEVICE

#define AGTIAPI_HW_LIMIT_DEVICE   4096

Definition at line 59 of file agdef.h.

◆ AGTIAPI_INQUIRY

#define AGTIAPI_INQUIRY   0x00000008

Definition at line 89 of file agdef.h.

◆ AGTIAPI_IO_RANGE

#define AGTIAPI_IO_RANGE   256 /* IO mapped address range */

Definition at line 69 of file agdef.h.

◆ AGTIAPI_IOCTL_SIGNATURE

#define AGTIAPI_IOCTL_SIGNATURE   "AGTIAPI_IOCTL"

Definition at line 196 of file agdef.h.

◆ AGTIAPI_LUN_ADDR

#define AGTIAPI_LUN_ADDR   0x02

Definition at line 123 of file agdef.h.

◆ AGTIAPI_LUNADDR_CHANNEL

#define AGTIAPI_LUNADDR_CHANNEL   2

Definition at line 188 of file agdef.h.

◆ AGTIAPI_MAX_CAM_Q_DEPTH

#define AGTIAPI_MAX_CAM_Q_DEPTH   1024

Definition at line 64 of file agdef.h.

◆ AGTIAPI_MAX_CHANNEL_NUM

#define AGTIAPI_MAX_CHANNEL_NUM   0 /* Max channel # per card */

Definition at line 185 of file agdef.h.

◆ AGTIAPI_MAX_DEVICE

#define AGTIAPI_MAX_DEVICE   128

Definition at line 61 of file agdef.h.

◆ AGTIAPI_MAX_DEVICE_7H

#define AGTIAPI_MAX_DEVICE_7H   256 /*Max devices per channel in 7H */

Definition at line 62 of file agdef.h.

◆ AGTIAPI_MAX_DEVICE_8H

#define AGTIAPI_MAX_DEVICE_8H   512 /*Max devices per channel in 8H*/

Definition at line 63 of file agdef.h.

◆ AGTIAPI_MAX_DMA_SEGS

#define AGTIAPI_MAX_DMA_SEGS   128

Definition at line 79 of file agdef.h.

◆ AGTIAPI_MAX_LUN

#define AGTIAPI_MAX_LUN   256 /* Max # luns per target */

Definition at line 60 of file agdef.h.

◆ AGTIAPI_MAX_Q_DEPTH

#define AGTIAPI_MAX_Q_DEPTH   AGSA_MAX_INBOUND_Q * 512

Definition at line 81 of file agdef.h.

◆ AGTIAPI_NO_RESEND

#define AGTIAPI_NO_RESEND   0x01 /* Don't resend command */

Definition at line 199 of file agdef.h.

◆ AGTIAPI_NSEGS

#define AGTIAPI_NSEGS   (MIN(btoc(maxphys), 64) + 1)

Definition at line 65 of file agdef.h.

◆ AGTIAPI_PERIPHERAL

#define AGTIAPI_PERIPHERAL   0x00

Definition at line 121 of file agdef.h.

◆ AGTIAPI_PERIPHERAL_CHANNEL

#define AGTIAPI_PERIPHERAL_CHANNEL   0

Definition at line 186 of file agdef.h.

◆ AGTIAPI_RESEND

#define AGTIAPI_RESEND   0x02 /* Resend command */

Definition at line 200 of file agdef.h.

◆ AGTIAPI_RESET_MAX

#define AGTIAPI_RESET_MAX   0x7FFFFFFF /* Default max. reset */

Definition at line 182 of file agdef.h.

◆ AGTIAPI_RETRY

#define AGTIAPI_RETRY   0x00000020

Definition at line 91 of file agdef.h.

◆ AGTIAPI_RETRY_MAX

#define AGTIAPI_RETRY_MAX   10 /* Default ccb retry cnt */

Definition at line 184 of file agdef.h.

◆ AGTIAPI_TEST_ABORT

#define AGTIAPI_TEST_ABORT   0xabcd

Definition at line 194 of file agdef.h.

◆ AGTIAPI_TEST_ABORT_DONE

#define AGTIAPI_TEST_ABORT_DONE   0xabce

Definition at line 195 of file agdef.h.

◆ AGTIAPI_TIMEOUT_SECS

#define AGTIAPI_TIMEOUT_SECS   10 /* Default timer interval */

Definition at line 181 of file agdef.h.

◆ AGTIAPI_VOLUME_SET

#define AGTIAPI_VOLUME_SET   0x01

Definition at line 122 of file agdef.h.

◆ AGTIAPI_VOLUMESET_CHANNEL

#define AGTIAPI_VOLUMESET_CHANNEL   1

Definition at line 187 of file agdef.h.

◆ AGTIAPI_YAM

#define AGTIAPI_YAM   0x00001000

Definition at line 99 of file agdef.h.

◆ ARRAY_DEVICE

#define ARRAY_DEVICE   0x04

Definition at line 137 of file agdef.h.

◆ DEV_RESET

#define DEV_RESET   0x00000400 /* device reset */

Definition at line 97 of file agdef.h.

◆ DEV_SHIFT

#define DEV_SHIFT   0x00000800 /* device shift physical position */

Definition at line 98 of file agdef.h.

◆ DIRECT_DEVICE

#define DIRECT_DEVICE   0x00

Definition at line 134 of file agdef.h.

◆ DTYPE_ARRAY_CTRL

#define DTYPE_ARRAY_CTRL   0x0C

Definition at line 171 of file agdef.h.

◆ DTYPE_CHANGER

#define DTYPE_CHANGER   0x08

Definition at line 169 of file agdef.h.

◆ DTYPE_COMM

#define DTYPE_COMM   0x09

Definition at line 170 of file agdef.h.

◆ DTYPE_DIRECT

#define DTYPE_DIRECT   0x00

Definition at line 161 of file agdef.h.

◆ DTYPE_ESI

#define DTYPE_ESI   0x0D

Definition at line 172 of file agdef.h.

◆ DTYPE_MASK

#define DTYPE_MASK   0x1F

Definition at line 176 of file agdef.h.

◆ DTYPE_OPTICAL

#define DTYPE_OPTICAL   0x07

Definition at line 168 of file agdef.h.

◆ DTYPE_PRINTER

#define DTYPE_PRINTER   0x02

Definition at line 163 of file agdef.h.

◆ DTYPE_PROCESSOR

#define DTYPE_PROCESSOR   0x03

Definition at line 164 of file agdef.h.

◆ DTYPE_RODIRECT

#define DTYPE_RODIRECT   0x05

Definition at line 166 of file agdef.h.

◆ DTYPE_SCANNER

#define DTYPE_SCANNER   0x06

Definition at line 167 of file agdef.h.

◆ DTYPE_SEQUENTIAL

#define DTYPE_SEQUENTIAL   0x01

Definition at line 162 of file agdef.h.

◆ DTYPE_WORM

#define DTYPE_WORM   0x04

Definition at line 165 of file agdef.h.

◆ EDC_DATA

#define EDC_DATA   0x00040000

Definition at line 103 of file agdef.h.

◆ EDC_DATA_CRC

#define EDC_DATA_CRC   0x00080000

Definition at line 104 of file agdef.h.

◆ ENCRYPTED_IO

#define ENCRYPTED_IO   0x00010000 /* encrypted IO */

Definition at line 101 of file agdef.h.

◆ HARD_MAPPED

#define HARD_MAPPED   0x0002

Definition at line 129 of file agdef.h.

◆ REQ_DONE

#define REQ_DONE   0x00000004

Definition at line 88 of file agdef.h.

◆ SATA_DIF

#define SATA_DIF   0x00020000 /* SATA DIF */

Definition at line 102 of file agdef.h.

◆ SCSI_ACA_ACTIVE

#define SCSI_ACA_ACTIVE   0x30

Definition at line 156 of file agdef.h.

◆ SCSI_BUSY

#define SCSI_BUSY   0x08

Definition at line 150 of file agdef.h.

◆ SCSI_CDB_SIZE

#define SCSI_CDB_SIZE   16

Definition at line 142 of file agdef.h.

◆ SCSI_CHECK_CONDITION

#define SCSI_CHECK_CONDITION   0x02

Definition at line 148 of file agdef.h.

◆ SCSI_CONDITION_MET

#define SCSI_CONDITION_MET   0x04

Definition at line 149 of file agdef.h.

◆ SCSI_GOOD

#define SCSI_GOOD   0x00

Definition at line 147 of file agdef.h.

◆ SCSI_INTERMEDIATE

#define SCSI_INTERMEDIATE   0x10

Definition at line 151 of file agdef.h.

◆ SCSI_INTERMEDIATE_COND_MET

#define SCSI_INTERMEDIATE_COND_MET   0x14

Definition at line 152 of file agdef.h.

◆ SCSI_RESERVATION_CONFLICT

#define SCSI_RESERVATION_CONFLICT   0x18

Definition at line 153 of file agdef.h.

◆ SCSI_TASK_ABORTED

#define SCSI_TASK_ABORTED   0x40

Definition at line 154 of file agdef.h.

◆ SCSI_TASK_SET_FULL

#define SCSI_TASK_SET_FULL   0x28

Definition at line 155 of file agdef.h.

◆ SLOW_DEVICE

#define SLOW_DEVICE   0x02

Definition at line 136 of file agdef.h.

◆ SOFT_MAPPED

#define SOFT_MAPPED   0x0001

Definition at line 128 of file agdef.h.

◆ TAG_SMP

#define TAG_SMP   0x40000000

Definition at line 105 of file agdef.h.

◆ TAPE_DEVICE

#define TAPE_DEVICE   0x01

Definition at line 135 of file agdef.h.

◆ TASK_MANAGEMENT

#define TASK_MANAGEMENT   0x80000000

Definition at line 106 of file agdef.h.

◆ TASK_SUCCESS

#define TASK_SUCCESS   0x00000040

Definition at line 92 of file agdef.h.

◆ TASK_TIMEOUT

#define TASK_TIMEOUT   0x00002000

Definition at line 100 of file agdef.h.

◆ TIMEDOUT

#define TIMEDOUT   0x00000002

Definition at line 87 of file agdef.h.