linux/drivers/net/wireless/rsi/rsi_main.h

/*
 * Copyright (c) 2014 Redpine Signals Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef __RSI_MAIN_H__
#define __RSI_MAIN_H__

#include <linux/string.h>
#include <linux/skbuff.h>
#include <net/mac80211.h>
#include <net/rsi_91x.h>

struct rsi_sta {};

struct rsi_hw;

#include "rsi_ps.h"

#define ERR_ZONE
#define INFO_ZONE
#define INIT_ZONE
#define MGMT_TX_ZONE
#define MGMT_RX_ZONE
#define DATA_TX_ZONE
#define DATA_RX_ZONE
#define FSM_ZONE
#define ISR_ZONE

enum RSI_FSM_STATES {};

extern u32 rsi_zone_enabled;
extern __printf(2, 3) void rsi_dbg(u32 zone, const char *fmt, ...);

#define RSI_MAX_BANDS
#define RSI_MAX_VIFS
#define NUM_EDCA_QUEUES
#define IEEE80211_ADDR_LEN
#define FRAME_DESC_SZ
#define MIN_802_11_HDR_LEN
#define RSI_DEF_KEEPALIVE
#define RSI_WOW_KEEPALIVE
#define RSI_BCN_MISS_THRESHOLD

#define DATA_QUEUE_WATER_MARK
#define MIN_DATA_QUEUE_WATER_MARK
#define MULTICAST_WATER_MARK
#define MAC_80211_HDR_FRAME_CONTROL
#define WME_NUM_AC
#define NUM_SOFT_QUEUES
#define MAX_HW_QUEUES
#define INVALID_QUEUE
#define MAX_CONTINUOUS_VO_PKTS
#define MAX_CONTINUOUS_VI_PKTS

/* Hardware queue info */
#define BROADCAST_HW_Q
#define MGMT_HW_Q
#define BEACON_HW_Q

#define IEEE80211_MGMT_FRAME
#define IEEE80211_CTL_FRAME

#define RSI_MAX_ASSOC_STAS
#define IEEE80211_QOS_TID
#define IEEE80211_NONQOS_TID

#define MAX_DEBUGFS_ENTRIES

#define TID_TO_WME_AC(_tid)

#define WME_AC(_q)

/* WoWLAN flags */
#define RSI_WOW_ENABLED
#define RSI_WOW_NO_CONNECTION

#define RSI_MAX_RX_PKTS

enum rsi_dev_model {};

struct version_info {} __packed;

struct skb_info {};

enum edca_queue {};

struct security_info {};

struct wmm_qinfo {};

struct transmit_q_stats {};

#define MAX_BGSCAN_CHANNELS_DUAL_BAND
#define MAX_BGSCAN_PROBE_REQ_LEN
#define RSI_DEF_BGSCAN_THRLD
#define RSI_DEF_ROAM_THRLD
#define RSI_BGSCAN_PERIODICITY
#define RSI_ACTIVE_SCAN_TIME
#define RSI_PASSIVE_SCAN_TIME
#define RSI_CHANNEL_SCAN_TIME
struct rsi_bgscan_params {};

struct vif_priv {};

struct rsi_event {};

struct rsi_thread {};

struct cqm_info {};

enum rsi_dfs_regions {};

struct rsi_9116_features {};

struct rsi_rate_config {};

struct rsi_common {};

struct eepromrw_info {};

struct eeprom_read {};

struct rsi_hw {};

void rsi_print_version(struct rsi_common *common);

struct rsi_host_intf_ops {};

enum rsi_host_intf rsi_get_host_intf(void *priv);
void rsi_set_bt_context(void *priv, void *bt_context);
void rsi_attach_bt(struct rsi_common *common);

#endif