180529Sdd/*- 280529Sdd * This file is provided under a dual BSD/GPLv2 license. When using or 380529Sdd * redistributing this file, you may do so under either license. 480529Sdd * 580529Sdd * GPL LICENSE SUMMARY 680529Sdd * 780529Sdd * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 880529Sdd * 980529Sdd * This program is free software; you can redistribute it and/or modify 1080529Sdd * it under the terms of version 2 of the GNU General Public License as 1180529Sdd * published by the Free Software Foundation. 1280529Sdd * 1380529Sdd * This program is distributed in the hope that it will be useful, but 1480529Sdd * WITHOUT ANY WARRANTY; without even the implied warranty of 1580529Sdd * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1680529Sdd * General Public License for more details. 1780529Sdd * 1880529Sdd * You should have received a copy of the GNU General Public License 1980529Sdd * along with this program; if not, write to the Free Software 2080529Sdd * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 2180529Sdd * The full GNU General Public License is included in this distribution 2280529Sdd * in the file called LICENSE.GPL. 2380529Sdd * 2480529Sdd * BSD LICENSE 2580529Sdd * 2680529Sdd * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 2780529Sdd * All rights reserved. 2880529Sdd * 2980529Sdd * Redistribution and use in source and binary forms, with or without 3080529Sdd * modification, are permitted provided that the following conditions 3180529Sdd * are met: 3280529Sdd * 3380529Sdd * * Redistributions of source code must retain the above copyright 3480529Sdd * notice, this list of conditions and the following disclaimer. 3580529Sdd * * Redistributions in binary form must reproduce the above copyright 3680529Sdd * notice, this list of conditions and the following disclaimer in 3780529Sdd * the documentation and/or other materials provided with the 3880529Sdd * distribution. 3980529Sdd * 4080529Sdd * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 4180529Sdd * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 4280529Sdd * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 4380529Sdd * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 4480529Sdd * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4580529Sdd * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 4680529Sdd * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 4780529Sdd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 4880529Sdd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 4980529Sdd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 5080529Sdd * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 5180529Sdd * 5280529Sdd * $FreeBSD$ 5380529Sdd */ 5480529Sdd#ifndef _SCIF_SAS_LOGGER_H_ 5580529Sdd#define _SCIF_SAS_LOGGER_H_ 5680529Sdd 5780529Sdd/** 5880529Sdd * @file 5980529Sdd * 6080529Sdd * @brief This file contains all of the SCI SAS Framework specific logger 6180529Sdd * object methods. 6280529Sdd */ 6380529Sdd 6480529Sdd#ifdef __cplusplus 6580529Sddextern "C" { 6680529Sdd#endif // __cplusplus 6780529Sdd 6880529Sdd#include <dev/isci/scil/scif_logger.h> 6980529Sdd#include <dev/isci/scil/scif_user_callback.h> 7080529Sdd 7180529Sdd#if defined (SCI_LOGGING) 7284212Sdillon 7384212Sdillon#define SCIF_LOG_ERROR(x) scif_cb_logger_log_error x 7480529Sdd#define SCIF_LOG_WARNING(x) scif_cb_logger_log_warning x 7580529Sdd#define SCIF_LOG_INFO(x) scif_cb_logger_log_info x 7680529Sdd#define SCIF_LOG_TRACE(x) scif_cb_logger_log_trace x 7780529Sdd#define SCIF_LOG_STATES(x) scif_cb_logger_log_states x 7880529Sdd 7980529Sdd#else // defined (SCI_LOGGING) 8080529Sdd 8180529Sdd#define SCIF_LOG_ERROR(x) 8280529Sdd#define SCIF_LOG_WARNING(x) 8380529Sdd#define SCIF_LOG_INFO(x) 8480529Sdd#define SCIF_LOG_TRACE(x) 8580529Sdd#define SCIF_LOG_STATES(x) 8680529Sdd 8780529Sdd#endif // defined (SCI_LOGGING) 8880529Sdd 8980529Sdd#ifdef __cplusplus 9080529Sdd} 9180529Sdd#endif // __cplusplus 9280529Sdd 9380529Sdd#endif // _SCIF_SAS_LOGGER_H_ 9480529Sdd 9580529Sdd