diff options
Diffstat (limited to 'drivers/scsi/bfa/include/defs/bfa_defs_boot.h')
-rw-r--r-- | drivers/scsi/bfa/include/defs/bfa_defs_boot.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_boot.h b/drivers/scsi/bfa/include/defs/bfa_defs_boot.h new file mode 100644 index 00000000000..6f4aa528354 --- /dev/null +++ b/drivers/scsi/bfa/include/defs/bfa_defs_boot.h | |||
@@ -0,0 +1,71 @@ | |||
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_DEFS_BOOT_H__ | ||
19 | #define __BFA_DEFS_BOOT_H__ | ||
20 | |||
21 | #include <protocol/types.h> | ||
22 | #include <defs/bfa_defs_types.h> | ||
23 | #include <defs/bfa_defs_pport.h> | ||
24 | |||
25 | enum { | ||
26 | BFA_BOOT_BOOTLUN_MAX = 4, /* maximum boot lun per IOC */ | ||
27 | }; | ||
28 | |||
29 | #define BOOT_CFG_REV1 1 | ||
30 | |||
31 | /** | ||
32 | * Boot options setting. Boot options setting determines from where | ||
33 | * to get the boot lun information | ||
34 | */ | ||
35 | enum bfa_boot_bootopt { | ||
36 | BFA_BOOT_AUTO_DISCOVER = 0, /* Boot from blun provided by fabric */ | ||
37 | BFA_BOOT_STORED_BLUN = 1, /* Boot from bluns stored in flash */ | ||
38 | BFA_BOOT_FIRST_LUN = 2, /* Boot from first discovered blun */ | ||
39 | }; | ||
40 | |||
41 | /** | ||
42 | * Boot lun information. | ||
43 | */ | ||
44 | struct bfa_boot_bootlun_s { | ||
45 | wwn_t pwwn; /* port wwn of target */ | ||
46 | lun_t lun; /* 64-bit lun */ | ||
47 | }; | ||
48 | |||
49 | /** | ||
50 | * BOOT boot configuraton | ||
51 | */ | ||
52 | struct bfa_boot_cfg_s { | ||
53 | u8 version; | ||
54 | u8 rsvd1; | ||
55 | u16 chksum; | ||
56 | |||
57 | u8 enable; /* enable/disable SAN boot */ | ||
58 | u8 speed; /* boot speed settings */ | ||
59 | u8 topology; /* boot topology setting */ | ||
60 | u8 bootopt; /* bfa_boot_bootopt_t */ | ||
61 | |||
62 | u32 nbluns; /* number of boot luns */ | ||
63 | |||
64 | u32 rsvd2; | ||
65 | |||
66 | struct bfa_boot_bootlun_s blun[BFA_BOOT_BOOTLUN_MAX]; | ||
67 | struct bfa_boot_bootlun_s blun_disc[BFA_BOOT_BOOTLUN_MAX]; | ||
68 | }; | ||
69 | |||
70 | |||
71 | #endif /* __BFA_DEFS_BOOT_H__ */ | ||