summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/wil6210/fw.h
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2019-04-26 18:43:32 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-05-03 08:04:04 +0300
commita7feb56f204fd8bcc9a8d7342097f7b3cf87b50e (patch)
tree9fe89d93b0394d58d8f8eca504426881bb11ac86 /drivers/net/wireless/ath/wil6210/fw.h
parent0131d185133891b7370b606411427efc260d68a0 (diff)
downloadlinux-a7feb56f204fd8bcc9a8d7342097f7b3cf87b50e.tar.xz
wil6210: add support for multiple sections in brd file
Current board file loading procedure assumes that the board file includes only one section. New board files can include multiple sections. Add the ability to read multiple addresses and max size from FW file and load multiple sections from the board file into those addresses. Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/fw.h')
-rw-r--r--drivers/net/wireless/ath/wil6210/fw.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/wil6210/fw.h b/drivers/net/wireless/ath/wil6210/fw.h
index 3e7a28045cab..fa3164765b20 100644
--- a/drivers/net/wireless/ath/wil6210/fw.h
+++ b/drivers/net/wireless/ath/wil6210/fw.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2014,2016 Qualcomm Atheros, Inc.
- * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -109,12 +109,17 @@ struct wil_fw_record_concurrency { /* type == wil_fw_type_comment */
/* brd file info encoded inside a comment record */
#define WIL_BRD_FILE_MAGIC (0xabcddcbb)
+
+struct brd_info {
+ __le32 base_addr;
+ __le32 max_size_bytes;
+} __packed;
+
struct wil_fw_record_brd_file { /* type == wil_fw_type_comment */
/* identifies brd file record */
struct wil_fw_record_comment_hdr hdr;
__le32 version;
- __le32 base_addr;
- __le32 max_size_bytes;
+ struct brd_info brd_info[0];
} __packed;
/* perform action