FreeBSD kernel pms device code
sadefs.h File Reference

The file defines the constants used by LL layer. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SA_LL_IBQ_PROTECT
 
#define AGSA_MAX_VALID_PORTS   AGSA_MAX_VALID_PHYS
 
#define NUM_TIMERS   2
 
#define SA_USECS_PER_TICK   1000000
 
#define MAX_ACTIVE_IO_REQUESTS   4096
 
#define SMP_RESPONSE_FRAMES   AGSA_MAX_VALID_PHYS
 
#define MAX_NUM_VECTOR   64
 
#define REGISTER_DUMP_BUFF_SIZE   0x4000
 
#define KBYTES   1024
 
#define IQ_NUM_32   32
 
#define OQ_NUM_32   32
 
#define INBOUND_DEPTH_SIZE   512
 
#define OUTBOUND_DEPTH_SIZE   512
 
#define MPI_QUEUE_NORMAL   0
 
#define MPI_QUEUE_PRIORITY   1
 
#define IOMB_SIZE64   64
 
#define IOMB_SIZE96   96
 
#define IOMB_SIZE128   128
 
#define IOMB_SIZE256   256
 
#define DIR_NODATA   0x000
 
#define DIR_READ   0x100
 
#define DIR_WRITE   0x200
 
#define TLR_MASK   0x00000003
 
#define PORTID_MASK   0x0000000F
 
#define PORTID_V_MASK   0x000000FF
 
#define PHYID_MASK   0x0000000F
 
#define PHYID_V_MASK   0x000000FF
 
#define PORT_STATE_MASK   0x0000000F
 
#define PHY_IN_PORT_MASK   0x000000F0
 
#define SM_PHYID_MASK   (smIS_SPC(agRoot) ? PHYID_MASK : PHYID_V_MASK )
 
#define SM_PORTID_MASK   (smIS_SPC(agRoot) ? PORTID_MASK : PORTID_V_MASK )
 
#define LLROOT_MEM_INDEX   0
 
#define DEVICELINK_MEM_INDEX   (LLROOT_MEM_INDEX + 1)
 
#define IOREQLINK_MEM_INDEX   (DEVICELINK_MEM_INDEX+1)
 
#define HDA_DMA_BUFFER   (IOREQLINK_MEM_INDEX) /** HDA Buffer */
 
#define LL_FUNCTION_TRACE   HDA_DMA_BUFFER /**TraceLog */
 
#define TIMERLINK_MEM_INDEX   (LL_FUNCTION_TRACE+1)
 
#define LL_FAST_IO   TIMERLINK_MEM_INDEX
 
#define MPI_IBQ_OBQ_INDEX   (LL_FAST_IO + 1)
 
#define MPI_MEM_INDEX   (MPI_IBQ_OBQ_INDEX - LLROOT_MEM_INDEX)
 
#define MPI_EVENTLOG_INDEX   0
 
#define MPI_IOP_EVENTLOG_INDEX   1
 
#define MPI_CI_INDEX   2
 
#define MPI_PI_INDEX   (MPI_CI_INDEX + 1)
 
#define MPI_IBQ_INDEX   (MPI_PI_INDEX + 1)
 
#define MPI_OBQ_INDEX   (MPI_IBQ_INDEX + MPI_MAX_INBOUND_QUEUES)
 
#define TOTAL_MPI_MEM_CHUNKS   (MPI_MAX_INBOUND_QUEUES * 2) + MPI_IBQ_INDEX
 
#define LL_DEVICE_LOCK   0
 
#define LL_PORT_LOCK   (LL_DEVICE_LOCK+1)
 
#define LL_TIMER_LOCK   (LL_PORT_LOCK+1)
 
#define LL_IOREQ_LOCKEQ_LOCK   (LL_TIMER_LOCK+1)
 
#define LL_FAST_IO_LOCK   (LL_IOREQ_LOCKEQ_LOCK)
 
#define LL_TRACE_LOCK   (LL_FAST_IO_LOCK)
 
#define LL_IOMB_TRACE_LOCK   (LL_TRACE_LOCK)
 
#define LL_IOREQ_OBQ_LOCK   (LL_IOMB_TRACE_LOCK+1)
 
#define LL_IOREQ_IBQ_LOCK   (LL_IOREQ_OBQ_LOCK +1)
 
#define LL_IOREQ_IBQ_LOCK_PARM   (LL_IOREQ_OBQ_LOCK + queueConfig->numOutboundQueues +1)
 
#define LL_IOREQ_IBQ0_LOCK   (LL_IOREQ_OBQ_LOCK + saRoot->QueueConfig.numOutboundQueues +1)
 
#define PHY_STOPPED   0x00000000
 
#define PHY_UP   0x00000001
 
#define PHY_DOWN   0x00000002
 
#define PORT_NORMAL   0x0000
 
#define PORT_INVALIDATING   0x0002
 
#define CHIP_NORMAL   0x0000
 
#define CHIP_SHUTDOWN   0x0001
 
#define CHIP_RESETTING   0x0002
 
#define CHIP_RESET_FW   0x0004
 
#define CHIP_FATAL_ERROR   0x0008
 
#define SAS_SATA_UNKNOWN_DEVICE   0xFF
 
#define STP_DEVICE   0x00
 
#define SSP_SMP_DEVICE   0x01
 
#define DIRECT_SATA_DEVICE   0x02
 
#define SATA_FIS_MASK   0x00000001
 
#define MAX_SATARESP_SUPPORT_BYTES   44
 
#define MARK_OFF   0xFFFFFFFF
 
#define PORT_MARK_OFF   0xFFFFFFFF
 
#define NO_FATAL_ERROR_VECTOR   0xFFFFFFFF
 
#define SATA_PROTOCOL_RSRT_ASSERT   0x01
 
#define SATA_PROTOCOL_RSRT_DEASSERT   0x02
 
#define SATA_NON_DATA_PROTOCOL   0x0d
 
#define SATA_PIO_READ_PROTOCOL   0x0e
 
#define SATA_DMA_READ_PROTOCOL   0x0f
 
#define SATA_FPDMA_READ_PROTOCOL   0x10
 
#define SATA_PIO_WRITE_PROTOCOL   0x11
 
#define SATA_DMA_WRITE_PROTOCOL   0x12
 
#define SATA_FPDMA_WRITE_PROTOCOL   0x13
 
#define SATA_DEVICE_RESET_PROTOCOL   0x14
 
#define SHIFT0   0
 
#define SHIFT1   1
 
#define SHIFT2   2
 
#define SHIFT3   3
 
#define SHIFT4   4
 
#define SHIFT5   5
 
#define SHIFT6   6
 
#define SHIFT7   7
 
#define SHIFT8   8
 
#define SHIFT9   9
 
#define SHIFT10   10
 
#define SHIFT11   11
 
#define SHIFT12   12
 
#define SHIFT13   13
 
#define SHIFT14   14
 
#define SHIFT15   15
 
#define SHIFT16   16
 
#define SHIFT17   17
 
#define SHIFT18   18
 
#define SHIFT19   19
 
#define SHIFT20   20
 
#define SHIFT21   21
 
#define SHIFT22   22
 
#define SHIFT23   23
 
#define SHIFT24   24
 
#define SHIFT25   25
 
#define SHIFT26   26
 
#define SHIFT27   27
 
#define SHIFT28   28
 
#define SHIFT29   29
 
#define SHIFT30   30
 
#define SHIFT31   31
 
#define ABORT_MASK   0x3
 
#define ABORT_SINGLE   0x0
 
#define ABORT_SCOPE   0x3 /* bits 0-1*/
 
#define ABORT_ALL   0x1
 
#define ABORT_TSDK_QUARANTINE   0x4
 
#define ABORT_QUARANTINE_SPC   0x4
 
#define ABORT_QUARANTINE_SPCV   0x8
 
#define REG_DUMP_NUM0   0x0
 
#define REG_DUMP_NUM1   0x1
 
#define REG_DUMP_NONFLASH   0x0
 
#define REG_DUMP_FLASH   0x1
 
#define MSIX_TABLE_OFFSET   0x2000
 
#define MSIX_TABLE_ELEMENT_SIZE   0x10
 
#define MSIX_INTERRUPT_CONTROL_OFFSET   0xC
 
#define MSIX_TABLE_BASE   (MSIX_TABLE_OFFSET+MSIX_INTERRUPT_CONTROL_OFFSET)
 
#define MSIX_INTERRUPT_DISABLE   0x1
 
#define MSIX_INTERRUPT_ENABLE   0x0
 
#define MAX_QUEUE_EACH_MEM   8
 
#define NUM_MEM_CHUNKS(Q, rem)   ((((bit32)Q % rem) > 0) ? (bit32)(Q/rem+1) : (bit32)(Q/rem))
 
#define NUM_QUEUES_IN_MEM(Q, rem)   ((((bit32)Q % rem) > 0) ? (bit32)(Q%rem) : (bit32)(MAX_QUEUE_EACH_MEM))
 
#define MAX_DEV_BITS   0xFFFF0000
 
#define PHY_COUNT_BITS   0x01f80000
 
#define Q_SUPPORT_BITS   0x0007ffff
 
#define SAS_SPEC_BITS   0xfe000000
 
#define HP_SUPPORT_BIT   0x00010000
 
#define INT_COL_BIT   0x00040000
 
#define INT_DELAY_BITS   0xFFFF
 
#define INT_THR_BITS   0xFF
 
#define INT_VEC_BITS   0xFF
 
#define AUTO_HARD_RESET_DEREG_FLAG   0x00000001
 
#define AUTO_FW_CLEANUP_DEREG_FLAG   0x00000002
 
#define BYTE_MASK   0xff
 
#define INT_OPTION   0x7FFF
 
#define SMP_TO_DEFAULT   100
 
#define ITL_TO_DEFAULT   0xFFFF
 
#define HW_CFG_PICI_EFFECTIVE_ADDRESS   0x1
 
#define SUBID_SPC   0x00000000
 
#define SUBID_SPCV   0x56781234
 
#define VEN_DEV_SPC   0x80010000
 
#define VEN_DEV_HIL   0x80810000
 
#define VEN_DEV_SPCV   0x80080000
 
#define VEN_DEV_SPCVE   0x80090000
 
#define VEN_DEV_SPCVP   0x80180000
 
#define VEN_DEV_SPCVEP   0x80190000
 
#define VEN_DEV_SPC12V   0x80700000
 
#define VEN_DEV_SPC12VE   0x80710000
 
#define VEN_DEV_SPC12VP   0x80720000
 
#define VEN_DEV_SPC12VEP   0x80730000
 
#define VEN_DEV_9015   0x90150000
 
#define VEN_DEV_9060   0x90600000
 
#define VEN_DEV_ADAPVEP   0x80890000
 
#define VEN_DEV_ADAPVP   0x80880000
 
#define VEN_DEV_SFC   0x80250000
 
#define VEN_DEV_SPC12ADP   0x80740000 /* 8 ports */
 
#define VEN_DEV_SPC12ADPE   0x80750000 /* 8 ports encrypt */
 
#define VEN_DEV_SPC12ADPP   0x80760000 /* 16 ports */
 
#define VEN_DEV_SPC12ADPEP   0x80770000 /* 16 ports encrypt */
 
#define VEN_DEV_SPC12SATA   0x80060000 /* SATA HBA */
 

Detailed Description

The file defines the constants used by LL layer.

Definition in file sadefs.h.

Macro Definition Documentation

◆ ABORT_ALL

#define ABORT_ALL   0x1

Definition at line 238 of file sadefs.h.

◆ ABORT_MASK

#define ABORT_MASK   0x3

Definition at line 235 of file sadefs.h.

◆ ABORT_QUARANTINE_SPC

#define ABORT_QUARANTINE_SPC   0x4

Definition at line 240 of file sadefs.h.

◆ ABORT_QUARANTINE_SPCV

#define ABORT_QUARANTINE_SPCV   0x8

Definition at line 241 of file sadefs.h.

◆ ABORT_SCOPE

#define ABORT_SCOPE   0x3 /* bits 0-1*/

Definition at line 237 of file sadefs.h.

◆ ABORT_SINGLE

#define ABORT_SINGLE   0x0

Definition at line 236 of file sadefs.h.

◆ ABORT_TSDK_QUARANTINE

#define ABORT_TSDK_QUARANTINE   0x4

Definition at line 239 of file sadefs.h.

◆ AGSA_MAX_VALID_PORTS

#define AGSA_MAX_VALID_PORTS   AGSA_MAX_VALID_PHYS

defines the maximum number of ports

Definition at line 37 of file sadefs.h.

◆ AUTO_FW_CLEANUP_DEREG_FLAG

#define AUTO_FW_CLEANUP_DEREG_FLAG   0x00000002

Definition at line 273 of file sadefs.h.

◆ AUTO_HARD_RESET_DEREG_FLAG

#define AUTO_HARD_RESET_DEREG_FLAG   0x00000001

Definition at line 272 of file sadefs.h.

◆ BYTE_MASK

#define BYTE_MASK   0xff

Definition at line 275 of file sadefs.h.

◆ CHIP_FATAL_ERROR

#define CHIP_FATAL_ERROR   0x0008

Definition at line 172 of file sadefs.h.

◆ CHIP_NORMAL

#define CHIP_NORMAL   0x0000

Definition at line 168 of file sadefs.h.

◆ CHIP_RESET_FW

#define CHIP_RESET_FW   0x0004

Definition at line 171 of file sadefs.h.

◆ CHIP_RESETTING

#define CHIP_RESETTING   0x0002

Definition at line 170 of file sadefs.h.

◆ CHIP_SHUTDOWN

#define CHIP_SHUTDOWN   0x0001

Definition at line 169 of file sadefs.h.

◆ DEVICELINK_MEM_INDEX

#define DEVICELINK_MEM_INDEX   (LLROOT_MEM_INDEX + 1)

the index of device descriptors memory

Definition at line 87 of file sadefs.h.

◆ DIR_NODATA

#define DIR_NODATA   0x000

Definition at line 66 of file sadefs.h.

◆ DIR_READ

#define DIR_READ   0x100

Definition at line 67 of file sadefs.h.

◆ DIR_WRITE

#define DIR_WRITE   0x200

Definition at line 68 of file sadefs.h.

◆ DIRECT_SATA_DEVICE

#define DIRECT_SATA_DEVICE   0x02

SATA direct device type

Definition at line 179 of file sadefs.h.

◆ HDA_DMA_BUFFER

#define HDA_DMA_BUFFER   (IOREQLINK_MEM_INDEX) /** HDA Buffer */

Definition at line 93 of file sadefs.h.

◆ HP_SUPPORT_BIT

#define HP_SUPPORT_BIT   0x00010000

Definition at line 266 of file sadefs.h.

◆ HW_CFG_PICI_EFFECTIVE_ADDRESS

#define HW_CFG_PICI_EFFECTIVE_ADDRESS   0x1

Definition at line 285 of file sadefs.h.

◆ INBOUND_DEPTH_SIZE

#define INBOUND_DEPTH_SIZE   512

Definition at line 52 of file sadefs.h.

◆ INT_COL_BIT

#define INT_COL_BIT   0x00040000

Definition at line 267 of file sadefs.h.

◆ INT_DELAY_BITS

#define INT_DELAY_BITS   0xFFFF

Definition at line 268 of file sadefs.h.

◆ INT_OPTION

#define INT_OPTION   0x7FFF

Definition at line 277 of file sadefs.h.

◆ INT_THR_BITS

#define INT_THR_BITS   0xFF

Definition at line 269 of file sadefs.h.

◆ INT_VEC_BITS

#define INT_VEC_BITS   0xFF

Definition at line 270 of file sadefs.h.

◆ IOMB_SIZE128

#define IOMB_SIZE128   128

Definition at line 62 of file sadefs.h.

◆ IOMB_SIZE256

#define IOMB_SIZE256   256

Definition at line 63 of file sadefs.h.

◆ IOMB_SIZE64

#define IOMB_SIZE64   64

Definition at line 60 of file sadefs.h.

◆ IOMB_SIZE96

#define IOMB_SIZE96   96

Definition at line 61 of file sadefs.h.

◆ IOREQLINK_MEM_INDEX

#define IOREQLINK_MEM_INDEX   (DEVICELINK_MEM_INDEX+1)

the index of IO requests memory

Definition at line 88 of file sadefs.h.

◆ IQ_NUM_32

#define IQ_NUM_32   32

Definition at line 48 of file sadefs.h.

◆ ITL_TO_DEFAULT

#define ITL_TO_DEFAULT   0xFFFF

Definition at line 279 of file sadefs.h.

◆ KBYTES

#define KBYTES   1024

Definition at line 45 of file sadefs.h.

◆ LL_DEVICE_LOCK

#define LL_DEVICE_LOCK   0

Definition at line 127 of file sadefs.h.

◆ LL_FAST_IO

#define LL_FAST_IO   TIMERLINK_MEM_INDEX

Definition at line 110 of file sadefs.h.

◆ LL_FAST_IO_LOCK

#define LL_FAST_IO_LOCK   (LL_IOREQ_LOCKEQ_LOCK)

Definition at line 135 of file sadefs.h.

◆ LL_FUNCTION_TRACE

#define LL_FUNCTION_TRACE   HDA_DMA_BUFFER /**TraceLog */

Definition at line 99 of file sadefs.h.

◆ LL_IOMB_TRACE_LOCK

#define LL_IOMB_TRACE_LOCK   (LL_TRACE_LOCK)

Definition at line 147 of file sadefs.h.

◆ LL_IOREQ_IBQ0_LOCK

#define LL_IOREQ_IBQ0_LOCK   (LL_IOREQ_OBQ_LOCK + saRoot->QueueConfig.numOutboundQueues +1)

Definition at line 154 of file sadefs.h.

◆ LL_IOREQ_IBQ_LOCK

#define LL_IOREQ_IBQ_LOCK   (LL_IOREQ_OBQ_LOCK +1)

Definition at line 152 of file sadefs.h.

◆ LL_IOREQ_IBQ_LOCK_PARM

#define LL_IOREQ_IBQ_LOCK_PARM   (LL_IOREQ_OBQ_LOCK + queueConfig->numOutboundQueues +1)

Definition at line 153 of file sadefs.h.

◆ LL_IOREQ_LOCKEQ_LOCK

#define LL_IOREQ_LOCKEQ_LOCK   (LL_TIMER_LOCK+1)

Definition at line 130 of file sadefs.h.

◆ LL_IOREQ_OBQ_LOCK

#define LL_IOREQ_OBQ_LOCK   (LL_IOMB_TRACE_LOCK+1)

Definition at line 150 of file sadefs.h.

◆ LL_PORT_LOCK

#define LL_PORT_LOCK   (LL_DEVICE_LOCK+1)

Definition at line 128 of file sadefs.h.

◆ LL_TIMER_LOCK

#define LL_TIMER_LOCK   (LL_PORT_LOCK+1)

Definition at line 129 of file sadefs.h.

◆ LL_TRACE_LOCK

#define LL_TRACE_LOCK   (LL_FAST_IO_LOCK)

Definition at line 141 of file sadefs.h.

◆ LLROOT_MEM_INDEX

#define LLROOT_MEM_INDEX   0

the index of root memory

Definition at line 86 of file sadefs.h.

◆ MARK_OFF

#define MARK_OFF   0xFFFFFFFF

Definition at line 185 of file sadefs.h.

◆ MAX_ACTIVE_IO_REQUESTS

#define MAX_ACTIVE_IO_REQUESTS   4096

Maximum Active IO Requests

Definition at line 41 of file sadefs.h.

◆ MAX_DEV_BITS

#define MAX_DEV_BITS   0xFFFF0000

Definition at line 262 of file sadefs.h.

◆ MAX_NUM_VECTOR

#define MAX_NUM_VECTOR   64

Maximum Number of Interrupt Vectors

Definition at line 43 of file sadefs.h.

◆ MAX_QUEUE_EACH_MEM

#define MAX_QUEUE_EACH_MEM   8

Definition at line 257 of file sadefs.h.

◆ MAX_SATARESP_SUPPORT_BYTES

#define MAX_SATARESP_SUPPORT_BYTES   44

Definition at line 183 of file sadefs.h.

◆ MPI_CI_INDEX

#define MPI_CI_INDEX   2

Definition at line 118 of file sadefs.h.

◆ MPI_EVENTLOG_INDEX

#define MPI_EVENTLOG_INDEX   0

Definition at line 116 of file sadefs.h.

◆ MPI_IBQ_INDEX

#define MPI_IBQ_INDEX   (MPI_PI_INDEX + 1)

Definition at line 121 of file sadefs.h.

◆ MPI_IBQ_OBQ_INDEX

#define MPI_IBQ_OBQ_INDEX   (LL_FAST_IO + 1)

Definition at line 111 of file sadefs.h.

◆ MPI_IOP_EVENTLOG_INDEX

#define MPI_IOP_EVENTLOG_INDEX   1

Definition at line 117 of file sadefs.h.

◆ MPI_MEM_INDEX

#define MPI_MEM_INDEX   (MPI_IBQ_OBQ_INDEX - LLROOT_MEM_INDEX)

Definition at line 114 of file sadefs.h.

◆ MPI_OBQ_INDEX

#define MPI_OBQ_INDEX   (MPI_IBQ_INDEX + MPI_MAX_INBOUND_QUEUES)

Definition at line 122 of file sadefs.h.

◆ MPI_PI_INDEX

#define MPI_PI_INDEX   (MPI_CI_INDEX + 1)

Definition at line 120 of file sadefs.h.

◆ MPI_QUEUE_NORMAL

#define MPI_QUEUE_NORMAL   0

Definition at line 56 of file sadefs.h.

◆ MPI_QUEUE_PRIORITY

#define MPI_QUEUE_PRIORITY   1

Definition at line 57 of file sadefs.h.

◆ MSIX_INTERRUPT_CONTROL_OFFSET

#define MSIX_INTERRUPT_CONTROL_OFFSET   0xC

Definition at line 252 of file sadefs.h.

◆ MSIX_INTERRUPT_DISABLE

#define MSIX_INTERRUPT_DISABLE   0x1

Definition at line 254 of file sadefs.h.

◆ MSIX_INTERRUPT_ENABLE

#define MSIX_INTERRUPT_ENABLE   0x0

Definition at line 255 of file sadefs.h.

◆ MSIX_TABLE_BASE

#define MSIX_TABLE_BASE   (MSIX_TABLE_OFFSET+MSIX_INTERRUPT_CONTROL_OFFSET)

Definition at line 253 of file sadefs.h.

◆ MSIX_TABLE_ELEMENT_SIZE

#define MSIX_TABLE_ELEMENT_SIZE   0x10

Definition at line 251 of file sadefs.h.

◆ MSIX_TABLE_OFFSET

#define MSIX_TABLE_OFFSET   0x2000

Definition at line 250 of file sadefs.h.

◆ NO_FATAL_ERROR_VECTOR

#define NO_FATAL_ERROR_VECTOR   0xFFFFFFFF

Definition at line 187 of file sadefs.h.

◆ NUM_MEM_CHUNKS

#define NUM_MEM_CHUNKS (   Q,
  rem 
)    ((((bit32)Q % rem) > 0) ? (bit32)(Q/rem+1) : (bit32)(Q/rem))

Definition at line 259 of file sadefs.h.

◆ NUM_QUEUES_IN_MEM

#define NUM_QUEUES_IN_MEM (   Q,
  rem 
)    ((((bit32)Q % rem) > 0) ? (bit32)(Q%rem) : (bit32)(MAX_QUEUE_EACH_MEM))

Definition at line 260 of file sadefs.h.

◆ NUM_TIMERS

#define NUM_TIMERS   2

defines the maximum number of timers

Definition at line 39 of file sadefs.h.

◆ OQ_NUM_32

#define OQ_NUM_32   32

Definition at line 49 of file sadefs.h.

◆ OUTBOUND_DEPTH_SIZE

#define OUTBOUND_DEPTH_SIZE   512

Definition at line 53 of file sadefs.h.

◆ PHY_COUNT_BITS

#define PHY_COUNT_BITS   0x01f80000

Definition at line 263 of file sadefs.h.

◆ PHY_DOWN

#define PHY_DOWN   0x00000002

flag indicates phy down

Definition at line 161 of file sadefs.h.

◆ PHY_IN_PORT_MASK

#define PHY_IN_PORT_MASK   0x000000F0

Definition at line 80 of file sadefs.h.

◆ PHY_STOPPED

#define PHY_STOPPED   0x00000000

flag indicates phy stopped

Definition at line 159 of file sadefs.h.

◆ PHY_UP

#define PHY_UP   0x00000001

flag indicates phy up

Definition at line 160 of file sadefs.h.

◆ PHYID_MASK

#define PHYID_MASK   0x0000000F

Definition at line 77 of file sadefs.h.

◆ PHYID_V_MASK

#define PHYID_V_MASK   0x000000FF

Definition at line 78 of file sadefs.h.

◆ PORT_INVALIDATING

#define PORT_INVALIDATING   0x0002

Definition at line 165 of file sadefs.h.

◆ PORT_MARK_OFF

#define PORT_MARK_OFF   0xFFFFFFFF

Definition at line 186 of file sadefs.h.

◆ PORT_NORMAL

#define PORT_NORMAL   0x0000

Definition at line 164 of file sadefs.h.

◆ PORT_STATE_MASK

#define PORT_STATE_MASK   0x0000000F

Definition at line 79 of file sadefs.h.

◆ PORTID_MASK

#define PORTID_MASK   0x0000000F

Definition at line 75 of file sadefs.h.

◆ PORTID_V_MASK

#define PORTID_V_MASK   0x000000FF

Definition at line 76 of file sadefs.h.

◆ Q_SUPPORT_BITS

#define Q_SUPPORT_BITS   0x0007ffff

Definition at line 264 of file sadefs.h.

◆ REG_DUMP_FLASH

#define REG_DUMP_FLASH   0x1

Definition at line 247 of file sadefs.h.

◆ REG_DUMP_NONFLASH

#define REG_DUMP_NONFLASH   0x0

Definition at line 246 of file sadefs.h.

◆ REG_DUMP_NUM0

#define REG_DUMP_NUM0   0x0

Definition at line 244 of file sadefs.h.

◆ REG_DUMP_NUM1

#define REG_DUMP_NUM1   0x1

Definition at line 245 of file sadefs.h.

◆ REGISTER_DUMP_BUFF_SIZE

#define REGISTER_DUMP_BUFF_SIZE   0x4000

Maximum Fatal Error Register Dump Buffer Size

Definition at line 44 of file sadefs.h.

◆ SA_LL_IBQ_PROTECT

#define SA_LL_IBQ_PROTECT

Definition at line 35 of file sadefs.h.

◆ SA_USECS_PER_TICK

#define SA_USECS_PER_TICK   1000000

defines the heart beat of the LL layer 1us

Definition at line 40 of file sadefs.h.

◆ SAS_SATA_UNKNOWN_DEVICE

#define SAS_SATA_UNKNOWN_DEVICE   0xFF

SAS SATA unknown device type

Definition at line 175 of file sadefs.h.

◆ SAS_SPEC_BITS

#define SAS_SPEC_BITS   0xfe000000

Definition at line 265 of file sadefs.h.

◆ SATA_DEVICE_RESET_PROTOCOL

#define SATA_DEVICE_RESET_PROTOCOL   0x14

Definition at line 198 of file sadefs.h.

◆ SATA_DMA_READ_PROTOCOL

#define SATA_DMA_READ_PROTOCOL   0x0f

Definition at line 193 of file sadefs.h.

◆ SATA_DMA_WRITE_PROTOCOL

#define SATA_DMA_WRITE_PROTOCOL   0x12

Definition at line 196 of file sadefs.h.

◆ SATA_FIS_MASK

#define SATA_FIS_MASK   0x00000001

Definition at line 182 of file sadefs.h.

◆ SATA_FPDMA_READ_PROTOCOL

#define SATA_FPDMA_READ_PROTOCOL   0x10

Definition at line 194 of file sadefs.h.

◆ SATA_FPDMA_WRITE_PROTOCOL

#define SATA_FPDMA_WRITE_PROTOCOL   0x13

Definition at line 197 of file sadefs.h.

◆ SATA_NON_DATA_PROTOCOL

#define SATA_NON_DATA_PROTOCOL   0x0d

Definition at line 191 of file sadefs.h.

◆ SATA_PIO_READ_PROTOCOL

#define SATA_PIO_READ_PROTOCOL   0x0e

Definition at line 192 of file sadefs.h.

◆ SATA_PIO_WRITE_PROTOCOL

#define SATA_PIO_WRITE_PROTOCOL   0x11

Definition at line 195 of file sadefs.h.

◆ SATA_PROTOCOL_RSRT_ASSERT

#define SATA_PROTOCOL_RSRT_ASSERT   0x01

Definition at line 189 of file sadefs.h.

◆ SATA_PROTOCOL_RSRT_DEASSERT

#define SATA_PROTOCOL_RSRT_DEASSERT   0x02

Definition at line 190 of file sadefs.h.

◆ SHIFT0

#define SHIFT0   0

Definition at line 201 of file sadefs.h.

◆ SHIFT1

#define SHIFT1   1

Definition at line 202 of file sadefs.h.

◆ SHIFT10

#define SHIFT10   10

Definition at line 211 of file sadefs.h.

◆ SHIFT11

#define SHIFT11   11

Definition at line 212 of file sadefs.h.

◆ SHIFT12

#define SHIFT12   12

Definition at line 213 of file sadefs.h.

◆ SHIFT13

#define SHIFT13   13

Definition at line 214 of file sadefs.h.

◆ SHIFT14

#define SHIFT14   14

Definition at line 215 of file sadefs.h.

◆ SHIFT15

#define SHIFT15   15

Definition at line 216 of file sadefs.h.

◆ SHIFT16

#define SHIFT16   16

Definition at line 217 of file sadefs.h.

◆ SHIFT17

#define SHIFT17   17

Definition at line 218 of file sadefs.h.

◆ SHIFT18

#define SHIFT18   18

Definition at line 219 of file sadefs.h.

◆ SHIFT19

#define SHIFT19   19

Definition at line 220 of file sadefs.h.

◆ SHIFT2

#define SHIFT2   2

Definition at line 203 of file sadefs.h.

◆ SHIFT20

#define SHIFT20   20

Definition at line 221 of file sadefs.h.

◆ SHIFT21

#define SHIFT21   21

Definition at line 222 of file sadefs.h.

◆ SHIFT22

#define SHIFT22   22

Definition at line 223 of file sadefs.h.

◆ SHIFT23

#define SHIFT23   23

Definition at line 224 of file sadefs.h.

◆ SHIFT24

#define SHIFT24   24

Definition at line 225 of file sadefs.h.

◆ SHIFT25

#define SHIFT25   25

Definition at line 226 of file sadefs.h.

◆ SHIFT26

#define SHIFT26   26

Definition at line 227 of file sadefs.h.

◆ SHIFT27

#define SHIFT27   27

Definition at line 228 of file sadefs.h.

◆ SHIFT28

#define SHIFT28   28

Definition at line 229 of file sadefs.h.

◆ SHIFT29

#define SHIFT29   29

Definition at line 230 of file sadefs.h.

◆ SHIFT3

#define SHIFT3   3

Definition at line 204 of file sadefs.h.

◆ SHIFT30

#define SHIFT30   30

Definition at line 231 of file sadefs.h.

◆ SHIFT31

#define SHIFT31   31

Definition at line 232 of file sadefs.h.

◆ SHIFT4

#define SHIFT4   4

Definition at line 205 of file sadefs.h.

◆ SHIFT5

#define SHIFT5   5

Definition at line 206 of file sadefs.h.

◆ SHIFT6

#define SHIFT6   6

Definition at line 207 of file sadefs.h.

◆ SHIFT7

#define SHIFT7   7

Definition at line 208 of file sadefs.h.

◆ SHIFT8

#define SHIFT8   8

Definition at line 209 of file sadefs.h.

◆ SHIFT9

#define SHIFT9   9

Definition at line 210 of file sadefs.h.

◆ SM_PHYID_MASK

#define SM_PHYID_MASK   (smIS_SPC(agRoot) ? PHYID_MASK : PHYID_V_MASK )

Definition at line 82 of file sadefs.h.

◆ SM_PORTID_MASK

#define SM_PORTID_MASK   (smIS_SPC(agRoot) ? PORTID_MASK : PORTID_V_MASK )

Definition at line 83 of file sadefs.h.

◆ SMP_RESPONSE_FRAMES

#define SMP_RESPONSE_FRAMES   AGSA_MAX_VALID_PHYS

SMP Response Frame Buffer

Definition at line 42 of file sadefs.h.

◆ SMP_TO_DEFAULT

#define SMP_TO_DEFAULT   100

Definition at line 278 of file sadefs.h.

◆ SSP_SMP_DEVICE

#define SSP_SMP_DEVICE   0x01

SSP or SMP device type

Definition at line 178 of file sadefs.h.

◆ STP_DEVICE

#define STP_DEVICE   0x00

SATA device behind an expander

Definition at line 177 of file sadefs.h.

◆ SUBID_SPC

#define SUBID_SPC   0x00000000

Definition at line 289 of file sadefs.h.

◆ SUBID_SPCV

#define SUBID_SPCV   0x56781234

Definition at line 290 of file sadefs.h.

◆ TIMERLINK_MEM_INDEX

#define TIMERLINK_MEM_INDEX   (LL_FUNCTION_TRACE+1)

the index of timers memory

Definition at line 102 of file sadefs.h.

◆ TLR_MASK

#define TLR_MASK   0x00000003

Definition at line 71 of file sadefs.h.

◆ TOTAL_MPI_MEM_CHUNKS

#define TOTAL_MPI_MEM_CHUNKS   (MPI_MAX_INBOUND_QUEUES * 2) + MPI_IBQ_INDEX

Definition at line 124 of file sadefs.h.

◆ VEN_DEV_9015

#define VEN_DEV_9015   0x90150000

Definition at line 304 of file sadefs.h.

◆ VEN_DEV_9060

#define VEN_DEV_9060   0x90600000

Definition at line 305 of file sadefs.h.

◆ VEN_DEV_ADAPVEP

#define VEN_DEV_ADAPVEP   0x80890000

Definition at line 307 of file sadefs.h.

◆ VEN_DEV_ADAPVP

#define VEN_DEV_ADAPVP   0x80880000

Definition at line 308 of file sadefs.h.

◆ VEN_DEV_HIL

#define VEN_DEV_HIL   0x80810000

Definition at line 293 of file sadefs.h.

◆ VEN_DEV_SFC

#define VEN_DEV_SFC   0x80250000

Definition at line 311 of file sadefs.h.

◆ VEN_DEV_SPC

#define VEN_DEV_SPC   0x80010000

Definition at line 292 of file sadefs.h.

◆ VEN_DEV_SPC12ADP

#define VEN_DEV_SPC12ADP   0x80740000 /* 8 ports */

Definition at line 314 of file sadefs.h.

◆ VEN_DEV_SPC12ADPE

#define VEN_DEV_SPC12ADPE   0x80750000 /* 8 ports encrypt */

Definition at line 315 of file sadefs.h.

◆ VEN_DEV_SPC12ADPEP

#define VEN_DEV_SPC12ADPEP   0x80770000 /* 16 ports encrypt */

Definition at line 317 of file sadefs.h.

◆ VEN_DEV_SPC12ADPP

#define VEN_DEV_SPC12ADPP   0x80760000 /* 16 ports */

Definition at line 316 of file sadefs.h.

◆ VEN_DEV_SPC12SATA

#define VEN_DEV_SPC12SATA   0x80060000 /* SATA HBA */

Definition at line 318 of file sadefs.h.

◆ VEN_DEV_SPC12V

#define VEN_DEV_SPC12V   0x80700000

Definition at line 300 of file sadefs.h.

◆ VEN_DEV_SPC12VE

#define VEN_DEV_SPC12VE   0x80710000

Definition at line 301 of file sadefs.h.

◆ VEN_DEV_SPC12VEP

#define VEN_DEV_SPC12VEP   0x80730000

Definition at line 303 of file sadefs.h.

◆ VEN_DEV_SPC12VP

#define VEN_DEV_SPC12VP   0x80720000

Definition at line 302 of file sadefs.h.

◆ VEN_DEV_SPCV

#define VEN_DEV_SPCV   0x80080000

Definition at line 295 of file sadefs.h.

◆ VEN_DEV_SPCVE

#define VEN_DEV_SPCVE   0x80090000

Definition at line 296 of file sadefs.h.

◆ VEN_DEV_SPCVEP

#define VEN_DEV_SPCVEP   0x80190000

Definition at line 298 of file sadefs.h.

◆ VEN_DEV_SPCVP

#define VEN_DEV_SPCVP   0x80180000

Definition at line 297 of file sadefs.h.