1718cf2ccSPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4711bcba0SDavid C Somayajulu * Copyright (c) 2013-2014 Qlogic Corporation 5711bcba0SDavid C Somayajulu * All rights reserved. 6711bcba0SDavid C Somayajulu * 7711bcba0SDavid C Somayajulu * Redistribution and use in source and binary forms, with or without 8711bcba0SDavid C Somayajulu * modification, are permitted provided that the following conditions 9711bcba0SDavid C Somayajulu * are met: 10711bcba0SDavid C Somayajulu * 11711bcba0SDavid C Somayajulu * 1. Redistributions of source code must retain the above copyright 12711bcba0SDavid C Somayajulu * notice, this list of conditions and the following disclaimer. 13711bcba0SDavid C Somayajulu * 2. Redistributions in binary form must reproduce the above copyright 14711bcba0SDavid C Somayajulu * notice, this list of conditions and the following disclaimer in the 15711bcba0SDavid C Somayajulu * documentation and/or other materials provided with the distribution. 16711bcba0SDavid C Somayajulu * 17711bcba0SDavid C Somayajulu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18711bcba0SDavid C Somayajulu * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19711bcba0SDavid C Somayajulu * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20711bcba0SDavid C Somayajulu * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21711bcba0SDavid C Somayajulu * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22711bcba0SDavid C Somayajulu * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23711bcba0SDavid C Somayajulu * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24711bcba0SDavid C Somayajulu * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25711bcba0SDavid C Somayajulu * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26711bcba0SDavid C Somayajulu * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27711bcba0SDavid C Somayajulu * POSSIBILITY OF SUCH DAMAGE. 28711bcba0SDavid C Somayajulu */ 29711bcba0SDavid C Somayajulu /* 30711bcba0SDavid C Somayajulu * File: qls_ioctl.h 31711bcba0SDavid C Somayajulu * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 32711bcba0SDavid C Somayajulu */ 33711bcba0SDavid C Somayajulu 34711bcba0SDavid C Somayajulu #ifndef _QLS_IOCTL_H_ 35711bcba0SDavid C Somayajulu #define _QLS_IOCTL_H_ 36711bcba0SDavid C Somayajulu 37711bcba0SDavid C Somayajulu #include <sys/ioccom.h> 38711bcba0SDavid C Somayajulu 39711bcba0SDavid C Somayajulu struct qls_mpi_dump { 40711bcba0SDavid C Somayajulu uint32_t size; 41711bcba0SDavid C Somayajulu void *dbuf; 42711bcba0SDavid C Somayajulu }; 43711bcba0SDavid C Somayajulu typedef struct qls_mpi_dump qls_mpi_dump_t; 44711bcba0SDavid C Somayajulu 45711bcba0SDavid C Somayajulu /* 46711bcba0SDavid C Somayajulu * Get MPI Dump 47711bcba0SDavid C Somayajulu */ 48711bcba0SDavid C Somayajulu #define QLA_MPI_DUMP _IOWR('q', 1, qls_mpi_dump_t) 49711bcba0SDavid C Somayajulu 50711bcba0SDavid C Somayajulu #endif /* #ifndef _QLS_IOCTL_H_ */ 51