staging: vt6655: add new stucture struct vnt_phy_field for rts/cts/data structures
This will replace bySignalField*, byServiceField* and wTransmitLength_b
members of these strutures, these are removed in the last patch.
The len member is of little endian type.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/staging/vt6655/desc.h b/drivers/staging/vt6655/desc.h
index d3c9b0c..1dd38f7 100644
--- a/drivers/staging/vt6655/desc.h
+++ b/drivers/staging/vt6655/desc.h
@@ -377,7 +377,16 @@
SRTSData, *PSRTSData;
typedef const SRTSData *PCSRTSData;
+/* Length, Service, and Signal fields of Phy for Tx */
+struct vnt_phy_field {
+ u8 signal;
+ u8 service;
+ __le16 len;
+} __packed;
+
typedef struct tagSRTS_g {
+ struct vnt_phy_field b;
+ struct vnt_phy_field a;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -394,6 +403,8 @@
typedef const SRTS_g *PCSRTS_g;
typedef struct tagSRTS_g_FB {
+ struct vnt_phy_field b;
+ struct vnt_phy_field a;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -414,6 +425,7 @@
typedef const SRTS_g_FB *PCSRTS_g_FB;
typedef struct tagSRTS_ab {
+ struct vnt_phy_field ab;
unsigned char bySignalField;
unsigned char byServiceField;
unsigned short wTransmitLength;
@@ -425,6 +437,7 @@
typedef const SRTS_ab *PCSRTS_ab;
typedef struct tagSRTS_a_FB {
+ struct vnt_phy_field a;
unsigned char bySignalField;
unsigned char byServiceField;
unsigned short wTransmitLength;
@@ -449,6 +462,7 @@
SCTSData, *PSCTSData;
typedef struct tagSCTS {
+ struct vnt_phy_field b;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -460,6 +474,7 @@
typedef const SCTS *PCSCTS;
typedef struct tagSCTS_FB {
+ struct vnt_phy_field b;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -497,6 +512,8 @@
// Tx data header
//
typedef struct tagSTxDataHead_g {
+ struct vnt_phy_field b;
+ struct vnt_phy_field a;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -512,6 +529,8 @@
typedef const STxDataHead_g *PCSTxDataHead_g;
typedef struct tagSTxDataHead_g_FB {
+ struct vnt_phy_field b;
+ struct vnt_phy_field a;
unsigned char bySignalField_b;
unsigned char byServiceField_b;
unsigned short wTransmitLength_b;
@@ -529,6 +548,7 @@
typedef const STxDataHead_g_FB *PCSTxDataHead_g_FB;
typedef struct tagSTxDataHead_ab {
+ struct vnt_phy_field ab;
unsigned char bySignalField;
unsigned char byServiceField;
unsigned short wTransmitLength;
@@ -539,6 +559,7 @@
typedef const STxDataHead_ab *PCSTxDataHead_ab;
typedef struct tagSTxDataHead_a_FB {
+ struct vnt_phy_field a;
unsigned char bySignalField;
unsigned char byServiceField;
unsigned short wTransmitLength;