cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fw.c (680B)


      1// SPDX-License-Identifier: ISC
      2/*
      3 * Copyright (c) 2014-2015,2017 Qualcomm Atheros, Inc.
      4 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
      5 */
      6#include <linux/firmware.h>
      7#include <linux/module.h>
      8#include <linux/crc32.h>
      9#include "wil6210.h"
     10#include "fw.h"
     11
     12MODULE_FIRMWARE(WIL_FW_NAME_DEFAULT);
     13MODULE_FIRMWARE(WIL_FW_NAME_SPARROW_PLUS);
     14MODULE_FIRMWARE(WIL_BOARD_FILE_NAME);
     15MODULE_FIRMWARE(WIL_FW_NAME_TALYN);
     16MODULE_FIRMWARE(WIL_BRD_NAME_TALYN);
     17
     18static
     19void wil_memset_toio_32(volatile void __iomem *dst, u32 val,
     20			size_t count)
     21{
     22	volatile u32 __iomem *d = dst;
     23
     24	for (count += 4; count > 4; count -= 4)
     25		__raw_writel(val, d++);
     26}
     27
     28#include "fw_inc.c"