/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2010 Adaptec, Inc.4* Copyright (c) 2010-2012 PMC-Sierra, Inc.5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions and the following disclaimer.12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND17* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE18* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE19* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE20* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL21* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS22* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)23* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT24* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY25* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF26* SUCH DAMAGE.27*/2829#ifndef PRINT_BUFFER_SIZE3031#define PRINT_BUFFER_SIZE 5123233#define HBA_FLAGS_DBG_FLAGS_MASK 0x0000ffff34#define HBA_FLAGS_DBG_KERNEL_PRINT_B 0x0000000135#define HBA_FLAGS_DBG_FW_PRINT_B 0x0000000236#define HBA_FLAGS_DBG_FUNCTION_ENTRY_B 0x0000000437#define HBA_FLAGS_DBG_FUNCTION_EXIT_B 0x0000000838#define HBA_FLAGS_DBG_ERROR_B 0x0000001039#define HBA_FLAGS_DBG_INIT_B 0x0000002040#define HBA_FLAGS_DBG_OS_COMMANDS_B 0x0000004041#define HBA_FLAGS_DBG_SCAN_B 0x0000008042#define HBA_FLAGS_DBG_COALESCE_B 0x0000010043#define HBA_FLAGS_DBG_IOCTL_COMMANDS_B 0x0000020044#define HBA_FLAGS_DBG_SYNC_COMMANDS_B 0x0000040045#define HBA_FLAGS_DBG_COMM_B 0x0000080046#define HBA_FLAGS_DBG_CSMI_COMMANDS_B 0x0000100047#define HBA_FLAGS_DBG_AIF_B 0x0000100048#define HBA_FLAGS_DBG_DEBUG_B 0x000020004950#define FW_DEBUG_STR_LENGTH_OFFSET 0x0051#define FW_DEBUG_FLAGS_OFFSET 0x0452#define FW_DEBUG_BLED_OFFSET 0x0853#define FW_DEBUG_FLAGS_NO_HEADERS_B 0x015455struct aac_softc;56extern int aacraid_get_fw_debug_buffer(struct aac_softc *);57extern void aacraid_fw_printf(struct aac_softc *, unsigned long, const char *, ...);58extern void aacraid_fw_print_mem(struct aac_softc *, unsigned long, u_int8_t *,int);59extern int aacraid_sync_command(struct aac_softc *sc, u_int32_t command,60u_int32_t arg0, u_int32_t arg1, u_int32_t arg2,61u_int32_t arg3, u_int32_t *sp, u_int32_t *r1);6263#endif646566