/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright 2010 QLogic Corporation */
/*
* ISP2xxx Solaris Fibre Channel Adapter (FCA) qlc mdb source file.
*
* ***********************************************************************
* * **
* * NOTICE **
* * COPYRIGHT (C) 1996-2010 QLOGIC CORPORATION **
* * ALL RIGHTS RESERVED **
* * **
* ***********************************************************************
*
*/
#pragma ident "Copyright 2010 QLogic Corporation; ql_mdb.c"
#include <sys/mdb_modapi.h>
#include <ql_apps.h>
#include <ql_api.h>
#include <ql_init.h>
#include <ql_debug.h>
/*
* local prototypes
*/
#if 0
#endif
static int qlstates_walk_init(mdb_walk_state_t *);
static int qlstates_walk_step(mdb_walk_state_t *);
static void qlstates_walk_fini(mdb_walk_state_t *);
static int qlsrb_walk_init(mdb_walk_state_t *);
static int qlsrb_walk_step(mdb_walk_state_t *);
static void qlsrb_walk_fini(mdb_walk_state_t *);
static int get_next_link(ql_link_t *);
const mdb_arg_t *);
const mdb_arg_t *);
const mdb_arg_t *);
const mdb_arg_t *);
/*
* local adapter state flags strings
*/
"FCA_BOUND",
"QL_OPENED",
"ONLINE",
"INTERRUPTS_ENABLED",
"ABORT_CMDS_LOOP_DOWN_TMO",
"POINT_TO_POINT",
"IP_ENABLED",
"IP_INITIALIZED",
"MENLO_LOGIN_OPERATIONAL",
"ADAPTER_SUSPENDED",
"ADAPTER_TIMER_BUSY",
"PARITY_ERROR",
"FLASH_ERRLOG_MARKER",
"VP_ENABLED",
"FDISC_ENABLED",
"FUNCTION_1",
"MPI_RESET_NEEDED",
};
"ENABLE_HARD_ADDRESS",
"ENABLE_64BIT_ADDRESSING",
"ENABLE_LIP_RESET",
"ENABLE_FULL_LIP_LOGIN",
"ENABLE_TARGET_RESET",
"ENABLE_LINK_DOWN_REPORTING",
"DISABLE_EXTENDED_LOGGING_TRACE",
"ENABLE_FCP_2_SUPPORT",
"MULTI_CHIP_ADAPTER",
"SBUS_CARD",
"CTRL_2300",
"CTRL_6322",
"CTRL_2200",
"CTRL_2422",
"CTRL_25XX",
"ENABLE_EXTENDED_LOGGING",
"DISABLE_RISC_CODE_LOAD",
"SET_CACHE_LINE_SIZE_1",
"CTRL_MENLO",
"EXT_FW_INTERFACE",
"LOAD_FLASH_FW",
"DUMP_MAILBOX_TIMEOUT",
"DUMP_ISP_SYSTEM_ERROR",
"DUMP_DRIVER_COMMAND_TIMEOUT",
"DUMP_LOOP_OFFLINE_TIMEOUT",
"ENABLE_FWEXTTRACE",
"ENABLE_FWFCETRACE",
"FW_MISMATCH",
"CTRL_81XX",
"CTRL_8021",
"ENABLE_FAST_TIMEOUT",
"LR_SUPPORT",
};
/*
* local task daemon flags strings
*/
"TASK_DAEMON_STOP_FLG",
"TASK_DAEMON_SLEEPING_FLG",
"TASK_DAEMON_ALIVE_FLG",
"TASK_DAEMON_IDLE_CHK_FLG",
"SUSPENDED_WAKEUP_FLG",
"FC_STATE_CHANGE",
"NEED_UNSOLICITED_BUFFERS",
"RESET_MARKER_NEEDED",
"RESET_ACTIVE",
"ISP_ABORT_NEEDED",
"ABORT_ISP_ACTIVE",
"LOOP_RESYNC_NEEDED",
"LOOP_RESYNC_ACTIVE",
"LOOP_DOWN",
"DRIVER_STALL",
"COMMAND_WAIT_NEEDED",
"COMMAND_WAIT_ACTIVE",
"STATE_ONLINE",
"ABORT_QUEUES_NEEDED",
"TASK_DAEMON_STALLED_FLG",
"TASK_THREAD_CALLED",
"FIRMWARE_UP",
"LIP_RESET_PENDING",
"FIRMWARE_LOADED",
"RSCN_UPDATE_NEEDED",
"HANDLE_PORT_BYPASS_CHANGE",
"PORT_RETRY_NEEDED",
"TASK_DAEMON_POWERING_DOWN",
"TD_IIDMA_NEEDED",
"SEND_PLOGI",
"IDC_EVENT",
};
/*
* local interrupt aif flags
*/
"IFLG_INTR_LEGACY",
"IFLG_INTR_FIXED",
"IFLG_INTR_MSI",
"IFLG_INTR_MSIX",
};
"SRB_ISP_STARTED",
"SRB_ISP_COMPLETED",
"SRB_RETRY",
"SRB_POLL",
"SRB_WATCHDOG_ENABLED",
"SRB_ABORT",
"SRB_UB_IN_FCA",
"SRB_UB_IN_ISP",
"SRB_UB_CALLBACK",
"SRB_UB_RSCN",
"SRB_UB_FCP",
"SRB_FCP_CMD_PKT",
"SRB_FCP_DATA_PKT",
"SRB_FCP_RSP_PKT",
"SRB_IP_PKT",
"SRB_GENERIC_SERVICES_PKT",
"SRB_COMMAND_TIMEOUT",
"SRB_ABORTING",
"SRB_IN_DEVICE_QUEUE",
"SRB_IN_TOKEN_ARRAY",
"SRB_UB_FREE_REQUESTED",
"SRB_UB_ACQUIRED",
"SRB_MS_PKT",
};
"LQF_UNTAGGED_PENDING",
};
"TQF_TAPE_DEVICE",
"TQF_QUEUE_SUSPENDED",
"TQF_FABRIC_DEVICE",
"TQF_INITIATOR_DEVICE",
"TQF_RSCN_RCVD",
"TQF_NEED_AUTHENTICATION",
"TQF_PLOGI_PROGRS",
"TQF_IIDMA_NEEDED",
};
"QL_DUMPING",
"QL_DUMP_VALID",
"QL_DUMP_UPLOADED",
};
/*
* qlclinks_dcmd
* mdb dcmd which prints out the ql_hba pointers
*
* Input:
* addr = User supplied address -- error if supplied.
* flags = mdb flags.
* argc = Number of user supplied args -- error if non-zero.
* argv = Arg array.
*
* Returns:
* DCMD_ERR, DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
return (DCMD_USAGE);
}
mdb_warn("failed to read ql_hba structure");
return (DCMD_ERR);
}
mdb_warn("failed to read ql_hba structure -- is qlc loaded?");
return (DCMD_ERR);
}
mdb_printf("\nqlc adapter state linkages (f=0x%llx, l=0x%llx)\n\n",
mdb_warn("Unable to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
hbaptr) == -1) {
mdb_warn("failed to read ql_adapter_state at %p",
hbaptr);
return (DCMD_OK);
}
mdb_printf("%<b>0x%016p%t%d%</b>\n",
/*
* If vp exists, loop through those
*/
mdb_warn("Unable to allocate memory for "
"ql_adapter_state vp\n");
return (DCMD_OK);
}
mdb_printf("%<u>vp baseaddr\t\tvp index%</u>\n");
sizeof (ql_adapter_state_t), vhbaptr) ==
-1) {
sizeof (ql_adapter_state_t));
sizeof (ql_adapter_state_t));
mdb_warn("failed to read vp "
"ql_adapter_state at %p", vhbaptr);
return (DCMD_OK);
}
mdb_printf("%<b>0x%016p%t%d%</b>\n",
}
mdb_printf("\n");
}
}
return (DCMD_OK);
}
/*
* qlcver_dcmd
* mdb dcmd which prints out the qlc driver version the mdb
* module was compiled with, and the verison of qlc which is
* currently loaded on the machine.
*
* Input:
* addr = User supplied address -- error if supplied.
* flags = mdb flags.
* argc = Number of user supplied args -- error if non-zero.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
return (DCMD_USAGE);
}
mdb_warn("unable to read qlc driver version\n");
} else {
mdb_printf("\n%s version currently loaded is: %s\n",
}
mdb_printf("qlc mdb library compiled with %s version: %s\n",
mdb_warn("unable to alloc fwverptr\n");
return (DCMD_OK);
}
mdb_warn("unable to read firmware table\n");
} else {
mdb_warn("failed to read ql_hba structure");
return (DCMD_ERR);
}
mdb_warn("Unable to allocate memory for "
"ql_adapter_state\n");
return (DCMD_OK);
}
"version", "instance list");
mdb_warn("unable to read fwverptr\n");
return (DCMD_OK);
}
mdb_warn("failed to read ql_hba structure");
} else {
}
found = 0;
sizeof (ql_adapter_state_t), hbaptr) ==
-1) {
mdb_warn("failed to read "
"ql_adapter_state at %p", hbaptr);
break;
}
if (found == 0) {
mdb_printf("%x.%02x.%02x\t",
qlstate->
mdb_printf("%d",
} else {
mdb_printf(", %d",
}
found = 1;
}
}
if (found == 1) {
mdb_printf("\n");
} else {
mdb_printf("not loaded\n");
}
}
}
return (DCMD_OK);
}
/*
* qlc_el_dcmd
* mdb dcmd which turns the extended logging bit on or off
* for the specificed qlc instance(s).
*
* Input:
* addr = User supplied address -- error if supplied.
* flags = mdb flags.
* argc = Number of user supplied args -- error if non-zero.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
int mdbs;
return (DCMD_OK);
}
return (DCMD_USAGE);
}
/*
* Check and make sure the driver version and the mdb versions
* match so all the structures and flags line up
*/
mdb_warn("unable to read qlc driver version\n");
return (DCMD_OK);
}
mdb_printf("\tqlc mdb library compiled version is: %s\n",
return (DCMD_OK);
}
} else {
return (DCMD_USAGE);
}
mdb_warn("failed to read ql_hba structure");
return (DCMD_ERR);
}
mdb_warn("failed to read ql_hba structure - is qlc loaded?");
return (DCMD_ERR);
}
mdb_warn("Unable to allocate memory for "
"ql_adapter_state\n");
return (DCMD_OK);
}
if (argc != 2) {
return (DCMD_USAGE);
}
mdb_warn("failed to read ql_adapter_state "
"at %p", hbaptr);
return (DCMD_OK);
}
}
} else {
/* find the correct instance to change */
mdb_warn("failed to read "
"ql_adapter_state at %p", hbaptr);
return (DCMD_OK);
}
break;
}
}
mdb_printf("instance %d is not loaded",
instance);
continue;
}
}
}
return (DCMD_OK);
}
/*
* qlc_elog_common
*
* Input:
* qlstate = adapter state structure
* elswitch = boolean which specifies to reset (0) or set (1) the
* extended logging bit.
*
* Returns:
*
* Context:
* User context.
*
*/
static void
{
if (elswitch) {
mdb_warn("instance %d - unable to update",
} else {
mdb_printf("instance %d extended logging is "
}
} else {
mdb_printf("instance %d extended logging is "
}
} else {
mdb_warn("instance %d - unable to update",
} else {
mdb_printf("instance %d extended logging is "
}
} else {
mdb_printf("instance %d extended logging is "
}
}
}
/*
* qlc_ocs_dcmd
* mdb dcmd which prints out the outstanding command array using
* caller supplied address (which sb the ha structure).
*
* Input:
* addr = User supplied ha address.
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*
*/
static int
/*ARGSUSED*/
{
if (!(flags & DCMD_ADDRSPEC)) {
return (DCMD_USAGE);
}
if ((qlstate = (ql_adapter_state_t *)
mdb_warn("Unable to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
mdb_printf("qlc instance: %d, base addr = %llx, osc base = %p\n",
NULL) {
mdb_warn("failed to allocate space for srb_t\n");
return (DCMD_OK);
}
break;
}
if (ptr1 == 0) {
continue;
}
break;
}
found++;
}
return (DCMD_OK);
}
/*
* qlc_wdog_dcmd
* mdb dcmd which prints out the commands which are linked
* on the watchdog linked list. Caller supplied address (which
* sb the ha structure).
*
* Input:
* addr = User supplied ha address.
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*
*/
static int
/*ARGSUSED*/
{
int nextlink;
if (!(flags & DCMD_ADDRSPEC)) {
return (DCMD_USAGE);
}
if ((qlstate = (ql_adapter_state_t *)
mdb_warn("Unable to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
/*
* Read in the device array
*/
return (DCMD_OK);
}
/*
* Validate the devices watchdog queue
*/
/* Skip empty ones */
continue;
}
/* Loop through targets on device linked list */
/* get the first link */
/*
* traverse the targets linked list at this device array index.
*/
/* Get the target */
mdb_warn("failed to read ql_tgt at %p",
break;
}
mdb_printf("tgt q base = %llx, ",
}
mdb_printf("tgt: %02x%02x%02x%02x%02x%02x%02x%02x ",
/*
* Loop through commands on this targets watchdog queue.
*/
/* Get the first link on the targets cmd wdg q. */
mdb_printf(" watchdog list empty ");
break;
} else {
mdb_warn("failed to read ql_link_t"
break;
}
/* There is aleast one. */
count = 1;
/*
* Count the remaining items in the
* cmd watchdog list.
*/
/* Read in the next ql_link_t header */
sizeof (ql_link_t),
mdb_warn("failed to read"
" ql_link_t next at %p",
break;
}
}
mdb_printf(" watchdog list: %d entries\n",
count);
/* get the first one again */
mdb_warn("failed to read ql_link_t"
break;
}
}
/*
* Traverse the targets cmd watchdog linked list
* verifying srb's from the list are on a lun cmd list.
*/
int found = 0;
/* get the srb */
mdb_warn("failed to read ql_srb_t"
break;
}
mdb_printf("ql_srb %llx ",
/*
* Get the lun q the srb is on
*/
mdb_warn("failed to read ql_srb_t"
break;
}
/*
* traverse the lun cmd linked list looking
* for the srb from the targets watchdog list
*/
if (srblink->base_address ==
lqlink->base_address) {
mdb_printf("on lun %d cmd q\n",
found = 1;
break;
}
/* get next item on lun cmd list */
}
if (!found) {
mdb_printf("not found on lun cmd q\n");
}
/* get next item in the watchdog list */
} /* End targets command watchdog list */
/* get next item in this target list */
} /* End traverse the device targets linked list */
mdb_printf("\n");
} /* End device array */
return (DCMD_OK);
}
/*
* get_first_link
* Gets the first ql_link_t header on ql_head.
*
* Input:
* ql_head = pointer to a ql_head_t structure.
* ql_link = pointer to a ql_link_t structure.
*
* Returns:
* DCMD_ABORT, or DCMD_OK
*
* Context:
* User context.
*
*/
static int
{
/* Read in the first ql_link_t header */
mdb_warn("failed to read ql_link_t "
} else {
}
}
}
return (rval);
}
/*
* get_next_link
* Gets the next ql_link_t structure.
*
* Input:
* ql_link = pointer to a ql_link_t structure.
*
* Returns:
* DCMD_ABORT, or DCMD_OK
*
* Context:
* User context.
*
*/
static int
{
/* Read in the next ql_link_t header */
mdb_warn("failed to read ql_link_t "
} else {
}
}
}
return (rval);
}
/*
* qlcstate_dcmd
* mdb dcmd which prints out the ql_state info using
* caller supplied address.
*
* Input:
* addr = User supplied address.
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*/
static int
{
int verbose = 0;
if (!(flags & DCMD_ADDRSPEC)) {
return (DCMD_USAGE);
}
argc) {
return (DCMD_USAGE);
}
if ((qlstate = (ql_adapter_state_t *)
mdb_warn("failed to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
addr);
mdb_printf("\nadapter state flags:\n");
mdb_printf("\nadapter cfg flags:\n");
mdb_printf("\ntask daemon state flags:\n");
if (verbose) {
}
return (DCMD_OK);
}
/*
* qlcstates_walk_init
* mdb walker init which prints out all qlc states info.
*
* Input:
* wsp - Pointer to walker state struct
*
* Returns:
* WALK_ERR, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
mdb_warn("failed to read ql_hba structure");
return (WALK_ERR);
}
UM_SLEEP);
return (WALK_NEXT);
} else {
}
}
/*
* qlstates_walk_step
* mdb walker step which prints out all qlc states info.
*
* Input:
* wsp - Pointer to walker state struct
*
* Returns:
* WALK_DONE, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
return (WALK_DONE);
}
mdb_warn("failed to read ql_adapter_state at %p",
return (WALK_DONE);
}
mdb_printf("qlc instance: %d, base addr = %llx\n",
mdb_printf("\nadapter state flags:\n");
mdb_printf("\nadapter cfg flags:\n");
mdb_printf("\ntask daemon state flags:\n");
mdb_printf("\nadapter state:\n");
mdb_printf("\n");
return (WALK_NEXT);
}
/*
* qlstates_walk_fini
* mdb walker fini which wraps up the walker
*
* Input:
* wsp - Pointer to walker state struct
*
* Returns:
*
* Context:
* User context.
*
*/
static void
{
}
/*
* qlsrb_walk_init
* mdb walker init which prints out linked srb's
*
* Input:
* wsp - Pointer to walker ql_srb struct
*
* Returns:
* WALK_ERR, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
mdb_warn("failed to read ql_srb addr at %p",
return (WALK_ERR);
}
return (WALK_NEXT);
}
/*
* qlcsrb_walk_step
* mdb walker step which prints out linked ql_srb structures
*
* Input:
* wsp - Pointer to walker srb struct
*
* Returns:
* WALK_DONE, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
return (WALK_DONE);
return (WALK_DONE);
}
mdb_printf("\nql_srb flags:\n");
mdb_printf("\nql_srb:\n");
mdb_printf("\n");
return (WALK_NEXT);
}
/*
* qlsrb_walk_fini
* mdb walker fini which wraps up the walker
*
* Input:
* wsp - Pointer to walker state struct
*
* Returns:
*
* Context:
* User context.
*
*/
static void
{
}
/*
* qllunq_dcmd
* mdb walker which prints out lun q's
*
* Input:
* wsp - Pointer to walker ql_lun struct
*
* Returns:
* WALK_ERR, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
mdb_warn("failed to read ql_lun addr at %p",
return (WALK_ERR);
}
return (WALK_NEXT);
}
/*
* qlclunq_walk_step
* mdb walker step which prints out linked ql_lun structures
*
* Input:
* wsp - Pointer to walker srb struct
*
* Returns:
* WALK_DONE, or WALK_NEXT
*
* Context:
* User context.
*
*/
static int
{
return (WALK_DONE);
return (WALK_DONE);
}
mdb_printf("\nql_lun flags:\n");
mdb_printf("\nql_lun:\n");
mdb_printf("\n");
return (WALK_DONE);
} else {
/*
* Read in the next link_t header
*/
mdb_warn("failed to read ql_link_t "
return (WALK_DONE);
}
}
return (WALK_NEXT);
}
/*
* qllunq_walk_fini
* mdb walker fini which wraps up the walker
*
* Input:
* wsp - Pointer to walker state struct
*
* Returns:
*
* Context:
* User context.
*
*/
static void
{
}
/*
* qltgtq_dcmd
* mdb dcmd which prints out an hs's tq struct info.
*
* Input:
* addr = User supplied address. (NB: nust be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_USAGE, or DCMD_OK
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
mdb_warn("ql_hba structure addr is required");
return (DCMD_USAGE);
}
/*
* Get the adapter state struct which was passed
*/
UM_SLEEP);
return (DCMD_OK);
}
return (DCMD_OK);
}
/*
* Read in the device array
*/
}
continue;
}
mdb_warn("failed to read ql_link_t at %p",
break;
}
mdb_warn("failed to read ql_tgt at %p",
link->base_address);
break;
}
mdb_printf("tgt queue base addr = %llx\n",
link->base_address);
mdb_printf("\ntgt queue:\n");
"struct ql_target");
mdb_printf("\n");
break;
}
}
}
return (DCMD_OK);
}
/*
* ql_triggerdump_dcmd
* Triggers the driver to take a firmware dump
*
* Input:
* addr = User supplied address (optional)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array (instance #, optional).
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
#if 0
/*ARGSUSED*/
static int
{
int mdbs;
return (DCMD_OK);
}
mdb_warn("Unable to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
char *tptr;
if (argc == 0) {
mdb_warn("must specify either the ha addr or "
"the instance number\n");
return (DCMD_OK);
}
/*
* find the specified instance in the ha list
*/
mdb_printf("instance # is illegal: '%s'\n",
return (DCMD_OK);
}
mdb_warn("failed to read ql_hba structure");
return (DCMD_ERR);
}
mdb_warn("failed to read ql_hba structure - "
"is qlc loaded?");
return (DCMD_ERR);
}
mdb_warn("failed to read "
"ql_adapter_state at %p", hbaptr);
return (DCMD_OK);
}
break;
}
}
} else {
/*
* verify the addr specified
*/
mdb_warn("failed to read ql_hba structure");
return (DCMD_ERR);
}
mdb_warn("failed to read ql_hba structure - "
"is qlc loaded?");
return (DCMD_ERR);
}
mdb_warn("failed to read "
"ql_adapter_state at %p", hbaptr);
return (DCMD_OK);
}
break;
}
}
}
if (argc == 0) {
mdb_warn("addr specified is not in the hba list\n");
} else {
mdb_warn("instance specified does not exist\n");
}
return (DCMD_OK);
}
mdb_warn("instance %d already has a valid dump\n",
return (DCMD_OK);
}
}
#endif
/*
* ql_getdump_dcmd
* prints out the firmware dump buffer
*
* Input:
* addr = User supplied address. (NB: must be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
static int
{
int verbose = 0;
mdb_warn("ql_adapter_state structure addr is required");
return (DCMD_USAGE);
}
argc) {
return (DCMD_USAGE);
}
/*
* Get the adapter state struct which was passed
*/
mdb_warn("failed to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
/*
* show user which instances have valid f/w dumps available if
* user has specified verbose option
*/
mdb_warn("failed to read ql_hba structure");
mdb_warn("failed to read ql_hba structure -- is qlc loaded?");
} else if (verbose) {
hbaptr) == -1) {
mdb_warn("failed read ql_adapter_state at %p",
hbaptr);
return (DCMD_OK);
}
if (ha->ql_dump_state == 0) {
mdb_printf("no dump flags\n");
} else {
}
mdb_printf("no dump address\n");
} else {
mdb_printf("dump address is: %p\n",
ha->ql_dump_ptr);
}
}
mdb_printf("\n");
}
return (DCMD_OK);
}
/*
* If its not a valid dump or there's not a f/w dump binary (???)
* then bail out
*/
mdb_warn("dump does not exist for instance %d (%x, %p)\n",
return (DCMD_OK);
}
}
return (DCMD_OK);
}
/*
* ql_23xx_dump_dcmd
* prints out a firmware dump buffer
*
* Input:
* addr = User supplied address. (NB: nust be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
int mbox_cnt;
mdb_warn("failed to read ql_dump_ptr (no f/w dump active?)");
return (DCMD_OK);
}
mdb_printf("\nISP 2300IP ");
mdb_printf("\nISP 6322FLX ");
} else {
mdb_printf("\nISP 2200IP ");
}
mdb_printf("Firmware Version %d.%d.%d\n",
mdb_printf("\nPBIU Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nReqQ-RspQ-Risc2Host Status registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
}
mdb_printf("\n\nMailbox Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nAuto Request Response DMA Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
}
mdb_printf("\n\nDMA Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC Hardware Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP0 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP1 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP2 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP3 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP4 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP5 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP6 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP7 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFrame Buffer Hardware Registers:");
if ((cnt == 16) &&
break;
}
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFPM B0 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFPM B1 Registers:");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCode RAM Dump:");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nStack RAM Dump:");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nData RAM Dump:");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\n[<==END] ISP Debug Dump.\n");
mdb_printf("\n\nRequest Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nResponse Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n");
} else {
mdb_printf("\n\nRISC SRAM:");
if (cnt % 8 == 0) {
}
}
}
return (DCMD_OK);
}
/*
* ql_24xx_dump_dcmd
* prints out a firmware dump buffer
*
* Input:
* addr = User supplied address. (NB: nust be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
mdb_warn("failed to read ql_dump_ptr (no f/w dump active?)");
return (DCMD_OK);
}
mdb_printf("ISP FW Version %d.%02d.%02d Attributes %X\n",
mdb_printf("\nHost Interface Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nMailbox Registers");
if (cnt % 16 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-2 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCommand DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nResponse0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest1 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT2 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT3 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT4 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT Data DMA Common Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nShadow Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nLMC Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFPM Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFB Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCode RAM");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExternal Memory");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n[<==END] ISP Debug Dump");
mdb_printf("\n\nRequest Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nResponse Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExtended Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
mdb_printf("\n\nFC Event Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
return (DCMD_OK);
}
/*
* ql_25xx_dump_dcmd
* prints out a firmware dump buffer
*
* Input:
* addr = User supplied address. (NB: nust be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
mdb_warn("failed to read ql_dump_ptr (no f/w dump active?)");
return (DCMD_OK);
}
mdb_printf("\nISP FW Version %d.%02d.%02d Attributes %X\n",
mdb_printf("\n\nHostRisc Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nPCIe Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nHost Interface Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nShadow Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nMailbox Registers");
if (cnt % 16 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-2 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-0 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-1 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-2 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCommand DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nResponse0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest1 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT2 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT3 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT4 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT Data DMA Common Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nLMC Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFPM Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFB Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCode RAM");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExternal Memory");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n[<==END] ISP Debug Dump");
mdb_printf("\n\nRequest Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nResponse Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExtended Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
mdb_printf("\n\nFC Event Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
mdb_printf("\n\nreturn exit\n");
return (DCMD_OK);
}
/*
* ql_81xx_dump_dcmd
* prints out a firmware dump buffer
*
* Input:
* addr = User supplied address. (NB: nust be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
/*ARGSUSED*/
static int
{
mdb_warn("failed to read ql_dump_ptr (no f/w dump active?)");
return (DCMD_OK);
}
mdb_printf("\nISP FW Version %d.%02d.%02d Attributes %X\n",
mdb_printf("\n\nHostRisc Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nPCIe Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nHost Interface Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nShadow Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nMailbox Registers");
if (cnt % 16 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-0 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-1 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRSEQ-2 Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-0 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-1 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nASEQ-2 GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCommand DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nResponse0 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRequest1 Queue DMA Channel Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT2 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT3 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT4 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nXMT Data DMA Common Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 0 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRCV Thread 1 Data DMA Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nRISC GP Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nLMC Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFPM Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nFB Hardware Registers");
if (cnt % 8 == 0) {
mdb_printf("\n");
}
}
mdb_printf("\n\nCode RAM");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExternal Memory");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n[<==END] ISP Debug Dump");
mdb_printf("\n\nRequest Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nResponse Queue");
if (cnt % 8 == 0) {
}
}
mdb_printf("\n\nExtended Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
mdb_printf("\n\nFC Event Trace Buffer Memory");
/* show data address as a byte address, data as long words */
if (cnt_b % 32 == 0) {
}
}
}
mdb_printf("\n\nreturn exit\n");
return (DCMD_OK);
}
/*
* ql_gettrace_dcmd
* prints out the Extended Logging trace buffer
*
* Input:
* addr = User supplied address. (NB: must be an ha)
* flags = mdb flags.
* argc = Number of user supplied args.
* argv = Arg array.
*
* Returns:
* DCMD_OK or DCMD_ERR
*
* Context:
* User context.
*
*/
static int
{
int verbose = 0;
int wrapped = 0;
char *trace_start;
char *trace_end;
char *dump_start = 0;
char *trace_next = 0;
char *dump_current = 0;
mdb_warn("ql_adapter_state structure addr is required");
return (DCMD_USAGE);
}
argc) {
return (DCMD_USAGE);
}
/*
* Get the adapter state struct which was passed
*/
mdb_warn("failed to allocate memory for ql_adapter_state\n");
return (DCMD_OK);
}
return (DCMD_OK);
}
/*
* If its not a valid trace descriptor then bail out
*/
mdb_warn("trace descriptor does not exist for instance %d\n",
return (DCMD_OK);
} else {
trace_desc = (el_trace_desc_t *)
mdb_warn("failed to read ql_adapter_state at %p",
addr);
return (DCMD_OK);
}
mdb_warn("trace buffer does not exist for "
return (DCMD_OK);
}
}
/* Get the trace buffer */
trace_start = (char *)
mdb_warn("failed to read trace buffer?)");
return (DCMD_OK);
}
/* set the end of the trace buffer. */
/* Find the start point of trace. */
/*
* If the buffer has not wrapped next will point at a null so
* start is the begining of the buffer. If next points at a char
* then we must traverse the buffer further until a null is detected.
* The location after the null will be the beginning of the oldest
* whole object in the buffer, which we use as the start.
*/
} else if (*trace_next != NULL) {
} else {
}
mdb_printf("\nExtended Logging trace buffer @%x, start @%x, "
/* Don't run off the end, no matter what. */
/* Show it... */
/* Calculate the next and make it the current */
/* check for wrap */
wrapped = 1;
} else if (wrapped) {
/* Don't go past next. */
break;
}
} else if (*dump_current == NULL) {
break;
}
}
return (DCMD_OK);
}
/*
* ql_doprint
* ql generic function to call the print dcmd
*
* Input:
* addr - address to struct
* prtsting - address to string
*
* Returns:
* WALK_DONE
*
* Context:
* User context.
*
*/
static int32_t
{
UM_SLEEP));
&printarg)) == -1) {
mdb_warn("ql_doprint: failed print dcmd: %s"
}
return (WALK_DONE);
}
/*
* ql_dump_flags
* mdb utility to print the flag string
*
* Input:
* flags - flags to print
* strings - text to print when flag is set
*
* Returns:
*
*
* Context:
* User context.
*
*/
static void
{
linel = 8;
mdb_printf("\t");
for (i = 0; i < 64; i++) {
break;
if (!first) {
mdb_printf(" | ");
} else {
first = 0;
}
if (linel > 80) {
mdb_printf("\n\t");
}
}
mask <<= 1;
}
mdb_printf("\n");
}
/*
* MDB module linkage information
*
*
* dcmd structures for the _mdb_init function
*/
{ "qlc_elog", "[on|off] [<inst #>|all]", "Turns qlc extended logging "
"on / off", qlc_el_dcmd },
{ "qlcstate", ":[-v]", "Prints qlc adapter state information",
{ "qlcgetdump", ":[-v]", "Retrieves the ASCII f/w dump",
{ "qlcgettrace", ":[-v]", "Retrieves the ASCII Extended Logging trace",
{ NULL }
};
/*
* walker structures for the _mdb_init function
*/
{ "qlcstates", "walk list of qlc ql_state_t structures",
{ "qlcsrbs", "walk list of qlc ql_srb_t strctures",
{ "qlclunq", "walk list of qlc ql_lun_t strctures",
{ NULL }
};
};
/*
* Registration function which lists the dcmds and walker structures
*/
const mdb_modinfo_t *
_mdb_init(void)
{
return (&ql_mdb_modinfo);
}