emlxs_fc.h (8f23e9fa) | emlxs_fc.h (a3170057) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2004-2012 Emulex. All rights reserved. 24 * Use is subject to license terms. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2004-2012 Emulex. All rights reserved. 24 * Use is subject to license terms. |
25 * Copyright 2018 OmniOS Community Edition (OmniOSce) Association. 26 * Copyright 2020 RackTop Systems, Inc. |
|
25 */ 26 27#ifndef _EMLXS_FC_H 28#define _EMLXS_FC_H 29 30#ifdef __cplusplus 31extern "C" { 32#endif --- 249 unchanged lines hidden (view full) --- 282 /* address to physical address (skip */ 283 /* the malloc). */ 284 /* For free - just unmap the given */ 285 /* physical address (skip the free). */ 286#define FC_MBUF_IOCTL 0x04 /* called from dfc_ioctl */ 287#define FC_MBUF_UNLOCK 0x08 /* called with driver unlocked */ 288#define FC_MBUF_SNGLSG 0x10 /* allocate a single contiguous */ 289 /* physical memory */ | 27 */ 28 29#ifndef _EMLXS_FC_H 30#define _EMLXS_FC_H 31 32#ifdef __cplusplus 33extern "C" { 34#endif --- 249 unchanged lines hidden (view full) --- 284 /* address to physical address (skip */ 285 /* the malloc). */ 286 /* For free - just unmap the given */ 287 /* physical address (skip the free). */ 288#define FC_MBUF_IOCTL 0x04 /* called from dfc_ioctl */ 289#define FC_MBUF_UNLOCK 0x08 /* called with driver unlocked */ 290#define FC_MBUF_SNGLSG 0x10 /* allocate a single contiguous */ 291 /* physical memory */ |
290#define FC_MBUF_DMA32 0x20 | |
291 292 uint64_t phys; /* specifies physical buffer pointer */ 293 void *virt; /* specifies virtual buffer pointer */ 294 void *data_handle; 295 void *dma_handle; 296} emlxs_buf_info_t; 297typedef emlxs_buf_info_t MBUF_INFO; 298 --- 190 unchanged lines hidden (view full) --- 489#define MEM_IOCB 1 /* memory segment to hold iocb commands */ 490#define MEM_MBOX 2 /* memory segment to hold mailbox cmds */ 491#define MEM_BPL 3 /* and to hold buffer ptr lists - SLI2 */ 492#define MEM_BUF 4 /* memory segment to hold buffer data */ 493#define MEM_ELSBUF 4 /* memory segment to hold buffer data */ 494#define MEM_IPBUF 5 /* memory segment to hold IP buffer data */ 495#define MEM_CTBUF 6 /* memory segment to hold CT buffer data */ 496#define MEM_FCTBUF 7 /* memory segment to hold FCT buffer data */ | 292 293 uint64_t phys; /* specifies physical buffer pointer */ 294 void *virt; /* specifies virtual buffer pointer */ 295 void *data_handle; 296 void *dma_handle; 297} emlxs_buf_info_t; 298typedef emlxs_buf_info_t MBUF_INFO; 299 --- 190 unchanged lines hidden (view full) --- 490#define MEM_IOCB 1 /* memory segment to hold iocb commands */ 491#define MEM_MBOX 2 /* memory segment to hold mailbox cmds */ 492#define MEM_BPL 3 /* and to hold buffer ptr lists - SLI2 */ 493#define MEM_BUF 4 /* memory segment to hold buffer data */ 494#define MEM_ELSBUF 4 /* memory segment to hold buffer data */ 495#define MEM_IPBUF 5 /* memory segment to hold IP buffer data */ 496#define MEM_CTBUF 6 /* memory segment to hold CT buffer data */ 497#define MEM_FCTBUF 7 /* memory segment to hold FCT buffer data */ |
498#define MEM_SGL1K 8 /* memory segment to hold 1K SGL entries */ 499#define MEM_SGL2K 9 /* memory segment to hold 2K SGL entries */ 500#define MEM_SGL4K 10 /* memory segment to hold 4K SGL entries */ |
|
497 498#ifdef SFCT_SUPPORT | 501 502#ifdef SFCT_SUPPORT |
499#define FC_MAX_SEG 8 500#define MEM_FCTSEG 10 /* must be greater than FC_MAX_SEG */ | 503#define FC_MAX_SEG 11 504#define MEM_FCTSEG 13 /* must be greater than FC_MAX_SEG */ |
501#else | 505#else |
502#define FC_MAX_SEG 7 | 506#define FC_MAX_SEG 10 |
503#endif /* SFCT_SUPPORT */ 504 505 506/* A BPL entry is 12 bytes. Subtract 2 for command and response buffers */ 507#define BPL_TO_SGLLEN(_bpl) ((_bpl/12)-2) 508#define MEM_BPL_SIZE 36 /* Default size */ 509 510/* A SGL entry is 16 bytes. Subtract 2 for command and response buffers */ --- 1768 unchanged lines hidden --- | 507#endif /* SFCT_SUPPORT */ 508 509 510/* A BPL entry is 12 bytes. Subtract 2 for command and response buffers */ 511#define BPL_TO_SGLLEN(_bpl) ((_bpl/12)-2) 512#define MEM_BPL_SIZE 36 /* Default size */ 513 514/* A SGL entry is 16 bytes. Subtract 2 for command and response buffers */ --- 1768 unchanged lines hidden --- |