Skip to content

Commit

Permalink
staging: vt6656: rndis.h move all to device.h
Browse files Browse the repository at this point in the history
Commands macros are common to all source files.

Signed-off-by: Malcolm Priestley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Malcolm Priestley authored and gregkh committed May 18, 2014
1 parent 887651e commit 60f8ce8
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 101 deletions.
1 change: 0 additions & 1 deletion drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include "rf.h"
#include "control.h"
#include "datarate.h"
#include "rndis.h"

static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include "mac.h"
#include "wpa2.h"
#include "control.h"
#include "rndis.h"
#include "iowpa.h"
#include "power.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#include "rc4.h"
#include "country.h"
#include "datarate.h"
#include "rndis.h"
#include "control.h"

//static int msglevel =MSG_LEVEL_DEBUG;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*/

#include "control.h"
#include "rndis.h"

/* static int msglevel =MSG_LEVEL_INFO; */
/* static int msglevel =MSG_LEVEL_DEBUG; */
Expand Down
56 changes: 55 additions & 1 deletion drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
#include "desc.h"
#include "key.h"
#include "card.h"
#include "rndis.h"

#define VNT_USB_VENDOR_ID 0x160a
#define VNT_USB_PRODUCT_ID 0x3184
Expand Down Expand Up @@ -140,6 +139,44 @@
/* Bits in EEP_OFS_RADIOCTL */
#define EEP_RADIOCTL_ENABLE 0x80

/* control commands */
#define MESSAGE_TYPE_READ 0x1
#define MESSAGE_TYPE_WRITE 0x0
#define MESSAGE_TYPE_LOCK_OR 0x2
#define MESSAGE_TYPE_LOCK_AND 0x3
#define MESSAGE_TYPE_WRITE_MASK 0x4
#define MESSAGE_TYPE_CARDINIT 0x5
#define MESSAGE_TYPE_INIT_RSP 0x6
#define MESSAGE_TYPE_MACSHUTDOWN 0x7
#define MESSAGE_TYPE_SETKEY 0x8
#define MESSAGE_TYPE_CLRKEYENTRY 0x9
#define MESSAGE_TYPE_WRITE_MISCFF 0xa
#define MESSAGE_TYPE_SET_ANTMD 0xb
#define MESSAGE_TYPE_SELECT_CHANNLE 0xc
#define MESSAGE_TYPE_SET_TSFTBTT 0xd
#define MESSAGE_TYPE_SET_SSTIFS 0xe
#define MESSAGE_TYPE_CHANGE_BBTYPE 0xf
#define MESSAGE_TYPE_DISABLE_PS 0x10
#define MESSAGE_TYPE_WRITE_IFRF 0x11

/* command read/write(index) */
#define MESSAGE_REQUEST_MEM 0x1
#define MESSAGE_REQUEST_BBREG 0x2
#define MESSAGE_REQUEST_MACREG 0x3
#define MESSAGE_REQUEST_EEPROM 0x4
#define MESSAGE_REQUEST_TSF 0x5
#define MESSAGE_REQUEST_TBTT 0x6
#define MESSAGE_REQUEST_BBAGC 0x7
#define MESSAGE_REQUEST_VERSION 0x8
#define MESSAGE_REQUEST_RF_INIT 0x9
#define MESSAGE_REQUEST_RF_INIT2 0xa
#define MESSAGE_REQUEST_RF_CH0 0xb
#define MESSAGE_REQUEST_RF_CH1 0xc
#define MESSAGE_REQUEST_RF_CH2 0xd

/* USB registers */
#define USB_REG4 0x604

#ifndef RUN_AT
#define RUN_AT(x) (jiffies+(x))
#endif
Expand All @@ -161,6 +198,23 @@ typedef enum __device_msg_level {
#define DEVICE_INIT_RESET 0x1 /* reset init or Dx to D0 power remain */
#define DEVICE_INIT_DXPL 0x2 /* Dx to D0 power lost init */

/* Device init */
struct vnt_cmd_card_init {
u8 init_class;
u8 exist_sw_net_addr;
u8 sw_net_addr[6];
u8 short_retry_limit;
u8 long_retry_limit;
};

struct vnt_rsp_card_init {
u8 status;
u8 net_addr[6];
u8 rf_type;
u8 min_channel;
u8 max_channel;
};

/* USB */

/*
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <linux/compiler.h>
#include "firmware.h"
#include "control.h"
#include "rndis.h"

static int msglevel = MSG_LEVEL_INFO;
/* static int msglevel = MSG_LEVEL_DEBUG; */
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/iwctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "iowpa.h"
#include "wpactl.h"
#include "control.h"
#include "rndis.h"
#include "baseband.h"

static const long frequency_list[] = {
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "mac.h"
#include "tmacro.h"
#include "key.h"
#include "rndis.h"
#include "control.h"

static int msglevel =MSG_LEVEL_INFO;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "desc.h"
#include "mac.h"
#include "80211hdr.h"
#include "rndis.h"
#include "control.h"

//static int msglevel =MSG_LEVEL_DEBUG;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "rxtx.h"
#include "card.h"
#include "control.h"
#include "rndis.h"

static int msglevel = MSG_LEVEL_INFO;

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "rf.h"
#include "baseband.h"
#include "control.h"
#include "rndis.h"
#include "datarate.h"

static int msglevel =MSG_LEVEL_INFO;
Expand Down
87 changes: 0 additions & 87 deletions drivers/staging/vt6656/rndis.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/vt6656/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include "control.h"
#include "rxtx.h"
#include "rf.h"
#include "rndis.h"
#include "channel.h"
#include "iowpa.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/wmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
#include "rf.h"
#include "iowpa.h"
#include "control.h"
#include "rndis.h"

static int msglevel = MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/wpactl.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "iocmd.h"
#include "iowpa.h"
#include "control.h"
#include "rndis.h"
#include "rf.h"

static int msglevel = MSG_LEVEL_INFO;
Expand Down

0 comments on commit 60f8ce8

Please sign in to comment.