/* * Copyright (c) 2006, 2007, 2008, 2009, 2010 QLogic Corporation. * All rights reserved. * Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - 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. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <linux/pci.h> #include <linux/delay.h> #include "qib.h" #include "qib_common.h" /** * qib_format_hwmsg - format a single hwerror message * @msg: message buffer * @msgl: length of message buffer * @hwmsg: message to add to message buffer */ static void qib_format_hwmsg(char *msg, size_t msgl, const char *hwmsg) { … } /** * qib_format_hwerrors - format hardware error messages for display * @hwerrs: hardware errors bit vector * @hwerrmsgs: hardware error descriptions * @nhwerrmsgs: number of hwerrmsgs * @msg: message buffer * @msgl: message buffer length */ void qib_format_hwerrors(u64 hwerrs, const struct qib_hwerror_msgs *hwerrmsgs, size_t nhwerrmsgs, char *msg, size_t msgl) { … } static void signal_ib_event(struct qib_pportdata *ppd, enum ib_event_type ev) { … } void qib_handle_e_ibstatuschanged(struct qib_pportdata *ppd, u64 ibcs) { … } void qib_clear_symerror_on_linkup(struct timer_list *t) { … } /* * Handle receive interrupts for user ctxts; this means a user * process was waiting for a packet to arrive, and didn't want * to poll. */ void qib_handle_urcv(struct qib_devdata *dd, u64 ctxtr) { … } void qib_bad_intrstatus(struct qib_devdata *dd) { … }