linux/drivers/staging/ks7010/ks_wlan.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 *   Driver for KeyStream IEEE802.11 b/g wireless LAN cards.
 *
 *   Copyright (C) 2006-2008 KeyStream Corp.
 *   Copyright (C) 2009 Renesas Technology Corp.
 */

#ifndef _KS_WLAN_H
#define _KS_WLAN_H

#include <linux/atomic.h>
#include <linux/circ_buf.h>
#include <linux/completion.h>
#include <linux/netdevice.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/wireless.h>

struct ks_wlan_parameter {};

enum {};

/* SME flag */
#define SME_MODE_SET
#define SME_RTS
#define SME_FRAG
#define SME_WEP_FLAG
#define SME_WEP_INDEX
#define SME_WEP_VAL1
#define SME_WEP_VAL2
#define SME_WEP_VAL3
#define SME_WEP_VAL4
#define SME_WEP_VAL_MASK
#define SME_RSN
#define SME_RSN_MULTICAST
#define SME_RSN_UNICAST
#define SME_RSN_AUTH

#define SME_AP_SCAN
#define SME_MULTICAST

/* SME Event */
enum {};

/* SME Status */
enum {};

#define SME_EVENT_BUFF_SIZE

struct sme_info {};

struct hostt {};

#define RSN_IE_BODY_MAX
struct rsn_ie {} __packed;

#define WPA_INFO_ELEM_ID
#define RSN_INFO_ELEM_ID

#define WPS_IE_BODY_MAX
struct wps_ie {} __packed;

struct local_ap {};

#define LOCAL_APLIST_MAX
#define LOCAL_CURRENT_AP
struct local_aplist {};

struct local_gain {};

struct local_eeprom_sum {};

enum {};

/* Power Save Status */
enum {};

struct power_save_status {};

struct sleep_status {};

/* WPA */
struct scan_ext {};

#define CIPHER_ID_WPA_NONE
#define CIPHER_ID_WPA_WEP40
#define CIPHER_ID_WPA_TKIP
#define CIPHER_ID_WPA_CCMP
#define CIPHER_ID_WPA_WEP104

#define CIPHER_ID_WPA2_NONE
#define CIPHER_ID_WPA2_WEP40
#define CIPHER_ID_WPA2_TKIP
#define CIPHER_ID_WPA2_CCMP
#define CIPHER_ID_WPA2_WEP104

#define CIPHER_ID_LEN

enum {};

#define KEY_MGMT_ID_WPA_NONE
#define KEY_MGMT_ID_WPA_1X
#define KEY_MGMT_ID_WPA_PSK
#define KEY_MGMT_ID_WPA_WPANONE

#define KEY_MGMT_ID_WPA2_NONE
#define KEY_MGMT_ID_WPA2_1X
#define KEY_MGMT_ID_WPA2_PSK
#define KEY_MGMT_ID_WPA2_WPANONE

#define KEY_MGMT_ID_LEN

#define MIC_KEY_SIZE

struct wpa_key {};

#define WPA_KEY_INDEX_MAX
#define WPA_RX_SEQ_LEN

struct mic_failure {};

struct wpa_status {};

#include <linux/list.h>
#define PMK_LIST_MAX
struct pmk_list {};

struct wps_status {};

/* Tx Device struct */
#define TX_DEVICE_BUFF_SIZE

struct ks_wlan_private;

/**
 * struct tx_device_buffer - Queue item for the tx queue.
 * @sendp: Pointer to the send request data.
 * @size: Size of @sendp data.
 * @complete_handler: Function called once data write to device is complete.
 * @arg1: First argument to @complete_handler.
 * @arg2: Second argument to @complete_handler.
 */
struct tx_device_buffer {};

/**
 * struct tx_device - Tx buffer queue.
 * @tx_device_buffer: Queue buffer.
 * @qhead: Head of tx queue.
 * @qtail: Tail of tx queue.
 * @tx_dev_lock: Queue lock.
 */
struct tx_device {};

/* Rx Device struct */
#define RX_DATA_SIZE
#define RX_DEVICE_BUFF_SIZE

/**
 * struct rx_device_buffer - Queue item for the rx queue.
 * @data: rx data.
 * @size: Size of @data.
 */
struct rx_device_buffer {};

/**
 * struct rx_device - Rx buffer queue.
 * @rx_device_buffer: Queue buffer.
 * @qhead: Head of rx queue.
 * @qtail: Tail of rx queue.
 * @rx_dev_lock: Queue lock.
 */
struct rx_device {};

struct ks_wlan_private {};

static inline void inc_txqhead(struct ks_wlan_private *priv)
{}

static inline void inc_txqtail(struct ks_wlan_private *priv)
{}

static inline bool txq_has_space(struct ks_wlan_private *priv)
{}

static inline void inc_rxqhead(struct ks_wlan_private *priv)
{}

static inline void inc_rxqtail(struct ks_wlan_private *priv)
{}

static inline bool rxq_has_space(struct ks_wlan_private *priv)
{}

static inline unsigned int txq_count(struct ks_wlan_private *priv)
{}

static inline unsigned int rxq_count(struct ks_wlan_private *priv)
{}

int ks_wlan_net_start(struct net_device *dev);
int ks_wlan_net_stop(struct net_device *dev);
bool is_connect_status(u32 status);
bool is_disconnect_status(u32 status);

#endif /* _KS_WLAN_H */