1fcf3ce44SJohn Forte /* 2fcf3ce44SJohn Forte * CDDL HEADER START 3fcf3ce44SJohn Forte * 4fcf3ce44SJohn Forte * The contents of this file are subject to the terms of the 5fcf3ce44SJohn Forte * Common Development and Distribution License (the "License"). 6fcf3ce44SJohn Forte * You may not use this file except in compliance with the License. 7fcf3ce44SJohn Forte * 8*8f23e9faSHans Rosenfeld * You can obtain a copy of the license at 9*8f23e9faSHans Rosenfeld * http://www.opensource.org/licenses/cddl1.txt. 10fcf3ce44SJohn Forte * See the License for the specific language governing permissions 11fcf3ce44SJohn Forte * and limitations under the License. 12fcf3ce44SJohn Forte * 13fcf3ce44SJohn Forte * When distributing Covered Code, include this CDDL HEADER in each 14fcf3ce44SJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fcf3ce44SJohn Forte * If applicable, add the following below this CDDL HEADER, with the 16fcf3ce44SJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying 17fcf3ce44SJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner] 18fcf3ce44SJohn Forte * 19fcf3ce44SJohn Forte * CDDL HEADER END 20fcf3ce44SJohn Forte */ 21fcf3ce44SJohn Forte 22fcf3ce44SJohn Forte /* 23*8f23e9faSHans Rosenfeld * Copyright (c) 2004-2011 Emulex. All rights reserved. 2482527734SSukumar Swaminathan * Use is subject to license terms. 25fcf3ce44SJohn Forte */ 26fcf3ce44SJohn Forte 27fcf3ce44SJohn Forte #ifndef _EMLXS_MDB_H 28fcf3ce44SJohn Forte #define _EMLXS_MDB_H 29fcf3ce44SJohn Forte 30fcf3ce44SJohn Forte #ifdef __cplusplus 31fcf3ce44SJohn Forte extern "C" { 32fcf3ce44SJohn Forte #endif 33fcf3ce44SJohn Forte 34*8f23e9faSHans Rosenfeld #define DRIVER_NAME "emlxs" 35*8f23e9faSHans Rosenfeld 36fcf3ce44SJohn Forte #include <sys/kmem.h> 37fcf3ce44SJohn Forte #include <sys/types.h> 38fcf3ce44SJohn Forte #include <sys/mdb_modapi.h> 39fcf3ce44SJohn Forte #include <sys/ddi.h> 40fcf3ce44SJohn Forte #include <sys/sunddi.h> 41fcf3ce44SJohn Forte 42fcf3ce44SJohn Forte #define MAX_FC_BRDS 256 /* Maximum # boards per system */ 43fcf3ce44SJohn Forte 44fcf3ce44SJohn Forte void emlxs_msgbuf_help(); 45fcf3ce44SJohn Forte 46fcf3ce44SJohn Forte int emlxs_msgbuf(uintptr_t base_addr, uint_t flags, int argc, 47fcf3ce44SJohn Forte const mdb_arg_t *argv); 48fcf3ce44SJohn Forte 49291a2b48SSukumar Swaminathan void emlxs_dump_help(); 50291a2b48SSukumar Swaminathan 51291a2b48SSukumar Swaminathan int emlxs_dump(uintptr_t base_addr, uint_t flags, int argc, 52291a2b48SSukumar Swaminathan const mdb_arg_t *argv); 53291a2b48SSukumar Swaminathan 54fcf3ce44SJohn Forte #ifdef __cplusplus 55fcf3ce44SJohn Forte } 56fcf3ce44SJohn Forte #endif 57fcf3ce44SJohn Forte 58fcf3ce44SJohn Forte #endif /* _EMLXS_MDB_H */ 59