diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_lps_priv.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_lps_priv.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_lps_priv.h b/drivers/scsi/bfa/bfa_lps_priv.h new file mode 100644 index 00000000000..d16c6ce995d --- /dev/null +++ b/drivers/scsi/bfa/bfa_lps_priv.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. | ||
3 | * All rights reserved | ||
4 | * www.brocade.com | ||
5 | * | ||
6 | * Linux driver for Brocade Fibre Channel Host Bus Adapter. | ||
7 | * | ||
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 | ||
11 | * | ||
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. | ||
16 | */ | ||
17 | |||
18 | #ifndef __BFA_LPS_PRIV_H__ | ||
19 | #define __BFA_LPS_PRIV_H__ | ||
20 | |||
21 | #include <bfa_svc.h> | ||
22 | |||
23 | struct bfa_lps_mod_s { | ||
24 | struct list_head lps_free_q; | ||
25 | struct list_head lps_active_q; | ||
26 | struct bfa_lps_s *lps_arr; | ||
27 | int num_lps; | ||
28 | }; | ||
29 | |||
30 | #define BFA_LPS_MOD(__bfa) (&(__bfa)->modules.lps_mod) | ||
31 | #define BFA_LPS_FROM_TAG(__mod, __tag) (&(__mod)->lps_arr[__tag]) | ||
32 | |||
33 | /* | ||
34 | * external functions | ||
35 | */ | ||
36 | void bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | ||
37 | |||
38 | #endif /* __BFA_LPS_PRIV_H__ */ | ||