2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #include <cs/bfa_debug.h>
19 #include <bfa_os_inc.h>
21 #include <log/bfa_log_hal.h>
29 bfa_panic(int line
, char *file
, char *panicstr
)
31 bfa_log(NULL
, BFA_LOG_HAL_ASSERT
, file
, line
, panicstr
);
36 bfa_sm_panic(struct bfa_log_mod_s
*logm
, int line
, char *file
, int event
)
38 bfa_log(logm
, BFA_LOG_HAL_SM_ASSERT
, file
, line
, event
);
43 bfa_q_is_on_q_func(struct list_head
*q
, struct list_head
*qe
)
45 struct list_head
*tqe
;
51 tqe
= bfa_q_next(tqe
);