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

wl12xx.h (810B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * This file is part of wl12xx
      4 *
      5 * Copyright (C) 2009 Nokia Corporation
      6 *
      7 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
      8 */
      9
     10#ifndef _LINUX_WL12XX_H
     11#define _LINUX_WL12XX_H
     12
     13#include <linux/err.h>
     14
     15struct wl1251_platform_data {
     16	int power_gpio;
     17	/* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
     18	int irq;
     19	bool use_eeprom;
     20};
     21
     22#ifdef CONFIG_WILINK_PLATFORM_DATA
     23
     24int wl1251_set_platform_data(const struct wl1251_platform_data *data);
     25
     26struct wl1251_platform_data *wl1251_get_platform_data(void);
     27
     28#else
     29
     30static inline
     31int wl1251_set_platform_data(const struct wl1251_platform_data *data)
     32{
     33	return -ENOSYS;
     34}
     35
     36static inline
     37struct wl1251_platform_data *wl1251_get_platform_data(void)
     38{
     39	return ERR_PTR(-ENODATA);
     40}
     41
     42#endif
     43
     44#endif