/* iLO ASIC PCI revision id */ #define PCI_REV_ID_NECHES 7
/* max number of open channel control blocks per device, hw limited to 32 */ #define MAX_CCB 24 /* min number of open channel control blocks per device, hw limited to 32 */ #define MIN_CCB 8 /* max number of supported devices */ #define MAX_ILO_DEV 1 /* max number of files */ #define MAX_OPEN (MAX_CCB * MAX_ILO_DEV) /* total wait time in usec */ #define MAX_WAIT_TIME 10000 /* per spin wait time in usec */ #define WAIT_TIME 10 /* spin counter for open/close delay */ #define MAX_WAIT (MAX_WAIT_TIME / WAIT_TIME)
/* *Perfdstructureusedtotracktheccballocatedtothatdevfile.
*/ struct ccb_data { /* software version of ccb, using virtual addrs */ struct ccb driver_ccb;
/* hardware version of ccb, using physical addrs */ struct ccb ilo_ccb;
/* hardware ccb is written to this shared mapped device memory */ struct ccb __iomem *mapped_ccb;
/* dma'able memory used for send/recv queues */ void *dma_va;
dma_addr_t dma_pa;
size_t dma_size;
/* pointer to hardware device info */ struct ilo_hwinfo *ilo_hw;
/* queue for this ccb to wait for recv data */
wait_queue_head_t ccb_waitq;
/* usage count, to allow for shared ccb's */ int ccb_cnt;
/* open wanted exclusive access to this ccb */ int ccb_excl;
};
/* *FIFOqueuestructure,sharedwithhw.
*/ #define ILO_START_ALIGN 4096 #define ILO_CACHE_SZ 128 struct fifo {
u64 nrents; /* user requested number of fifo entries */
u64 imask; /* mask to extract valid fifo index */
u64 merge; /* O/C bits to merge in during enqueue operation */
u64 reset; /* set to non-zero when the target device resets */
u8 pad_0[ILO_CACHE_SZ - (sizeof(u64) * 4)];
u64 head;
u8 pad_1[ILO_CACHE_SZ - (sizeof(u64))];
u64 tail;
u8 pad_2[ILO_CACHE_SZ - (sizeof(u64))];
u64 fifobar[];
};
/* convert between struct fifo, and the fifobar, which is saved in the ccb */ #define FIFOHANDLESIZE (sizeof(struct fifo)) #define FIFOBARTOHANDLE(_fifo) \
((struct fifo *)(((char *)(_fifo)) - FIFOHANDLESIZE))
/* the number of qwords to consume from the entry descriptor */ #define ENTRY_BITPOS_QWORDS 0 /* descriptor index number (within a specified queue) */ #define ENTRY_BITPOS_DESCRIPTOR 10 /* state bit, fifo entry consumed by consumer */ #define ENTRY_BITPOS_C 22 /* state bit, fifo entry is occupied */ #define ENTRY_BITPOS_O 23
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.