staging: vt6656: rndis.h move all to device.h
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 17 May 2014 08:50:30 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2014 16:58:30 +0000 (09:58 -0700)
Commands macros are common to all source files.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 files changed:
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/bssdb.c
drivers/staging/vt6656/card.c
drivers/staging/vt6656/control.c
drivers/staging/vt6656/device.h
drivers/staging/vt6656/firmware.c
drivers/staging/vt6656/iwctl.c
drivers/staging/vt6656/key.c
drivers/staging/vt6656/mac.c
drivers/staging/vt6656/power.c
drivers/staging/vt6656/rf.c
drivers/staging/vt6656/rndis.h [deleted file]
drivers/staging/vt6656/wcmd.c
drivers/staging/vt6656/wmgr.c
drivers/staging/vt6656/wpactl.c

index 9f3b2fbd9060b5d2007493975d7dc1814f284ee4..b4489d6c6c26198b79afe7c2c546824e315f5d04 100644 (file)
@@ -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;
index b018955a2f9c520829f341b73da09ca7de559372..7e8e67a460ca94fa7605d469b38cd9c4b0bf18dc 100644 (file)
@@ -54,7 +54,6 @@
 #include "mac.h"
 #include "wpa2.h"
 #include "control.h"
-#include "rndis.h"
 #include "iowpa.h"
 #include "power.h"
 
index 0d8772858f09d5b45f2ec3334822ae9d8fc6b661..b8f35e7a25ee97be86aa509c02147b316bce12fa 100644 (file)
@@ -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;
index 026784fcde82dda8edf9d42533202a6c15454b3f..fc19166e2f8bd64f5a017981946d8904f806e88e 100644 (file)
@@ -41,7 +41,6 @@
  */
 
 #include "control.h"
-#include "rndis.h"
 
 /* static int          msglevel                =MSG_LEVEL_INFO;  */
 /* static int          msglevel                =MSG_LEVEL_DEBUG; */
index 990b3450614b2d4088f42ef3b5d179efe832cd6c..59d3828bf7c284f39156dbfcfa79afa1aad7ae77 100644 (file)
@@ -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
 /* 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
@@ -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 */
 
 /*
index e03f1f97b284a9cf559596d75795cea359ce14e8..1d3d268ef772d2e13670470669edd78e6aab5204 100644 (file)
@@ -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; */
index bfd5f371e4ad40d8685105c5e65a464f025be7a3..38739fa3246138437334c83f264b9411db110b8c 100644 (file)
@@ -40,7 +40,6 @@
 #include "iowpa.h"
 #include "wpactl.h"
 #include "control.h"
-#include "rndis.h"
 #include "baseband.h"
 
 static const long frequency_list[] = {
index b173ca1540244059762cd7466f2548ea657c8181..a88c6b1886dc6db4e8a3929586d10243076d1a7b 100644 (file)
@@ -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;
index 8bd3ab0407bf771169f63882bbcbadd84da971fa..8298a9e25ee2397f15a10cb84a625f22f2033a98 100644 (file)
@@ -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;
index 43da58927cd2560c6a9c0d018a7c10eb4dfdb197..c4bea74f86f906914643d0a89e6853cf7cdb7d86 100644 (file)
@@ -45,7 +45,6 @@
 #include "rxtx.h"
 #include "card.h"
 #include "control.h"
-#include "rndis.h"
 
 static int msglevel = MSG_LEVEL_INFO;
 
index 64632e9fff63c25014bc55149bb3da51414419b0..7217f2c8bb042dc0b55cfcda62bb15d2ea5dd4cd 100644 (file)
@@ -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;
diff --git a/drivers/staging/vt6656/rndis.h b/drivers/staging/vt6656/rndis.h
deleted file mode 100644 (file)
index cf4e0e0..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
- * All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- *
- * File: rndis.h
- *
- * Purpose: Interface between firmware and driver
- *
- * Author: Warren Hsu
- *
- * Date: Nov 24, 2004
- *
- */
-
-#ifndef __RNDIS_H__
-#define __RNDIS_H__
-
-#define MESSAGE_TYPE_READ               0x01
-#define MESSAGE_TYPE_WRITE              0x00
-#define MESSAGE_TYPE_LOCK_OR            0x02
-#define MESSAGE_TYPE_LOCK_AND           0x03
-#define MESSAGE_TYPE_WRITE_MASK         0x04
-#define MESSAGE_TYPE_CARDINIT           0x05
-#define MESSAGE_TYPE_INIT_RSP           0x06
-#define MESSAGE_TYPE_MACSHUTDOWN        0x07
-#define MESSAGE_TYPE_SETKEY             0x08
-#define MESSAGE_TYPE_CLRKEYENTRY        0x09
-#define MESSAGE_TYPE_WRITE_MISCFF       0x0A
-#define MESSAGE_TYPE_SET_ANTMD          0x0B
-#define MESSAGE_TYPE_SELECT_CHANNLE     0x0C
-#define MESSAGE_TYPE_SET_TSFTBTT        0x0D
-#define MESSAGE_TYPE_SET_SSTIFS         0x0E
-#define MESSAGE_TYPE_CHANGE_BBTYPE      0x0F
-#define MESSAGE_TYPE_DISABLE_PS         0x10
-#define MESSAGE_TYPE_WRITE_IFRF         0x11
-
-//used for read/write(index)
-#define MESSAGE_REQUEST_MEM             0x01
-#define MESSAGE_REQUEST_BBREG           0x02
-#define MESSAGE_REQUEST_MACREG          0x03
-#define MESSAGE_REQUEST_EEPROM          0x04
-#define MESSAGE_REQUEST_TSF             0x05
-#define MESSAGE_REQUEST_TBTT            0x06
-#define MESSAGE_REQUEST_BBAGC           0x07
-#define MESSAGE_REQUEST_VERSION         0x08
-#define MESSAGE_REQUEST_RF_INIT         0x09
-#define MESSAGE_REQUEST_RF_INIT2        0x0A
-#define MESSAGE_REQUEST_RF_CH0          0x0B
-#define MESSAGE_REQUEST_RF_CH1          0x0C
-#define MESSAGE_REQUEST_RF_CH2          0x0D
-
-#define USB_REG4       0x604
-
-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;
-};
-
-#endif /* _RNDIS_H_ */
index 66d59d51bf828ca91067499d388364e9ba0ff460..8fecb34297afab10181307da96dfa66d9235b6e0 100644 (file)
@@ -51,7 +51,6 @@
 #include "control.h"
 #include "rxtx.h"
 #include "rf.h"
-#include "rndis.h"
 #include "channel.h"
 #include "iowpa.h"
 
index cce67cdad26acfe95e007321bb751d474a48deda..64edc16da7cefda7a8cbf9c61a77cf3cf449b7f5 100644 (file)
@@ -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;
index f4a8a5cb9feb14671cb1f350201ed889ab05884b..b6885a91d1a455f36c323fcdcd48e039a28d3738 100644 (file)
@@ -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;