diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_disc.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_disc.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_disc.h b/drivers/scsi/lpfc/lpfc_disc.h index ed6c81660e03..8932b1be2b60 100644 --- a/drivers/scsi/lpfc/lpfc_disc.h +++ b/drivers/scsi/lpfc/lpfc_disc.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************* | 1 | /******************************************************************* |
2 | * This file is part of the Emulex Linux Device Driver for * | 2 | * This file is part of the Emulex Linux Device Driver for * |
3 | * Fibre Channel Host Bus Adapters. * | 3 | * Fibre Channel Host Bus Adapters. * |
4 | * Copyright (C) 2004-2005 Emulex. All rights reserved. * | 4 | * Copyright (C) 2004-2006 Emulex. All rights reserved. * |
5 | * EMULEX and SLI are trademarks of Emulex. * | 5 | * EMULEX and SLI are trademarks of Emulex. * |
6 | * www.emulex.com * | 6 | * www.emulex.com * |
7 | * * | 7 | * * |
@@ -28,18 +28,24 @@ | |||
28 | * This is used by Fibre Channel protocol to support FCP. | 28 | * This is used by Fibre Channel protocol to support FCP. |
29 | */ | 29 | */ |
30 | 30 | ||
31 | /* worker thread events */ | ||
32 | enum lpfc_work_type { | ||
33 | LPFC_EVT_NODEV_TMO, | ||
34 | LPFC_EVT_ONLINE, | ||
35 | LPFC_EVT_OFFLINE, | ||
36 | LPFC_EVT_WARM_START, | ||
37 | LPFC_EVT_KILL, | ||
38 | LPFC_EVT_ELS_RETRY, | ||
39 | }; | ||
40 | |||
31 | /* structure used to queue event to the discovery tasklet */ | 41 | /* structure used to queue event to the discovery tasklet */ |
32 | struct lpfc_work_evt { | 42 | struct lpfc_work_evt { |
33 | struct list_head evt_listp; | 43 | struct list_head evt_listp; |
34 | void * evt_arg1; | 44 | void * evt_arg1; |
35 | void * evt_arg2; | 45 | void * evt_arg2; |
36 | uint32_t evt; | 46 | enum lpfc_work_type evt; |
37 | }; | 47 | }; |
38 | 48 | ||
39 | #define LPFC_EVT_NODEV_TMO 0x1 | ||
40 | #define LPFC_EVT_ONLINE 0x2 | ||
41 | #define LPFC_EVT_OFFLINE 0x3 | ||
42 | #define LPFC_EVT_ELS_RETRY 0x4 | ||
43 | 49 | ||
44 | struct lpfc_nodelist { | 50 | struct lpfc_nodelist { |
45 | struct list_head nlp_listp; | 51 | struct list_head nlp_listp; |
@@ -56,6 +62,7 @@ struct lpfc_nodelist { | |||
56 | 62 | ||
57 | uint16_t nlp_rpi; | 63 | uint16_t nlp_rpi; |
58 | uint16_t nlp_state; /* state transition indicator */ | 64 | uint16_t nlp_state; /* state transition indicator */ |
65 | uint16_t nlp_prev_state; /* state transition indicator */ | ||
59 | uint16_t nlp_xri; /* output exchange id for RPI */ | 66 | uint16_t nlp_xri; /* output exchange id for RPI */ |
60 | uint16_t nlp_sid; /* scsi id */ | 67 | uint16_t nlp_sid; /* scsi id */ |
61 | #define NLP_NO_SID 0xffff | 68 | #define NLP_NO_SID 0xffff |