summaryrefslogtreecommitdiff
path: root/drivers/net/bna/bfi.h
diff options
context:
space:
mode:
authorRasesh Mody <rmody@brocade.com>2011-07-22 12:07:47 +0400
committerDavid S. Miller <davem@davemloft.net>2011-07-23 04:01:13 +0400
commitd4e16d4285d93ea0c284a3cf547e61472f79f8d2 (patch)
treeb6539602e3e956909e49dfde757e48276fecc005 /drivers/net/bna/bfi.h
parentf374b36103cf22c9416f1004b0302b03fad79547 (diff)
downloadlinux-d4e16d4285d93ea0c284a3cf547e61472f79f8d2.tar.xz
bna: Add HW Semaphore Unlock Logic
Change details: - Added logic to unlock hw semaphore if the previos FW boot was from boot code (flash based) and the current FW initialization attempt is from OS driver. Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna/bfi.h')
-rw-r--r--drivers/net/bna/bfi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bna/bfi.h b/drivers/net/bna/bfi.h
index 683a7d7acc38..088211c2724f 100644
--- a/drivers/net/bna/bfi.h
+++ b/drivers/net/bna/bfi.h
@@ -289,6 +289,12 @@ struct bfi_ioc_image_hdr {
u32 md5sum[BFI_IOC_MD5SUM_SZ];
};
+enum bfi_fwboot_type {
+ BFI_FWBOOT_TYPE_NORMAL = 0,
+ BFI_FWBOOT_TYPE_FLASH = 1,
+ BFI_FWBOOT_TYPE_MEMTEST = 2,
+};
+
/**
* BFI_IOC_I2H_READY_EVENT message
*/