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 #ifndef __BFA_DEFS_AEN_H__
19 #define __BFA_DEFS_AEN_H__
21 #include <defs/bfa_defs_types.h>
22 #include <defs/bfa_defs_ioc.h>
23 #include <defs/bfa_defs_adapter.h>
24 #include <defs/bfa_defs_port.h>
25 #include <defs/bfa_defs_lport.h>
26 #include <defs/bfa_defs_rport.h>
27 #include <defs/bfa_defs_itnim.h>
28 #include <defs/bfa_defs_tin.h>
29 #include <defs/bfa_defs_ipfc.h>
30 #include <defs/bfa_defs_audit.h>
31 #include <defs/bfa_defs_ethport.h>
33 enum bfa_aen_category
{
34 BFA_AEN_CAT_ADAPTER
= 1,
36 BFA_AEN_CAT_LPORT
= 3,
37 BFA_AEN_CAT_RPORT
= 4,
38 BFA_AEN_CAT_ITNIM
= 5,
41 BFA_AEN_CAT_AUDIT
= 8,
43 BFA_AEN_CAT_ETHPORT
= 10,
48 union bfa_aen_data_u
{
49 struct bfa_adapter_aen_data_s adapter
;
50 struct bfa_port_aen_data_s port
;
51 struct bfa_lport_aen_data_s lport
;
52 struct bfa_rport_aen_data_s rport
;
53 struct bfa_itnim_aen_data_s itnim
;
54 struct bfa_audit_aen_data_s audit
;
55 struct bfa_ioc_aen_data_s ioc
;
56 struct bfa_ethport_aen_data_s ethport
;
59 struct bfa_aen_entry_s
{
60 enum bfa_aen_category aen_category
;
62 union bfa_aen_data_u aen_data
;
63 struct bfa_timeval_s aen_tv
;
71 #define bfa_aen_event_t int
73 #endif /* __BFA_DEFS_AEN_H__ */