Linux 4.16.11
[linux/fpc-iii.git] / drivers / net / wireless / ath / wil6210 / fw.c
blob540fc20984d8fe8c65ef56b074f47030da518084
1 /*
2 * Copyright (c) 2014-2015,2017 Qualcomm Atheros, Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #include <linux/firmware.h>
17 #include <linux/module.h>
18 #include <linux/crc32.h>
19 #include "wil6210.h"
20 #include "fw.h"
22 MODULE_FIRMWARE(WIL_FW_NAME_DEFAULT);
23 MODULE_FIRMWARE(WIL_FW_NAME_SPARROW_PLUS);
24 MODULE_FIRMWARE(WIL_BOARD_FILE_NAME);
26 static
27 void wil_memset_toio_32(volatile void __iomem *dst, u32 val,
28 size_t count)
30 volatile u32 __iomem *d = dst;
32 for (count += 4; count > 4; count -= 4)
33 __raw_writel(val, d++);
36 #include "fw_inc.c"