Use internal sysfs_hba library for fcoemon as well.
Signed-off-by: Johannes Thumshirn <[email protected]>
---
fcoemon.c | 2 +-
include/sysfs_hba.h | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/fcoemon.c b/fcoemon.c
index c0af99b..91d12c7 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -60,7 +60,7 @@
#include "fcoemon.h"
#include "fcoe_clif.h"
#include "fcoe_utils.h"
-#include "hbaapi.h"
+#include "sysfs_hba.h"
#include "strarr.h"
#include "fip.h"
diff --git a/include/sysfs_hba.h b/include/sysfs_hba.h
index 2578148..c984917 100644
--- a/include/sysfs_hba.h
+++ b/include/sysfs_hba.h
@@ -43,6 +43,14 @@
#define HBA_PORTSPEED_40GBIT 0x0100 /* 40 GBit/sec */
#define HBA_PORTSPEED_NOT_NEGOTIATED (1 << 15) /* Speed not established */
+/* Event Codes */
+#define HBA_EVENT_LIP_OCCURRED 1
+#define HBA_EVENT_LINK_UP 2
+#define HBA_EVENT_LINK_DOWN 3
+#define HBA_EVENT_LIP_RESET_OCCURRED 4
+#define HBA_EVENT_RSCN 5
+#define HBA_EVENT_PROPRIETARY 0xFFFF
+
struct port_attributes {
char device_name[256];
char symbolic_name[256];
--
2.6.0
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel