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

Go to the source code of this file.

Data Structures

struct  _ag_card_id
 
struct  _ag_resource_info
 
struct  _ag_dma_addr
 
struct  _CardInfo
 
struct  _ag_card_info
 
struct  _ag_param_value
 
struct  _ag_param_key
 
struct  _ag_portal_info
 
struct  _LINK_NODE
 
struct  _LINK_LIST
 

Macros

#define LINUX_DMA_MEM_MAX   0x1ffe0 /* 128k - 32, real 128k - 24 */
 
#define DEK_MAX_TABLE_ITEMS   DEK_MAX_TABLE_ENTRIES
 
#define IP_ADDR_CHAR_LEN   16
 
#define MSEC_PER_TICK   (1000/hz) /* milisecond per tick */
 
#define USEC_PER_TICK   (1000000/hz) /* microsecond per tick */
 
#define AGTIAPI_64BIT_ALIGN   8 /* 64 bit environment alignment */
 
#define AGTIAPI_MAX_CARDS   4 /* card supported up to system limit */
 
#define AGTIAPI_TOO_MANY_CARDS   -1 /* beyond defined max support */
 
#define AGTIAPI_MAX_PORTALS   16 /* max portal per card */
 
#define AGTIAPI_OPTION_ON   1 /* adjustable parameter available */
 
#define AGTIAPI_KEY_MAX   64 /* max number of keys */
 
#define AGTIAPI_STRING_MAX   512 /* max length for string */
 
#define AGTIAPI_PARAM_MAX   256 /* max number of parameters */
 
#define AGTIAPI_DMA_MEM_LIST_MAX   1024 /* max number of DMA memory list */
 
#define AGTIAPI_CACHE_MEM_LIST_MAX   1024 /* max number of CACHE memory list */
 
#define AGTIAPI_DYNAMIC_MAX   4096 /* max unreleased dynamic memory */
 
#define AGTIAPI_LOOP_MAX   4 /* max loop for init process */
 
#define AGTIAPI_MAX_NAME   70
 
#define AGTIAPI_MIN_NAME   10
 
#define AGTIAPI_MAX_ID   8
 
#define AGTIAPI_INIT_TIME   0x00000001
 
#define AGTIAPI_SOFT_RESET   0x00000002
 
#define AGTIAPI_HAD_RESET   0x00000004
 
#define AGTIAPI_DISC_DONE   0x00000008
 
#define AGTIAPI_INSTALLED   0x00000010
 
#define AGTIAPI_RESET   0x00000020
 
#define AGTIAPI_FLAG_UP   0x00000040
 
#define AGTIAPI_CB_DONE   0x00000080
 
#define AGTIAPI_DISC_COMPLETE   0x00000100
 
#define AGTIAPI_IOREGION_REQUESTED   0x00000200
 
#define AGTIAPI_IRQ_REQUESTED   0x00000400
 
#define AGTIAPI_SCSI_REGISTERED   0x00000800
 
#define AGTIAPI_NAME_SERVER_UP   0x00001000
 
#define AGTIAPI_PORT_INITIALIZED   0x00002000
 
#define AGTIAPI_PORT_LINK_UP   0x00004000
 
#define AGTIAPI_LGN_LINK_UP   0x00008000
 
#define AGTIAPI_PORT_PANIC   0x00010000
 
#define AGTIAPI_RESET_SUCCESS   0x00020000
 
#define AGTIAPI_PORT_START   0x00040000
 
#define AGTIAPI_PORT_STOPPED   0x00080000
 
#define AGTIAPI_PORT_SHUTDOWN   0x00100000
 
#define AGTIAPI_IN_USE   0x00200000
 
#define AGTIAPI_SYS_INTR_ON   0x00400000
 
#define AGTIAPI_PORT_DISC_READY   0x00800000
 
#define AGTIAPI_SIG_DOWN   0x01000000
 
#define AGTIAPI_SIG_UP   0x02000000
 
#define AGTIAPI_TASK   0x04000000
 
#define AGTIAPI_INITIATOR   0x08000000
 
#define AGTIAPI_TARGET   0x10000000
 
#define AGTIAPI_TIMER_ON   0x20000000
 
#define AGTIAPI_SHUT_DOWN   0x40000000
 
#define AGTIAPI_RESET_ALL   0xFFFFFFFF
 
#define PCI_VENDOR_ID_HP   0x103c
 
#define PCI_VENDOR_ID_PMC_SIERRA   0x11F8
 
#define PCI_VENDOR_ID_AGILENT   0x15bc
 
#define PCI_VENDOR_ID_CYCLONE   0x113C
 
#define PCI_VENDOR_ID_SPCV_FPGA   0x1855
 
#define PCI_VENDOR_ID_HIALEAH   0x9005
 
#define PCI_DEVICE_ID_HP_TS   0x102a
 
#define PCI_DEVICE_ID_HP_TL   0x1028
 
#define PCI_DEVICE_ID_HP_XL2   0x1029
 
#define PCI_DEVICE_ID_AG_DX2   0x0100
 
#define PCI_DEVICE_ID_AG_DX2PLUS   0x0101
 
#define PCI_DEVICE_ID_AG_QX2   0x0102
 
#define PCI_DEVICE_ID_AG_QX4   0x0103
 
#define PCI_DEVICE_ID_AG_QE4   0x1200
 
#define PCI_DEVICE_ID_AG_DE4   0x1203
 
#define PCI_DEVICE_ID_AG_XL10   0x0104
 
#define PCI_DEVICE_ID_AG_DX4PLUS   0x0105
 
#define PCI_DEVICE_ID_AG_DIXL   0x0110
 
#define PCI_DEVICE_ID_AG_IDX1   0x050A
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPC   0x8001
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCV   0x8008
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE   0x8009
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCVPLUS   0x8018
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE_16   0x8019
 
#define PCI_DEVICE_ID_SPCV_FPGA   0xabcd
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCV12G   0x8070
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G   0x8071
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCV12G_16   0x8072
 
#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G_16   0x8073
 
#define PCI_DEVICE_ID_HIALEAH_HBA_SPC   0x8081
 
#define PCI_DEVICE_ID_HIALEAH_RAID_SPC   0x8091
 
#define PCI_DEVICE_ID_HIALEAH_HBA_SPCV   0x8088
 
#define PCI_DEVICE_ID_HIALEAH_RAID_SPCV   0x8098
 
#define PCI_DEVICE_ID_HIALEAH_HBA_SPCVE   0x8089
 
#define PCI_DEVICE_ID_HIALEAH_RAID_SPCVE   0x8099
 
#define PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCV   0x8074
 
#define PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCVE   0x8075
 
#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV   0x8076
 
#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCVE   0x8077
 
#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV_SATA   0x8006
 
#define PCI_SUB_VENDOR_ID_HP   PCI_VENDOR_ID_HP
 
#define PCI_SUB_VENDOR_ID_AG   PCI_VENDOR_ID_AGILENT
 
#define PCI_SUB_VENDOR_ID_MASK   0xFFFF
 
#define PCI_SUB_SYSTEM_ID_AG   0x0001
 
#define PCI_BASE_MEM_MASK   (~0x0F)
 
#define PCI_DEVICE_ID_CYCLONE   0xB555
 
#define PCI_ENABLE_VALUE   0x0157
 
#define IOCTL_MN_GET_CARD_INFO   0x11
 
#define _08B   8
 
#define _16B   16
 
#define _24B   24
 
#define _32B   32
 
#define _64B   64
 
#define _128B   128
 
#define _256B   256
 
#define _512B   512
 
#define _1K   1024
 
#define _2K   2048
 
#define _4K   4096
 
#define _128K   (128*(_1K))
 
#define PCI_BASE_ADDRESS_0   PCIR_BAR(0)
 
#define PCI_BASE_ADDRESS_1   PCIR_BAR(1)
 
#define PCI_BASE_ADDRESS_2   PCIR_BAR(2)
 
#define PCI_BASE_ADDRESS_3   PCIR_BAR(3)
 
#define PCI_BASE_ADDRESS_4   PCIR_BAR(4)
 
#define MAX_MSIX_NUM_VECTOR   16
 
#define MAX_MSIX_NUM_DPC   64
 
#define MAX_MSIX_NUM_ISR   64
 
#define MAP_TABLE_ENTRY(pC, c, d, l)
 
#define AGTIAPI_FLOW(format, a...)
 
#define AGTIAPI_PRINTK(format, a...)
 
#define AGTIAPI_INIT(format, a...)
 
#define AGTIAPI_INIT_MDELAY(dly)
 
#define AGTIAPI_INIT2(format, a...)
 
#define AGTIAPI_INITMEM(format, a...)
 
#define AGTIAPI_IO(format, a...)
 
#define AGTIAPI_INIT_DELAY(delay_time)
 
#define AGTIAPI_KDB()
 
#define LOW_32_BITS(addr)   (U32)addr
 
#define HIGH_32_BITS(addr)   0
 
#define AG_SWAP16(data)   (((data<<8) & 0xFF00) | (data>>8))
 
#define AG_SWAP24(data)
 
#define AG_SWAP32(data)
 
#define AG_PCI_DEV_INFO(pdev)
 
#define COUNT(arr)   (sizeof(arr) / sizeof(arr[0]))
 
#define PORTAL_CONTEXT_TO_PORTALDATA(pPortalContext)    ((ag_portal_data_t *)(((tiPortalContext_t *)pPortalContext)->osData))
 
#define PORTAL_STATUS(pPortalData)   (pPortalData->portalInfo.portStatus)
 
#define TIROOT_TO_CARD(ptiRoot)   ((struct agtiapi_softc *)(ptiRoot->osData))
 
#define TIROOT_TO_CARDINFO(ptiRoot)   (TIROOT_TO_CARD(ptiRoot)->pCardInfo)
 
#define TIROOT_TO_PCIDEV(ptiRoot)   (TIROOT_TO_CARD(ptiRoot)->my_dev)
 
#define Is_ADP7H(pmsc)
 
#define Is_ADP8H(pmsc)
 
#define __cacheline_aligned   __attribute__((__aligned__(CACHE_LINE_SIZE)))
 
#define comListInitialize(pList)
 
#define comLinkInitialize(pLink)
 
#define comListAdd(pList, pLink)
 
#define comListInsert(pList, pLink, pNew)
 
#define comListRemove(pList, pLink)
 
#define comListGetHead(pList)   comListGetNext(pList,(pList)->pHead)
 
#define comListGetTail(pList)   comListGetPrev((pList), (pList)->pHead)
 
#define comListGetCount(pList)   ((pList)->Count)
 
#define comListGetNext(pList, pLink)
 
#define comListGetPrev(pList, pLink)
 
#define AGT_INTERRUPT   IRQF_DISABLED
 
#define AGT_SAMPLE_RANDOM   IRQF_SAMPLE_RANDOM
 
#define AGT_SHIRQ   IRQF_SHARED
 
#define AGT_PROBEIRQ   IRQF_PROBE_SHARED
 
#define AGT_PERCPU   IRQF_PERCPU
 

Typedefs

typedef struct _ag_card_id ag_card_id_t
 
typedef struct _ag_resource_info ag_resource_info_t
 
typedef struct _ag_dma_addr ag_dma_addr_t
 
typedef struct _CardInfo CardInfo_t
 
typedef struct _ag_card_info ag_card_info_t
 
typedef struct _ag_param_value ag_value_t
 
typedef struct _ag_param_key ag_key_t
 
typedef struct _ag_portal_info ag_portal_info_t
 
typedef struct _LINK_NODE LINK_NODE
 
typedef struct _LINK_NODE __cacheline_aligned
 
typedef struct _LINK_LIST LINK_LIST
 

Variables

ag_card_id_t ag_card_type []
 
static char const *const ag_card_names []
 

Macro Definition Documentation

◆ _08B

#define _08B   8

Definition at line 203 of file lxcommon.h.

◆ _128B

#define _128B   128

Definition at line 208 of file lxcommon.h.

◆ _128K

#define _128K   (128*(_1K))

Definition at line 215 of file lxcommon.h.

◆ _16B

#define _16B   16

Definition at line 204 of file lxcommon.h.

◆ _1K

#define _1K   1024

Definition at line 212 of file lxcommon.h.

◆ _24B

#define _24B   24

Definition at line 205 of file lxcommon.h.

◆ _256B

#define _256B   256

Definition at line 209 of file lxcommon.h.

◆ _2K

#define _2K   2048

Definition at line 213 of file lxcommon.h.

◆ _32B

#define _32B   32

Definition at line 206 of file lxcommon.h.

◆ _4K

#define _4K   4096

Definition at line 214 of file lxcommon.h.

◆ _512B

#define _512B   512

Definition at line 210 of file lxcommon.h.

◆ _64B

#define _64B   64

Definition at line 207 of file lxcommon.h.

◆ __cacheline_aligned

typedef struct _LINK_LIST __cacheline_aligned   __attribute__((__aligned__(CACHE_LINE_SIZE)))

Definition at line 613 of file lxcommon.h.

◆ AG_PCI_DEV_INFO

#define AG_PCI_DEV_INFO (   pdev)
Value:
( \
AGTIAPI_PRINTK("vendor id 0x%x device id 0x%x, slot %d, function %d\n", \
pdev->vendor, pdev->device, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)) \
)

Definition at line 581 of file lxcommon.h.

◆ AG_SWAP16

#define AG_SWAP16 (   data)    (((data<<8) & 0xFF00) | (data>>8))

Definition at line 575 of file lxcommon.h.

◆ AG_SWAP24

#define AG_SWAP24 (   data)
Value:
(((data<<16) & 0xFF0000) | \
((data>>16) & 0xFF) | (data & 0xFF00))

Definition at line 576 of file lxcommon.h.

◆ AG_SWAP32

#define AG_SWAP32 (   data)
Value:
((data<<24) | ((data<<8) & 0xFF0000) | \
((data>>8) & 0xFF00) | (data>>24))

Definition at line 578 of file lxcommon.h.

◆ AGT_INTERRUPT

#define AGT_INTERRUPT   IRQF_DISABLED

Definition at line 878 of file lxcommon.h.

◆ AGT_PERCPU

#define AGT_PERCPU   IRQF_PERCPU

Definition at line 882 of file lxcommon.h.

◆ AGT_PROBEIRQ

#define AGT_PROBEIRQ   IRQF_PROBE_SHARED

Definition at line 881 of file lxcommon.h.

◆ AGT_SAMPLE_RANDOM

#define AGT_SAMPLE_RANDOM   IRQF_SAMPLE_RANDOM

Definition at line 879 of file lxcommon.h.

◆ AGT_SHIRQ

#define AGT_SHIRQ   IRQF_SHARED

Definition at line 880 of file lxcommon.h.

◆ AGTIAPI_64BIT_ALIGN

#define AGTIAPI_64BIT_ALIGN   8 /* 64 bit environment alignment */

Definition at line 53 of file lxcommon.h.

◆ AGTIAPI_CACHE_MEM_LIST_MAX

#define AGTIAPI_CACHE_MEM_LIST_MAX   1024 /* max number of CACHE memory list */

Definition at line 75 of file lxcommon.h.

◆ AGTIAPI_CB_DONE

#define AGTIAPI_CB_DONE   0x00000080

Definition at line 96 of file lxcommon.h.

◆ AGTIAPI_DISC_COMPLETE

#define AGTIAPI_DISC_COMPLETE   0x00000100

Definition at line 97 of file lxcommon.h.

◆ AGTIAPI_DISC_DONE

#define AGTIAPI_DISC_DONE   0x00000008

Definition at line 92 of file lxcommon.h.

◆ AGTIAPI_DMA_MEM_LIST_MAX

#define AGTIAPI_DMA_MEM_LIST_MAX   1024 /* max number of DMA memory list */

Definition at line 74 of file lxcommon.h.

◆ AGTIAPI_DYNAMIC_MAX

#define AGTIAPI_DYNAMIC_MAX   4096 /* max unreleased dynamic memory */

Definition at line 78 of file lxcommon.h.

◆ AGTIAPI_FLAG_UP

#define AGTIAPI_FLAG_UP   0x00000040

Definition at line 95 of file lxcommon.h.

◆ AGTIAPI_FLOW

#define AGTIAPI_FLOW (   format,
  a... 
)

Definition at line 511 of file lxcommon.h.

◆ AGTIAPI_HAD_RESET

#define AGTIAPI_HAD_RESET   0x00000004

Definition at line 91 of file lxcommon.h.

◆ AGTIAPI_IN_USE

#define AGTIAPI_IN_USE   0x00200000

Definition at line 110 of file lxcommon.h.

◆ AGTIAPI_INIT

#define AGTIAPI_INIT (   format,
  a... 
)

Definition at line 525 of file lxcommon.h.

◆ AGTIAPI_INIT2

#define AGTIAPI_INIT2 (   format,
  a... 
)

Definition at line 532 of file lxcommon.h.

◆ AGTIAPI_INIT_DELAY

#define AGTIAPI_INIT_DELAY (   delay_time)

Definition at line 553 of file lxcommon.h.

◆ AGTIAPI_INIT_MDELAY

#define AGTIAPI_INIT_MDELAY (   dly)

Definition at line 526 of file lxcommon.h.

◆ AGTIAPI_INIT_TIME

#define AGTIAPI_INIT_TIME   0x00000001

Definition at line 89 of file lxcommon.h.

◆ AGTIAPI_INITIATOR

#define AGTIAPI_INITIATOR   0x08000000

Definition at line 116 of file lxcommon.h.

◆ AGTIAPI_INITMEM

#define AGTIAPI_INITMEM (   format,
  a... 
)

Definition at line 538 of file lxcommon.h.

◆ AGTIAPI_INSTALLED

#define AGTIAPI_INSTALLED   0x00000010

Definition at line 93 of file lxcommon.h.

◆ AGTIAPI_IO

#define AGTIAPI_IO (   format,
  a... 
)

Definition at line 544 of file lxcommon.h.

◆ AGTIAPI_IOREGION_REQUESTED

#define AGTIAPI_IOREGION_REQUESTED   0x00000200

Definition at line 98 of file lxcommon.h.

◆ AGTIAPI_IRQ_REQUESTED

#define AGTIAPI_IRQ_REQUESTED   0x00000400

Definition at line 99 of file lxcommon.h.

◆ AGTIAPI_KDB

#define AGTIAPI_KDB ( )

Definition at line 563 of file lxcommon.h.

◆ AGTIAPI_KEY_MAX

#define AGTIAPI_KEY_MAX   64 /* max number of keys */

Definition at line 67 of file lxcommon.h.

◆ AGTIAPI_LGN_LINK_UP

#define AGTIAPI_LGN_LINK_UP   0x00008000

Definition at line 104 of file lxcommon.h.

◆ AGTIAPI_LOOP_MAX

#define AGTIAPI_LOOP_MAX   4 /* max loop for init process */

Definition at line 80 of file lxcommon.h.

◆ AGTIAPI_MAX_CARDS

#define AGTIAPI_MAX_CARDS   4 /* card supported up to system limit */

Definition at line 58 of file lxcommon.h.

◆ AGTIAPI_MAX_ID

#define AGTIAPI_MAX_ID   8

Definition at line 84 of file lxcommon.h.

◆ AGTIAPI_MAX_NAME

#define AGTIAPI_MAX_NAME   70

Definition at line 82 of file lxcommon.h.

◆ AGTIAPI_MAX_PORTALS

#define AGTIAPI_MAX_PORTALS   16 /* max portal per card */

Definition at line 60 of file lxcommon.h.

◆ AGTIAPI_MIN_NAME

#define AGTIAPI_MIN_NAME   10

Definition at line 83 of file lxcommon.h.

◆ AGTIAPI_NAME_SERVER_UP

#define AGTIAPI_NAME_SERVER_UP   0x00001000

Definition at line 101 of file lxcommon.h.

◆ AGTIAPI_OPTION_ON

#define AGTIAPI_OPTION_ON   1 /* adjustable parameter available */

Definition at line 66 of file lxcommon.h.

◆ AGTIAPI_PARAM_MAX

#define AGTIAPI_PARAM_MAX   256 /* max number of parameters */

Definition at line 69 of file lxcommon.h.

◆ AGTIAPI_PORT_DISC_READY

#define AGTIAPI_PORT_DISC_READY   0x00800000

Definition at line 112 of file lxcommon.h.

◆ AGTIAPI_PORT_INITIALIZED

#define AGTIAPI_PORT_INITIALIZED   0x00002000

Definition at line 102 of file lxcommon.h.

◆ AGTIAPI_PORT_LINK_UP

#define AGTIAPI_PORT_LINK_UP   0x00004000

Definition at line 103 of file lxcommon.h.

◆ AGTIAPI_PORT_PANIC

#define AGTIAPI_PORT_PANIC   0x00010000

Definition at line 105 of file lxcommon.h.

◆ AGTIAPI_PORT_SHUTDOWN

#define AGTIAPI_PORT_SHUTDOWN   0x00100000

Definition at line 109 of file lxcommon.h.

◆ AGTIAPI_PORT_START

#define AGTIAPI_PORT_START   0x00040000

Definition at line 107 of file lxcommon.h.

◆ AGTIAPI_PORT_STOPPED

#define AGTIAPI_PORT_STOPPED   0x00080000

Definition at line 108 of file lxcommon.h.

◆ AGTIAPI_PRINTK

#define AGTIAPI_PRINTK (   format,
  a... 
)

Definition at line 517 of file lxcommon.h.

◆ AGTIAPI_RESET

#define AGTIAPI_RESET   0x00000020

Definition at line 94 of file lxcommon.h.

◆ AGTIAPI_RESET_ALL

#define AGTIAPI_RESET_ALL   0xFFFFFFFF

Definition at line 123 of file lxcommon.h.

◆ AGTIAPI_RESET_SUCCESS

#define AGTIAPI_RESET_SUCCESS   0x00020000

Definition at line 106 of file lxcommon.h.

◆ AGTIAPI_SCSI_REGISTERED

#define AGTIAPI_SCSI_REGISTERED   0x00000800

Definition at line 100 of file lxcommon.h.

◆ AGTIAPI_SHUT_DOWN

#define AGTIAPI_SHUT_DOWN   0x40000000

Definition at line 119 of file lxcommon.h.

◆ AGTIAPI_SIG_DOWN

#define AGTIAPI_SIG_DOWN   0x01000000

Definition at line 113 of file lxcommon.h.

◆ AGTIAPI_SIG_UP

#define AGTIAPI_SIG_UP   0x02000000

Definition at line 114 of file lxcommon.h.

◆ AGTIAPI_SOFT_RESET

#define AGTIAPI_SOFT_RESET   0x00000002

Definition at line 90 of file lxcommon.h.

◆ AGTIAPI_STRING_MAX

#define AGTIAPI_STRING_MAX   512 /* max length for string */

Definition at line 68 of file lxcommon.h.

◆ AGTIAPI_SYS_INTR_ON

#define AGTIAPI_SYS_INTR_ON   0x00400000

Definition at line 111 of file lxcommon.h.

◆ AGTIAPI_TARGET

#define AGTIAPI_TARGET   0x10000000

Definition at line 117 of file lxcommon.h.

◆ AGTIAPI_TASK

#define AGTIAPI_TASK   0x04000000

Definition at line 115 of file lxcommon.h.

◆ AGTIAPI_TIMER_ON

#define AGTIAPI_TIMER_ON   0x20000000

Definition at line 118 of file lxcommon.h.

◆ AGTIAPI_TOO_MANY_CARDS

#define AGTIAPI_TOO_MANY_CARDS   -1 /* beyond defined max support */

Definition at line 59 of file lxcommon.h.

◆ comLinkInitialize

#define comLinkInitialize (   pLink)
Value:
{ (pLink)->pHead = NULL; \
(pLink)->pNext = NULL; \
(pLink)->pPrev = NULL; \
}
#define NULL
Definition: ostypes.h:142

Definition at line 683 of file lxcommon.h.

◆ comListAdd

#define comListAdd (   pList,
  pLink 
)
Value:
{ \
(pLink)->pNext = (pList)->pHead; \
(pLink)->pPrev = (pList)->pHead->pPrev; \
(pLink)->pPrev->pNext = (pLink); \
(pList)->pHead->pPrev = (pLink); \
(pList)->Count ++; \
(pLink)->pHead = (pList)->pHead; \
}

Definition at line 704 of file lxcommon.h.

◆ comListGetCount

#define comListGetCount (   pList)    ((pList)->Count)

Definition at line 819 of file lxcommon.h.

◆ comListGetHead

#define comListGetHead (   pList)    comListGetNext(pList,(pList)->pHead)

Definition at line 784 of file lxcommon.h.

◆ comListGetNext

#define comListGetNext (   pList,
  pLink 
)
Value:
(((pLink)->pNext == (pList)->pHead) ? \
NULL : (pLink)->pNext)

Definition at line 846 of file lxcommon.h.

◆ comListGetPrev

#define comListGetPrev (   pList,
  pLink 
)
Value:
(((pLink)->pPrev == (pList)->pHead) ? \
NULL : (pLink)->pPrev)

Definition at line 875 of file lxcommon.h.

◆ comListGetTail

#define comListGetTail (   pList)    comListGetPrev((pList), (pList)->pHead)

Definition at line 801 of file lxcommon.h.

◆ comListInitialize

#define comListInitialize (   pList)
Value:
{(pList)->pHead = &((pList)->Head); \
(pList)->pHead->pNext = (pList)->pHead; \
(pList)->pHead->pPrev = (pList)->pHead; \
(pList)->Count = 0; \
}

Definition at line 660 of file lxcommon.h.

◆ comListInsert

#define comListInsert (   pList,
  pLink,
  pNew 
)
Value:
{ \
(pNew)->pNext = (pLink); \
(pNew)->pPrev = (pLink)->pPrev; \
(pNew)->pPrev->pNext = (pNew); \
(pLink)->pPrev = (pNew); \
(pList)->Count ++; \
(pNew)->pHead = (pList)->pHead; \
}

Definition at line 731 of file lxcommon.h.

◆ comListRemove

#define comListRemove (   pList,
  pLink 
)
Value:
{ \
(pLink)->pPrev->pNext = (pLink)->pNext; \
(pLink)->pNext->pPrev = (pLink)->pPrev; \
(pLink)->pHead = NULL; \
(pList)->Count --; \
}

Definition at line 760 of file lxcommon.h.

◆ COUNT

#define COUNT (   arr)    (sizeof(arr) / sizeof(arr[0]))

Definition at line 586 of file lxcommon.h.

◆ DEK_MAX_TABLE_ITEMS

#define DEK_MAX_TABLE_ITEMS   DEK_MAX_TABLE_ENTRIES

Definition at line 40 of file lxcommon.h.

◆ HIGH_32_BITS

#define HIGH_32_BITS (   addr)    0

Definition at line 572 of file lxcommon.h.

◆ IOCTL_MN_GET_CARD_INFO

#define IOCTL_MN_GET_CARD_INFO   0x11

Definition at line 199 of file lxcommon.h.

◆ IP_ADDR_CHAR_LEN

#define IP_ADDR_CHAR_LEN   16

Definition at line 48 of file lxcommon.h.

◆ Is_ADP7H

#define Is_ADP7H (   pmsc)
Value:
((0x90058088 == (pmsc->VidDid))?1:\
(0x90058089 == (pmsc->VidDid))?1:0)

Definition at line 607 of file lxcommon.h.

◆ Is_ADP8H

#define Is_ADP8H (   pmsc)
Value:
((0x90058074 == (pmsc->VidDid))?1:\
(0x90058076 == (pmsc->VidDid))?1:0)

Definition at line 609 of file lxcommon.h.

◆ LINUX_DMA_MEM_MAX

#define LINUX_DMA_MEM_MAX   0x1ffe0 /* 128k - 32, real 128k - 24 */

Definition at line 39 of file lxcommon.h.

◆ LOW_32_BITS

#define LOW_32_BITS (   addr)    (U32)addr

Definition at line 571 of file lxcommon.h.

◆ MAP_TABLE_ENTRY

#define MAP_TABLE_ENTRY (   pC,
  c,
  d,
 
)
Value:
(pC->encrypt_map + \
(c * pC->devDiscover * AGTIAPI_MAX_LUN) + \
(d * AGTIAPI_MAX_LUN) + \
(l))
#define AGTIAPI_MAX_LUN
Definition: agdef.h:60

Definition at line 489 of file lxcommon.h.

◆ MAX_MSIX_NUM_DPC

#define MAX_MSIX_NUM_DPC   64

Definition at line 443 of file lxcommon.h.

◆ MAX_MSIX_NUM_ISR

#define MAX_MSIX_NUM_ISR   64

Definition at line 444 of file lxcommon.h.

◆ MAX_MSIX_NUM_VECTOR

#define MAX_MSIX_NUM_VECTOR   16

Definition at line 442 of file lxcommon.h.

◆ MSEC_PER_TICK

#define MSEC_PER_TICK   (1000/hz) /* milisecond per tick */

Definition at line 51 of file lxcommon.h.

◆ PCI_BASE_ADDRESS_0

#define PCI_BASE_ADDRESS_0   PCIR_BAR(0)

Definition at line 229 of file lxcommon.h.

◆ PCI_BASE_ADDRESS_1

#define PCI_BASE_ADDRESS_1   PCIR_BAR(1)

Definition at line 230 of file lxcommon.h.

◆ PCI_BASE_ADDRESS_2

#define PCI_BASE_ADDRESS_2   PCIR_BAR(2)

Definition at line 231 of file lxcommon.h.

◆ PCI_BASE_ADDRESS_3

#define PCI_BASE_ADDRESS_3   PCIR_BAR(3)

Definition at line 232 of file lxcommon.h.

◆ PCI_BASE_ADDRESS_4

#define PCI_BASE_ADDRESS_4   PCIR_BAR(4)

Definition at line 233 of file lxcommon.h.

◆ PCI_BASE_MEM_MASK

#define PCI_BASE_MEM_MASK   (~0x0F)

Definition at line 192 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_DE4

#define PCI_DEVICE_ID_AG_DE4   0x1203

Definition at line 160 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_DIXL

#define PCI_DEVICE_ID_AG_DIXL   0x0110

Definition at line 163 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_DX2

#define PCI_DEVICE_ID_AG_DX2   0x0100

Definition at line 155 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_DX2PLUS

#define PCI_DEVICE_ID_AG_DX2PLUS   0x0101

Definition at line 156 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_DX4PLUS

#define PCI_DEVICE_ID_AG_DX4PLUS   0x0105

Definition at line 162 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_IDX1

#define PCI_DEVICE_ID_AG_IDX1   0x050A

Definition at line 164 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_QE4

#define PCI_DEVICE_ID_AG_QE4   0x1200

Definition at line 159 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_QX2

#define PCI_DEVICE_ID_AG_QX2   0x0102

Definition at line 157 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_QX4

#define PCI_DEVICE_ID_AG_QX4   0x0103

Definition at line 158 of file lxcommon.h.

◆ PCI_DEVICE_ID_AG_XL10

#define PCI_DEVICE_ID_AG_XL10   0x0104

Definition at line 161 of file lxcommon.h.

◆ PCI_DEVICE_ID_CYCLONE

#define PCI_DEVICE_ID_CYCLONE   0xB555

Definition at line 194 of file lxcommon.h.

◆ PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV

#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV   0x8076

Definition at line 183 of file lxcommon.h.

◆ PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV_SATA

#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCV_SATA   0x8006

Definition at line 185 of file lxcommon.h.

◆ PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCVE

#define PCI_DEVICE_ID_DELRAY_HBA_16PORTS_SPCVE   0x8077

Definition at line 184 of file lxcommon.h.

◆ PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCV

#define PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCV   0x8074

Definition at line 181 of file lxcommon.h.

◆ PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCVE

#define PCI_DEVICE_ID_DELRAY_HBA_8PORTS_SPCVE   0x8075

Definition at line 182 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_HBA_SPC

#define PCI_DEVICE_ID_HIALEAH_HBA_SPC   0x8081

Definition at line 175 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_HBA_SPCV

#define PCI_DEVICE_ID_HIALEAH_HBA_SPCV   0x8088

Definition at line 177 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_HBA_SPCVE

#define PCI_DEVICE_ID_HIALEAH_HBA_SPCVE   0x8089

Definition at line 179 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_RAID_SPC

#define PCI_DEVICE_ID_HIALEAH_RAID_SPC   0x8091

Definition at line 176 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_RAID_SPCV

#define PCI_DEVICE_ID_HIALEAH_RAID_SPCV   0x8098

Definition at line 178 of file lxcommon.h.

◆ PCI_DEVICE_ID_HIALEAH_RAID_SPCVE

#define PCI_DEVICE_ID_HIALEAH_RAID_SPCVE   0x8099

Definition at line 180 of file lxcommon.h.

◆ PCI_DEVICE_ID_HP_TL

#define PCI_DEVICE_ID_HP_TL   0x1028

Definition at line 153 of file lxcommon.h.

◆ PCI_DEVICE_ID_HP_TS

#define PCI_DEVICE_ID_HP_TS   0x102a

Definition at line 152 of file lxcommon.h.

◆ PCI_DEVICE_ID_HP_XL2

#define PCI_DEVICE_ID_HP_XL2   0x1029

Definition at line 154 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPC

#define PCI_DEVICE_ID_PMC_SIERRA_SPC   0x8001

Definition at line 165 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCV

#define PCI_DEVICE_ID_PMC_SIERRA_SPCV   0x8008

Definition at line 166 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCV12G

#define PCI_DEVICE_ID_PMC_SIERRA_SPCV12G   0x8070

Definition at line 171 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCV12G_16

#define PCI_DEVICE_ID_PMC_SIERRA_SPCV12G_16   0x8072

Definition at line 173 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCVE

#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE   0x8009

Definition at line 167 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G

#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G   0x8071

Definition at line 172 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G_16

#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE12G_16   0x8073

Definition at line 174 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCVE_16

#define PCI_DEVICE_ID_PMC_SIERRA_SPCVE_16   0x8019

Definition at line 169 of file lxcommon.h.

◆ PCI_DEVICE_ID_PMC_SIERRA_SPCVPLUS

#define PCI_DEVICE_ID_PMC_SIERRA_SPCVPLUS   0x8018

Definition at line 168 of file lxcommon.h.

◆ PCI_DEVICE_ID_SPCV_FPGA

#define PCI_DEVICE_ID_SPCV_FPGA   0xabcd

Definition at line 170 of file lxcommon.h.

◆ PCI_ENABLE_VALUE

#define PCI_ENABLE_VALUE   0x0157

Definition at line 195 of file lxcommon.h.

◆ PCI_SUB_SYSTEM_ID_AG

#define PCI_SUB_SYSTEM_ID_AG   0x0001

Definition at line 191 of file lxcommon.h.

◆ PCI_SUB_VENDOR_ID_AG

#define PCI_SUB_VENDOR_ID_AG   PCI_VENDOR_ID_AGILENT

Definition at line 189 of file lxcommon.h.

◆ PCI_SUB_VENDOR_ID_HP

#define PCI_SUB_VENDOR_ID_HP   PCI_VENDOR_ID_HP

Definition at line 188 of file lxcommon.h.

◆ PCI_SUB_VENDOR_ID_MASK

#define PCI_SUB_VENDOR_ID_MASK   0xFFFF

Definition at line 190 of file lxcommon.h.

◆ PCI_VENDOR_ID_AGILENT

#define PCI_VENDOR_ID_AGILENT   0x15bc

Definition at line 137 of file lxcommon.h.

◆ PCI_VENDOR_ID_CYCLONE

#define PCI_VENDOR_ID_CYCLONE   0x113C

Definition at line 141 of file lxcommon.h.

◆ PCI_VENDOR_ID_HIALEAH

#define PCI_VENDOR_ID_HIALEAH   0x9005

Definition at line 149 of file lxcommon.h.

◆ PCI_VENDOR_ID_HP

#define PCI_VENDOR_ID_HP   0x103c

Definition at line 129 of file lxcommon.h.

◆ PCI_VENDOR_ID_PMC_SIERRA

#define PCI_VENDOR_ID_PMC_SIERRA   0x11F8

Definition at line 133 of file lxcommon.h.

◆ PCI_VENDOR_ID_SPCV_FPGA

#define PCI_VENDOR_ID_SPCV_FPGA   0x1855

Definition at line 145 of file lxcommon.h.

◆ PORTAL_CONTEXT_TO_PORTALDATA

#define PORTAL_CONTEXT_TO_PORTALDATA (   pPortalContext)     ((ag_portal_data_t *)(((tiPortalContext_t *)pPortalContext)->osData))

Definition at line 588 of file lxcommon.h.

◆ PORTAL_STATUS

#define PORTAL_STATUS (   pPortalData)    (pPortalData->portalInfo.portStatus)

Definition at line 590 of file lxcommon.h.

◆ TIROOT_TO_CARD

#define TIROOT_TO_CARD (   ptiRoot)    ((struct agtiapi_softc *)(ptiRoot->osData))

Definition at line 600 of file lxcommon.h.

◆ TIROOT_TO_CARDINFO

#define TIROOT_TO_CARDINFO (   ptiRoot)    (TIROOT_TO_CARD(ptiRoot)->pCardInfo)

Definition at line 601 of file lxcommon.h.

◆ TIROOT_TO_PCIDEV

#define TIROOT_TO_PCIDEV (   ptiRoot)    (TIROOT_TO_CARD(ptiRoot)->my_dev)

Definition at line 602 of file lxcommon.h.

◆ USEC_PER_TICK

#define USEC_PER_TICK   (1000000/hz) /* microsecond per tick */

Definition at line 52 of file lxcommon.h.

Typedef Documentation

◆ __cacheline_aligned

◆ ag_card_id_t

typedef struct _ag_card_id ag_card_id_t

◆ ag_card_info_t

typedef struct _ag_card_info ag_card_info_t

◆ ag_dma_addr_t

typedef struct _ag_dma_addr ag_dma_addr_t

◆ ag_key_t

typedef struct _ag_param_key ag_key_t

◆ ag_portal_info_t

◆ ag_resource_info_t

◆ ag_value_t

typedef struct _ag_param_value ag_value_t

◆ CardInfo_t

typedef struct _CardInfo CardInfo_t

◆ LINK_LIST

typedef struct _LINK_LIST LINK_LIST

◆ LINK_NODE

typedef struct _LINK_NODE LINK_NODE

Variable Documentation

◆ ag_card_names

char const* const ag_card_names[]
static

Definition at line 316 of file lxcommon.h.

Referenced by agtiapi_ProbeCard().

◆ ag_card_type

ag_card_id_t ag_card_type[]

Definition at line 236 of file lxcommon.h.

Referenced by agtiapi_ProbeCard().