003 File Manager
Current Path:
/usr/src/sys/dev/mpr
usr
/
src
/
sys
/
dev
/
mpr
/
📁
..
📁
mpi
📄
mpr.c
(118.27 KB)
📄
mpr_config.c
(52.9 KB)
📄
mpr_ioctl.h
(10.8 KB)
📄
mpr_mapping.c
(99.65 KB)
📄
mpr_mapping.h
(4.45 KB)
📄
mpr_pci.c
(14.05 KB)
📄
mpr_sas.c
(103.87 KB)
📄
mpr_sas.h
(5.38 KB)
📄
mpr_sas_lsi.c
(51 KB)
📄
mpr_table.c
(20.37 KB)
📄
mpr_table.h
(2.84 KB)
📄
mpr_user.c
(70.62 KB)
📄
mprvar.h
(29.41 KB)
Editing: mpr_table.h
/*- * Copyright (c) 2009 Yahoo! Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ #ifndef _MPR_TABLE_H #define _MPR_TABLE_H struct mpr_table_lookup { char *string; u_int code; }; char * mpr_describe_table(struct mpr_table_lookup *table, u_int code); void mpr_describe_devinfo(uint32_t devinfo, char *string, int len); extern struct mpr_table_lookup mpr_event_names[]; extern struct mpr_table_lookup mpr_phystatus_names[]; extern struct mpr_table_lookup mpr_linkrate_names[]; extern struct mpr_table_lookup mpr_pcie_linkrate_names[]; extern struct mpr_table_lookup mpr_iocstatus_string[]; extern struct mpr_table_lookup mpr_scsi_status_string[]; extern struct mpr_table_lookup mpr_scsi_taskmgmt_string[]; void mpr_print_iocfacts(struct mpr_softc *, MPI2_IOC_FACTS_REPLY *); void mpr_print_portfacts(struct mpr_softc *, MPI2_PORT_FACTS_REPLY *); void mpr_print_evt_generic(struct mpr_softc *, MPI2_EVENT_NOTIFICATION_REPLY *); void mpr_print_sasdev0(struct mpr_softc *, MPI2_CONFIG_PAGE_SAS_DEV_0 *); void mpr_print_evt_sas(struct mpr_softc *, MPI2_EVENT_NOTIFICATION_REPLY *); void mpr_print_expander1(struct mpr_softc *, MPI2_CONFIG_PAGE_EXPANDER_1 *); void mpr_print_sasphy0(struct mpr_softc *, MPI2_CONFIG_PAGE_SAS_PHY_0 *); void mpr_print_sgl(struct mpr_softc *, struct mpr_command *, int); void mpr_print_scsiio_cmd(struct mpr_softc *, struct mpr_command *); #define MPR_DPRINT_PAGE(sc, level, func, buf) \ do { \ if ((sc)->mpr_debug & level) \ mpr_print_##func((sc), buf); \ } while (0) #define MPR_DPRINT_EVENT(sc, func, buf) \ MPR_DPRINT_PAGE(sc, MPR_EVENT, evt_##func, buf) #endif
Upload File
Create Folder