linux/drivers/net/wireless/st/cw1200/cw1200.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Common private data for ST-Ericsson CW1200 drivers
 *
 * Copyright (c) 2010, ST-Ericsson
 * Author: Dmitry Tarnyagin <[email protected]>
 *
 * Based on the mac80211 Prism54 code, which is
 * Copyright (c) 2006, Michael Wu <[email protected]>
 *
 * Based on the islsm (softmac prism54) driver, which is:
 * Copyright 2004-2006 Jean-Baptiste Note <[email protected]>, et al.
 */

#ifndef CW1200_H
#define CW1200_H

#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <net/mac80211.h>

#include "queue.h"
#include "wsm.h"
#include "scan.h"
#include "txrx.h"
#include "pm.h"

/* Forward declarations */
struct hwbus_ops;
struct task_struct;
struct cw1200_debug_priv;
struct firmware;

#define CW1200_MAX_CTRL_FRAME_LEN

#define CW1200_MAX_STA_IN_AP_MODE
#define CW1200_LINK_ID_AFTER_DTIM
#define CW1200_LINK_ID_UAPSD
#define CW1200_LINK_ID_MAX
#define CW1200_MAX_REQUEUE_ATTEMPTS

#define CW1200_MAX_TID

#define CW1200_BLOCK_ACK_CNT
#define CW1200_BLOCK_ACK_THLD
#define CW1200_BLOCK_ACK_HIST
#define CW1200_BLOCK_ACK_INTERVAL

#define CW1200_JOIN_TIMEOUT
#define CW1200_AUTH_TIMEOUT

struct cw1200_ht_info {};

/* Please keep order */
enum cw1200_join_status {};

enum cw1200_link_status {};

extern int cw1200_power_mode;
extern const char * const cw1200_fw_types[];

struct cw1200_link_entry {};

struct cw1200_common {};

struct cw1200_sta_priv {};

/* interfaces for the drivers */
int cw1200_core_probe(const struct hwbus_ops *hwbus_ops,
		      struct hwbus_priv *hwbus,
		      struct device *pdev,
		      struct cw1200_common **pself,
		      int ref_clk, const u8 *macaddr,
		      const char *sdd_path, bool have_5ghz);
void cw1200_core_release(struct cw1200_common *self);

#define FWLOAD_BLOCK_SIZE

static inline int cw1200_is_ht(const struct cw1200_ht_info *ht_info)
{}

static inline int cw1200_ht_greenfield(const struct cw1200_ht_info *ht_info)
{}

static inline int cw1200_ht_ampdu_density(const struct cw1200_ht_info *ht_info)
{}

#endif /* CW1200_H */