Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mpi3mr/mpi/mpi30_tool.h
/* | /* | ||||
* SPDX-License-Identifier: BSD-2-Clause | * SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||||
* | * | ||||
* Copyright (c) 2016-2023, Broadcom Inc. All rights reserved. | * Copyright (c) 2016-2024, Broadcom Inc. All rights reserved. | ||||
* Support: <fbsd-storage-driver.pdl@broadcom.com> | * Support: <fbsd-storage-driver.pdl@broadcom.com> | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions are | * modification, are permitted provided that the following conditions are | ||||
* met: | * met: | ||||
* | * | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this list of conditions and the following disclaimer. | * this list of conditions and the following disclaimer. | ||||
Show All 20 Lines | |||||
* those of the authors and should not be interpreted as representing | * those of the authors and should not be interpreted as representing | ||||
* official policies,either expressed or implied, of the FreeBSD Project. | * official policies,either expressed or implied, of the FreeBSD Project. | ||||
* | * | ||||
* Mail to: Broadcom Inc 1320 Ridder Park Dr, San Jose, CA 95131 | * Mail to: Broadcom Inc 1320 Ridder Park Dr, San Jose, CA 95131 | ||||
* | * | ||||
* Broadcom Inc. (Broadcom) MPI3MR Adapter FreeBSD | * Broadcom Inc. (Broadcom) MPI3MR Adapter FreeBSD | ||||
* | * | ||||
*/ | */ | ||||
#ifndef MPI30_TOOL_H | #ifndef MPI30_TOOL_H | ||||
#define MPI30_TOOL_H 1 | #define MPI30_TOOL_H 1 | ||||
/***************************************************************************** | /***************************************************************************** | ||||
* Toolbox Messages * | * Toolbox Messages * | ||||
*****************************************************************************/ | *****************************************************************************/ | ||||
/***************************************************************************** | /***************************************************************************** | ||||
▲ Show 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | |||||
/**** Defines for the MsgFlags field ****/ | /**** Defines for the MsgFlags field ****/ | ||||
#define MPI3_DIAG_BUFFER_POST_MSGFLAGS_SEGMENTED (0x01) | #define MPI3_DIAG_BUFFER_POST_MSGFLAGS_SEGMENTED (0x01) | ||||
/**** Defines for the Type field ****/ | /**** Defines for the Type field ****/ | ||||
#define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01) | #define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01) | ||||
#define MPI3_DIAG_BUFFER_TYPE_FW (0x02) | #define MPI3_DIAG_BUFFER_TYPE_FW (0x02) | ||||
#define MPI3_DIAG_BUFFER_TYPE_DRIVER (0x10) | #define MPI3_DIAG_BUFFER_TYPE_DRIVER (0x10) | ||||
#define MPI3_DIAG_BUFFER_TYPE_FDL (0x20) | #define MPI3_DIAG_BUFFER_TYPE_FDL (0x20) | ||||
#define MPI3_DIAG_BUFFER_TYPE_TTY (0x30) | |||||
#define MPI3_DIAG_BUFFER_MIN_PRODUCT_SPECIFIC (0xF0) | #define MPI3_DIAG_BUFFER_MIN_PRODUCT_SPECIFIC (0xF0) | ||||
#define MPI3_DIAG_BUFFER_MAX_PRODUCT_SPECIFIC (0xFF) | #define MPI3_DIAG_BUFFER_MAX_PRODUCT_SPECIFIC (0xFF) | ||||
/***************************************************************************** | /***************************************************************************** | ||||
* DRIVER DIAGNOSTIC Buffer * | * DRIVER DIAGNOSTIC Buffer * | ||||
*****************************************************************************/ | *****************************************************************************/ | ||||
typedef struct _MPI3_DRIVER_BUFFER_HEADER | typedef struct _MPI3_DRIVER_BUFFER_HEADER | ||||
{ | { | ||||
U32 Signature; /* 0x00 */ | U32 Signature; /* 0x00 */ | ||||
U16 HeaderSize; /* 0x04 */ | U16 HeaderSize; /* 0x04 */ | ||||
U16 RTTFileHeaderOffset; /* 0x06 */ | U16 RTTFileHeaderOffset; /* 0x06 */ | ||||
U32 Flags; /* 0x08 */ | U32 Flags; /* 0x08 */ | ||||
U32 CircularBufferSize; /* 0x0C */ | U32 CircularBufferSize; /* 0x0C */ | ||||
U32 LogicalBufferEnd; /* 0x10 */ | U32 LogicalBufferEnd; /* 0x10 */ | ||||
U32 LogicalBufferStart; /* 0x14 */ | U32 LogicalBufferStart; /* 0x14 */ | ||||
U32 IOCUseOnly18[2]; /* 0x18 */ | U32 IOCUseOnly18[2]; /* 0x18 */ | ||||
U32 Reserved20[760]; /* 0x20 - 0xBFC */ | U32 Reserved20[760]; /* 0x20 - 0xBFC */ | ||||
U32 ReservedRTTRACE[256]; /* 0xC00 - 0xFFC */ | U32 ReservedRTTRACE[256]; /* 0xC00 - 0xFFC */ | ||||
} MPI3_DRIVER_BUFFER_HEADER, MPI3_POINTER PTR_MPI3_DRIVER_BUFFER_HEADER, | } MPI3_DRIVER_BUFFER_HEADER, MPI3_POINTER PTR_MPI3_DRIVER_BUFFER_HEADER, | ||||
Mpi3DriverBufferHeader_t, MPI3_POINTER pMpi3DriverBufferHeader_t; | Mpi3DriverBufferHeader_t, MPI3_POINTER pMpi3DriverBufferHeader_t; | ||||
/**** Defines for the Type field ****/ | /**** Defines for the Signature field ****/ | ||||
#define MPI3_DRIVER_DIAG_BUFFER_HEADER_SIGNATURE_CIRCULAR (0x43495243) | #define MPI3_DRIVER_DIAG_BUFFER_HEADER_SIGNATURE_CIRCULAR (0x43495243) | ||||
/**** Defines for the Flags field ****/ | /**** Defines for the Flags field ****/ | ||||
#define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_MASK (0x00000003) | #define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_MASK (0x00000003) | ||||
#define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_ASCII (0x00000000) | #define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_ASCII (0x00000000) | ||||
#define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_RTTRACE (0x00000001) | #define MPI3_DRIVER_DIAG_BUFFER_HEADER_FLAGS_CIRCULAR_BUF_FORMAT_RTTRACE (0x00000001) | ||||
/***************************************************************************** | /***************************************************************************** | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |