FreeBSD kernel pms device code
samacro.h File Reference

The file defines macros used in LL sTSDK. More...

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

Go to the source code of this file.

Macros

#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 MIN macro. More...
 
#define MAX(a, b)   ((a) < (b) ? (b) : (a))
 MAX macro. More...
 
#define PHY_STATUS_SET(pPhy, value)   ((pPhy)->status = (((pPhy)->status & 0xFFFF0000) | (value)))
 PHY_STATUS_SET macro. More...
 
#define PHY_STATUS_CHECK(pPhy, value)   ( ((pPhy)->status & 0x0000FFFF) == (value) )
 PHY_STATUS_CHECK macro. More...
 
#define AGSAMEM_ELEMENT_READ(pMem, index)   (((bit8 *)(pMem)->virtPtr) + (pMem)->singleElementLength * (index))
 AGSAMEM_ELEMENT_READ macro. More...
 
#define SA_TREAT_SFC_AS_SPC
 
#define SA_SFC_AS_SPC   1
 
#define SA_SFC_AS_SPCV   0
 
#define IS_SDKDATA(agr)   (((agr)->sdkData != agNULL ) ? 1 : 0) /* returns true if sdkdata is available */
 
#define smIsCfgSpcREV_A(agr)   (8 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVA */
 
#define smIsCfgSpcREV_B(agr)   (4 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVB */
 
#define smIsCfgSpcREV_C(agr)   (5 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVC */
 
#define smIsCfgVREV_A(agr)   (4 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVA */
 
#define smIsCfgVREV_B(agr)   (5 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVB */
 
#define smIsCfgVREV_C(agr)   (6 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVC */
 
#define smIsCfg8001(agr)   (VEN_DEV_SPC == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC */
 
#define smIsCfg8081(agr)   (VEN_DEV_HIL == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000 ) ? 1 : 0) /* returns true config space read is Hialeah */
 
#define smIsCfg_V8025(agr)   (VEN_DEV_SFC == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SFC */
 
#define smIsCfg_V8008(agr)   (VEN_DEV_SPCV == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8009(agr)   (VEN_DEV_SPCVE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8018(agr)   (VEN_DEV_SPCVP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8019(agr)   (VEN_DEV_SPCVEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8088(agr)   (VEN_DEV_ADAPVP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8089(agr)   (VEN_DEV_ADAPVEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */
 
#define smIsCfg_V8070(agr)   (VEN_DEV_SPC12V == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_V8071(agr)   (VEN_DEV_SPC12VE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_V8072(agr)   (VEN_DEV_SPC12VP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_V8073(agr)   (VEN_DEV_SPC12VEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_V8074(agr)   (VEN_DEV_SPC12ADP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */
 
#define smIsCfg_V8075(agr)   (VEN_DEV_SPC12ADPE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */
 
#define smIsCfg_V8076(agr)   (VEN_DEV_SPC12ADPP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */
 
#define smIsCfg_V8077(agr)   (VEN_DEV_SPC12ADPEP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */
 
#define smIsCfg_V8006(agr)   (VEN_DEV_SPC12SATA == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */
 
#define smIsCfg_V9015(agr)   (VEN_DEV_9015 == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_V9060(agr)   (VEN_DEV_9060 == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */
 
#define smIsCfg_SPC_ANY(agr)
 
#define smIS_SPCV8008(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCV ) ? 1 : 0) : smIsCfg_V8008((agr)))
 
#define smIS_SPCV8009(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVE) ? 1 : 0) : smIsCfg_V8009((agr)))
 
#define smIS_SPCV8018(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVP) ? 1 : 0) : smIsCfg_V8018((agr)))
 
#define smIS_SPCV8019(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVEP) ? 1 : 0) : smIsCfg_V8019((agr)))
 
#define smIS_ADAP8088(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_ADAPVP) ? 1 : 0) : smIsCfg_V8088((agr)))
 
#define smIS_ADAP8089(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_ADAPVEP)? 1 : 0): smIsCfg_V8089((agr)))
 
#define smIS_SPCV8070(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12V ) ? 1 : 0) : smIsCfg_V8070((agr)))
 
#define smIS_SPCV8071(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VE) ? 1 : 0) : smIsCfg_V8071((agr)))
 
#define smIS_SPCV8072(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VP) ? 1 : 0) : smIsCfg_V8072((agr)))
 
#define smIS_SPCV8073(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VEP)? 1 : 0) : smIsCfg_V8073((agr)))
 
#define smIS_SPCV8074(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADP ) ? 1 : 0) : smIsCfg_V8074((agr)))
 
#define smIS_SPCV8075(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPE) ? 1 : 0) : smIsCfg_V8075((agr)))
 
#define smIS_SPCV8076(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPP) ? 1 : 0) : smIsCfg_V8076((agr)))
 
#define smIS_SPCV8077(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPEP)? 1 : 0) : smIsCfg_V8077((agr)))
 
#define smIS_SPCV8006(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12SATA) ? 1 : 0) : smIsCfg_V8006((agr)))
 
#define smIS_SPCV9015(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_9015) ? 1 : 0) : smIsCfg_V9015((agr)))
 
#define smIS_SPCV9060(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_9060) ? 1 : 0) : smIsCfg_V9060((agr)))
 
#define smIS_SPCV8025(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SFC ) ? 1 : 0) : smIsCfg_V8025((agr)))
 
#define smIS_SFC(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SFC ) ? 1 : 0) : smIsCfg_V8025((agr)))
 
#define smIS_spc8001(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC ) ? 1 : 0) : smIsCfg8001((agr)))
 
#define smIS_spc8081(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_HIL ) ? 1 : 0) : smIsCfg8081((agr)))
 
#define smIS_SFC_AS_SPC(agr)   ((smIS_SFC((agr)) == 1) ? SA_SFC_AS_SPC : 0 )
 
#define smIS_SFC_AS_V(agr)   ((smIS_SFC((agr)) == 1 )? SA_SFC_AS_SPCV : 0 )
 
#define smIS64bInt(agr)   (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->Use64bit) ? 1 : 0) : smIS_SPCV(agr))
 
#define WHATTABLE(agr)
 
#define SA_DBG0(format)
 
#define SA_DBG1(format)
 
#define SA_DBG2(format)
 
#define SA_DBG3(format)
 
#define SA_DBG4(format)
 
#define SA_DBG5(format)
 
#define SA_DBG6(format)
 
#define SA_ASSERT   OS_ASSERT
 
#define SA_PRINTBUF(lDebugLevel, lWidth, pHeader, pBuffer, lLength)
 
#define DBG_DUMP_SSPSTART_CMDIU(agDevHandle, agRequestType, agRequestBody)
 
#define MPI_DEBUG_TRACE(queue, pici, ib, iomb, count)
 
#define WAIT_SECONDS(x)   ((x) * 1000 * 1000 )
 
#define ONE_HUNDRED_MILLISECS   (100 * 1000) /* 100,000 microseconds */
 
#define WAIT_INCREMENT_DEFAULT   1000
 
#define WAIT_INCREMENT   (IS_SDKDATA(agRoot) ? ( ((agsaLLRoot_t *)(agRoot->sdkData))->minStallusecs ) : WAIT_INCREMENT_DEFAULT )
 
#define MAKE_MODULO(a, b)   (((a) % (b)) ? ((a) - ((a) % (b))) : (a))
 
#define HDA_STEP_2   1
 
#define HDA_STEP_3   1
 
#define HDA_STEP_4   1
 
#define HDA_STEP_5   1
 
#define HDA_STEP_6   1
 
#define HDA_STEP_7   1
 
#define HDA_STEP_8   1
 

Typedefs

typedef enum siPrintType_e siPrintType
 

Enumerations

enum  siPrintType_e { SA_8 , SA_16 , SA_32 }
 

Detailed Description

The file defines macros used in LL sTSDK.

Definition in file samacro.h.

Macro Definition Documentation

◆ AGSAMEM_ELEMENT_READ

#define AGSAMEM_ELEMENT_READ (   pMem,
  index 
)    (((bit8 *)(pMem)->virtPtr) + (pMem)->singleElementLength * (index))

AGSAMEM_ELEMENT_READ macro.

use to read an element of a memory array

Definition at line 84 of file samacro.h.

◆ DBG_DUMP_SSPSTART_CMDIU

#define DBG_DUMP_SSPSTART_CMDIU (   agDevHandle,
  agRequestType,
  agRequestBody 
)

Definition at line 230 of file samacro.h.

◆ HDA_STEP_2

#define HDA_STEP_2   1

Definition at line 293 of file samacro.h.

◆ HDA_STEP_3

#define HDA_STEP_3   1

Definition at line 294 of file samacro.h.

◆ HDA_STEP_4

#define HDA_STEP_4   1

Definition at line 295 of file samacro.h.

◆ HDA_STEP_5

#define HDA_STEP_5   1

Definition at line 296 of file samacro.h.

◆ HDA_STEP_6

#define HDA_STEP_6   1

Definition at line 297 of file samacro.h.

◆ HDA_STEP_7

#define HDA_STEP_7   1

Definition at line 298 of file samacro.h.

◆ HDA_STEP_8

#define HDA_STEP_8   1

Definition at line 299 of file samacro.h.

◆ IS_SDKDATA

#define IS_SDKDATA (   agr)    (((agr)->sdkData != agNULL ) ? 1 : 0) /* returns true if sdkdata is available */

Definition at line 100 of file samacro.h.

◆ MAKE_MODULO

#define MAKE_MODULO (   a,
 
)    (((a) % (b)) ? ((a) - ((a) % (b))) : (a))

Definition at line 290 of file samacro.h.

◆ MAX

#define MAX (   a,
 
)    ((a) < (b) ? (b) : (a))

MAX macro.

use to find MAX of two values

Definition at line 55 of file samacro.h.

◆ MIN

#define MIN (   a,
 
)    ((a) < (b) ? (a) : (b))

MIN macro.

use to find MIN of two values

Definition at line 46 of file samacro.h.

◆ MPI_DEBUG_TRACE

#define MPI_DEBUG_TRACE (   queue,
  pici,
  ib,
  iomb,
  count 
)

Definition at line 243 of file samacro.h.

◆ ONE_HUNDRED_MILLISECS

#define ONE_HUNDRED_MILLISECS   (100 * 1000) /* 100,000 microseconds */

Definition at line 283 of file samacro.h.

◆ PHY_STATUS_CHECK

#define PHY_STATUS_CHECK (   pPhy,
  value 
)    ( ((pPhy)->status & 0x0000FFFF) == (value) )

PHY_STATUS_CHECK macro.

use to check phy status

Definition at line 73 of file samacro.h.

◆ PHY_STATUS_SET

#define PHY_STATUS_SET (   pPhy,
  value 
)    ((pPhy)->status = (((pPhy)->status & 0xFFFF0000) | (value)))

PHY_STATUS_SET macro.

use to set phy status

Definition at line 66 of file samacro.h.

◆ SA_ASSERT

#define SA_ASSERT   OS_ASSERT

Definition at line 209 of file samacro.h.

◆ SA_DBG0

#define SA_DBG0 (   format)

Definition at line 199 of file samacro.h.

◆ SA_DBG1

#define SA_DBG1 (   format)

Definition at line 200 of file samacro.h.

◆ SA_DBG2

#define SA_DBG2 (   format)

Definition at line 201 of file samacro.h.

◆ SA_DBG3

#define SA_DBG3 (   format)

Definition at line 202 of file samacro.h.

◆ SA_DBG4

#define SA_DBG4 (   format)

Definition at line 203 of file samacro.h.

◆ SA_DBG5

#define SA_DBG5 (   format)

Definition at line 204 of file samacro.h.

◆ SA_DBG6

#define SA_DBG6 (   format)

Definition at line 205 of file samacro.h.

◆ SA_PRINTBUF

#define SA_PRINTBUF (   lDebugLevel,
  lWidth,
  pHeader,
  pBuffer,
  lLength 
)

Definition at line 221 of file samacro.h.

◆ SA_SFC_AS_SPC

#define SA_SFC_AS_SPC   1

Definition at line 93 of file samacro.h.

◆ SA_SFC_AS_SPCV

#define SA_SFC_AS_SPCV   0

Definition at line 94 of file samacro.h.

◆ SA_TREAT_SFC_AS_SPC

#define SA_TREAT_SFC_AS_SPC

Definition at line 90 of file samacro.h.

◆ smIS64bInt

#define smIS64bInt (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->Use64bit) ? 1 : 0) : smIS_SPCV(agr))

Definition at line 173 of file samacro.h.

◆ smIS_ADAP8088

#define smIS_ADAP8088 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_ADAPVP) ? 1 : 0) : smIsCfg_V8088((agr)))

Definition at line 144 of file samacro.h.

◆ smIS_ADAP8089

#define smIS_ADAP8089 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_ADAPVEP)? 1 : 0): smIsCfg_V8089((agr)))

Definition at line 145 of file samacro.h.

◆ smIS_SFC

#define smIS_SFC (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SFC ) ? 1 : 0) : smIsCfg_V8025((agr)))

Definition at line 162 of file samacro.h.

◆ smIS_SFC_AS_SPC

#define smIS_SFC_AS_SPC (   agr)    ((smIS_SFC((agr)) == 1) ? SA_SFC_AS_SPC : 0 )

Definition at line 168 of file samacro.h.

◆ smIS_SFC_AS_V

#define smIS_SFC_AS_V (   agr)    ((smIS_SFC((agr)) == 1 )? SA_SFC_AS_SPCV : 0 )

Definition at line 170 of file samacro.h.

◆ smIS_spc8001

#define smIS_spc8001 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC ) ? 1 : 0) : smIsCfg8001((agr)))

Definition at line 163 of file samacro.h.

◆ smIS_spc8081

#define smIS_spc8081 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_HIL ) ? 1 : 0) : smIsCfg8081((agr)))

Definition at line 164 of file samacro.h.

◆ smIS_SPCV8006

#define smIS_SPCV8006 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12SATA) ? 1 : 0) : smIsCfg_V8006((agr)))

Definition at line 156 of file samacro.h.

◆ smIS_SPCV8008

#define smIS_SPCV8008 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCV ) ? 1 : 0) : smIsCfg_V8008((agr)))

Definition at line 140 of file samacro.h.

◆ smIS_SPCV8009

#define smIS_SPCV8009 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVE) ? 1 : 0) : smIsCfg_V8009((agr)))

Definition at line 141 of file samacro.h.

◆ smIS_SPCV8018

#define smIS_SPCV8018 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVP) ? 1 : 0) : smIsCfg_V8018((agr)))

Definition at line 142 of file samacro.h.

◆ smIS_SPCV8019

#define smIS_SPCV8019 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPCVEP) ? 1 : 0) : smIsCfg_V8019((agr)))

Definition at line 143 of file samacro.h.

◆ smIS_SPCV8025

#define smIS_SPCV8025 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SFC ) ? 1 : 0) : smIsCfg_V8025((agr)))

Definition at line 160 of file samacro.h.

◆ smIS_SPCV8070

#define smIS_SPCV8070 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12V ) ? 1 : 0) : smIsCfg_V8070((agr)))

Definition at line 147 of file samacro.h.

◆ smIS_SPCV8071

#define smIS_SPCV8071 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VE) ? 1 : 0) : smIsCfg_V8071((agr)))

Definition at line 148 of file samacro.h.

◆ smIS_SPCV8072

#define smIS_SPCV8072 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VP) ? 1 : 0) : smIsCfg_V8072((agr)))

Definition at line 149 of file samacro.h.

◆ smIS_SPCV8073

#define smIS_SPCV8073 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12VEP)? 1 : 0) : smIsCfg_V8073((agr)))

Definition at line 150 of file samacro.h.

◆ smIS_SPCV8074

#define smIS_SPCV8074 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADP ) ? 1 : 0) : smIsCfg_V8074((agr)))

Definition at line 152 of file samacro.h.

◆ smIS_SPCV8075

#define smIS_SPCV8075 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPE) ? 1 : 0) : smIsCfg_V8075((agr)))

Definition at line 153 of file samacro.h.

◆ smIS_SPCV8076

#define smIS_SPCV8076 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPP) ? 1 : 0) : smIsCfg_V8076((agr)))

Definition at line 154 of file samacro.h.

◆ smIS_SPCV8077

#define smIS_SPCV8077 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_SPC12ADPEP)? 1 : 0) : smIsCfg_V8077((agr)))

Definition at line 155 of file samacro.h.

◆ smIS_SPCV9015

#define smIS_SPCV9015 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_9015) ? 1 : 0) : smIsCfg_V9015((agr)))

Definition at line 157 of file samacro.h.

◆ smIS_SPCV9060

#define smIS_SPCV9060 (   agr)    (IS_SDKDATA((agr)) ? ( (((agsaLLRoot_t *)((agr)->sdkData))->ChipId == VEN_DEV_9060) ? 1 : 0) : smIsCfg_V9060((agr)))

Definition at line 158 of file samacro.h.

◆ smIsCfg8001

#define smIsCfg8001 (   agr)    (VEN_DEV_SPC == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC */

Definition at line 110 of file samacro.h.

◆ smIsCfg8081

#define smIsCfg8081 (   agr)    (VEN_DEV_HIL == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000 ) ? 1 : 0) /* returns true config space read is Hialeah */

Definition at line 111 of file samacro.h.

◆ smIsCfg_SPC_ANY

#define smIsCfg_SPC_ANY (   agr)
Value:
((smIsCfg8001((agr)) == 1) ? 1 : \
(smIsCfg8081((agr)) == 1) ? 1 : \
(smIsCfg_V8025((agr)) == 1) ? SA_SFC_AS_SPC : 0)
#define SA_SFC_AS_SPC
Definition: samacro.h:93
#define smIsCfg_V8025(agr)
Definition: samacro.h:113
#define smIsCfg8001(agr)
Definition: samacro.h:110
#define smIsCfg8081(agr)
Definition: samacro.h:111

Definition at line 136 of file samacro.h.

◆ smIsCfg_V8006

#define smIsCfg_V8006 (   agr)    (VEN_DEV_SPC12SATA == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */

Definition at line 132 of file samacro.h.

◆ smIsCfg_V8008

#define smIsCfg_V8008 (   agr)    (VEN_DEV_SPCV == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 115 of file samacro.h.

◆ smIsCfg_V8009

#define smIsCfg_V8009 (   agr)    (VEN_DEV_SPCVE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 116 of file samacro.h.

◆ smIsCfg_V8018

#define smIsCfg_V8018 (   agr)    (VEN_DEV_SPCVP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 117 of file samacro.h.

◆ smIsCfg_V8019

#define smIsCfg_V8019 (   agr)    (VEN_DEV_SPCVEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 118 of file samacro.h.

◆ smIsCfg_V8025

#define smIsCfg_V8025 (   agr)    (VEN_DEV_SFC == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SFC */

Definition at line 113 of file samacro.h.

◆ smIsCfg_V8070

#define smIsCfg_V8070 (   agr)    (VEN_DEV_SPC12V == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 123 of file samacro.h.

◆ smIsCfg_V8071

#define smIsCfg_V8071 (   agr)    (VEN_DEV_SPC12VE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 124 of file samacro.h.

◆ smIsCfg_V8072

#define smIsCfg_V8072 (   agr)    (VEN_DEV_SPC12VP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 125 of file samacro.h.

◆ smIsCfg_V8073

#define smIsCfg_V8073 (   agr)    (VEN_DEV_SPC12VEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 126 of file samacro.h.

◆ smIsCfg_V8074

#define smIsCfg_V8074 (   agr)    (VEN_DEV_SPC12ADP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */

Definition at line 128 of file samacro.h.

◆ smIsCfg_V8075

#define smIsCfg_V8075 (   agr)    (VEN_DEV_SPC12ADPE == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */

Definition at line 129 of file samacro.h.

◆ smIsCfg_V8076

#define smIsCfg_V8076 (   agr)    (VEN_DEV_SPC12ADPP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */

Definition at line 130 of file samacro.h.

◆ smIsCfg_V8077

#define smIsCfg_V8077 (   agr)    (VEN_DEV_SPC12ADPEP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is Adaptec SPC12v */

Definition at line 131 of file samacro.h.

◆ smIsCfg_V8088

#define smIsCfg_V8088 (   agr)    (VEN_DEV_ADAPVP == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 120 of file samacro.h.

◆ smIsCfg_V8089

#define smIsCfg_V8089 (   agr)    (VEN_DEV_ADAPVEP== (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPCv */

Definition at line 121 of file samacro.h.

◆ smIsCfg_V9015

#define smIsCfg_V9015 (   agr)    (VEN_DEV_9015 == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 133 of file samacro.h.

◆ smIsCfg_V9060

#define smIsCfg_V9060 (   agr)    (VEN_DEV_9060 == (ossaHwRegReadConfig32((agr),0 ) & 0xFFFF0000) ? 1 : 0) /* returns true config space read is SPC12v */

Definition at line 134 of file samacro.h.

◆ smIsCfgSpcREV_A

#define smIsCfgSpcREV_A (   agr)    (8 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVA */

Definition at line 102 of file samacro.h.

◆ smIsCfgSpcREV_B

#define smIsCfgSpcREV_B (   agr)    (4 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVB */

Definition at line 103 of file samacro.h.

◆ smIsCfgSpcREV_C

#define smIsCfgSpcREV_C (   agr)    (5 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVC */

Definition at line 104 of file samacro.h.

◆ smIsCfgVREV_A

#define smIsCfgVREV_A (   agr)    (4 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVA */

Definition at line 106 of file samacro.h.

◆ smIsCfgVREV_B

#define smIsCfgVREV_B (   agr)    (5 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVB */

Definition at line 107 of file samacro.h.

◆ smIsCfgVREV_C

#define smIsCfgVREV_C (   agr)    (6 ==( ossaHwRegReadConfig32((agr), 8 ) & 0xF) ? 1 : 0) /* returns true config space read is REVC */

Definition at line 108 of file samacro.h.

◆ WAIT_INCREMENT

#define WAIT_INCREMENT   (IS_SDKDATA(agRoot) ? ( ((agsaLLRoot_t *)(agRoot->sdkData))->minStallusecs ) : WAIT_INCREMENT_DEFAULT )

Definition at line 286 of file samacro.h.

◆ WAIT_INCREMENT_DEFAULT

#define WAIT_INCREMENT_DEFAULT   1000

Definition at line 285 of file samacro.h.

◆ WAIT_SECONDS

#define WAIT_SECONDS (   x)    ((x) * 1000 * 1000 )

Definition at line 282 of file samacro.h.

◆ WHATTABLE

#define WHATTABLE (   agr)
Value:
( \
IS_SDKDATA((agr)) ? \
(smIS_SPC((agr)) ? &SPCTable[0] : (smIS_SPCV((agr)) ? &SPC_V_Table[0] : agNULL ) ) \
: \
(smIsCfg_SPC_ANY((agr)) ? &SPCTable[0] : (smIsCfg_V_ANY((agr)) ? &SPC_V_Table[0] : agNULL ) ) \
) \
#define agNULL
Definition: ostypes.h:151
agsaBarOffset_t SPCTable[]
Definition: sahw.c:2717
agsaBarOffset_t SPC_V_Table[]
Definition: sahw.c:2736
#define smIsCfg_SPC_ANY(agr)
Definition: samacro.h:136
GLOBAL bit32 smIsCfg_V_ANY(agsaRoot_t *agRoot)
Definition: sautil.c:412
GLOBAL bit32 smIS_SPC(agsaRoot_t *agRoot)
Definition: sautil.c:437
GLOBAL bit32 smIS_SPCV(agsaRoot_t *agRoot)
Definition: sautil.c:502

Definition at line 175 of file samacro.h.

Typedef Documentation

◆ siPrintType

typedef enum siPrintType_e siPrintType

Enumeration Type Documentation

◆ siPrintType_e

Enumerator
SA_8 
SA_16 
SA_32 

Definition at line 211 of file samacro.h.