qla_def.h (227547) | qla_def.h (250340) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2010-2011 Qlogic Corporation | 2 * Copyright (c) 2011-2013 Qlogic Corporation |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/qlxgb/qla_def.h 227547 2011-11-16 02:00:55Z bz $ | 27 * $FreeBSD: head/sys/dev/qlxgb/qla_def.h 250340 2013-05-07 22:58:42Z davidcs $ |
28 */ 29 30/* 31 * File: qla_def.h 32 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 33 */ 34 35#ifndef _QLA_DEF_H_ --- 153 unchanged lines hidden (view full) --- 189 uint32_t fw_ver_build; 190 191 /* hardware specific */ 192 qla_hw_t hw; 193 194 /* debug stuff */ 195 volatile const char *qla_lock; 196 volatile const char *qla_unlock; | 28 */ 29 30/* 31 * File: qla_def.h 32 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 33 */ 34 35#ifndef _QLA_DEF_H_ --- 153 unchanged lines hidden (view full) --- 189 uint32_t fw_ver_build; 190 191 /* hardware specific */ 192 qla_hw_t hw; 193 194 /* debug stuff */ 195 volatile const char *qla_lock; 196 volatile const char *qla_unlock; |
197 198 uint8_t fw_ver_str[32]; |
|
197}; 198typedef struct qla_host qla_host_t; 199 200/* note that align has to be a power of 2 */ 201#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1); 202#define QL_MIN(x, y) ((x < y) ? x : y) 203 204#define QL_RUNNING(ifp) \ 205 ((ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) == \ 206 IFF_DRV_RUNNING) 207 208#endif /* #ifndef _QLA_DEF_H_ */ | 199}; 200typedef struct qla_host qla_host_t; 201 202/* note that align has to be a power of 2 */ 203#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1); 204#define QL_MIN(x, y) ((x < y) ? x : y) 205 206#define QL_RUNNING(ifp) \ 207 ((ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) == \ 208 IFF_DRV_RUNNING) 209 210#endif /* #ifndef _QLA_DEF_H_ */ |