hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
 *
 ******************************************************************************/
#ifndef _RTW_IOCTL_H_
#define _RTW_IOCTL_H_
 
#include <osdep_service.h>
#include <drv_types.h>
 
#ifndef OID_802_11_CAPABILITY
   #define OID_802_11_CAPABILITY    0x0d010122
#endif
 
#ifndef OID_802_11_PMKID
   #define OID_802_11_PMKID    0x0d010123
#endif
 
/*  For DDK-defined OIDs */
#define OID_NDIS_SEG1    0x00010100
#define OID_NDIS_SEG2    0x00010200
#define OID_NDIS_SEG3    0x00020100
#define OID_NDIS_SEG4    0x01010100
#define OID_NDIS_SEG5    0x01020100
#define OID_NDIS_SEG6    0x01020200
#define OID_NDIS_SEG7    0xFD010100
#define OID_NDIS_SEG8    0x0D010100
#define OID_NDIS_SEG9    0x0D010200
#define OID_NDIS_SEG10    0x0D020200
 
#define SZ_OID_NDIS_SEG1    23
#define SZ_OID_NDIS_SEG2    3
#define SZ_OID_NDIS_SEG3    6
#define SZ_OID_NDIS_SEG4    6
#define SZ_OID_NDIS_SEG5    4
#define SZ_OID_NDIS_SEG6    8
#define SZ_OID_NDIS_SEG7    7
#define SZ_OID_NDIS_SEG8    36
#define SZ_OID_NDIS_SEG9    24
#define SZ_OID_NDIS_SEG10    19
 
/*  For Realtek-defined OIDs */
#define OID_MP_SEG1        0xFF871100
#define OID_MP_SEG2        0xFF818000
 
#define OID_MP_SEG3        0xFF818700
#define OID_MP_SEG4        0xFF011100
 
enum oid_type {
   QUERY_OID,
   SET_OID
};
 
struct oid_par_priv {
   void        *adapter_context;
   NDIS_OID    oid;
   void        *information_buf;
   u32        information_buf_len;
   u32        *bytes_rw;
   u32        *bytes_needed;
   enum oid_type    type_of_oid;
   u32        dbg;
};
 
#if defined(_RTW_MP_IOCTL_C_)
static int oid_null_function(struct oid_par_priv *poid_par_priv)
{
   return NDIS_STATUS_SUCCESS;
}
#endif
 
extern struct iw_handler_def  rtw_handlers_def;
 
int drv_query_info(struct  net_device *miniportadaptercontext, NDIS_OID oid,
          void *informationbuffer, u32 informationbufferlength,
          u32 *byteswritten, u32 *bytesneeded);
 
int drv_set_info(struct  net_device *MiniportAdapterContext,
        NDIS_OID oid, void *informationbuffer,
        u32 informationbufferlength, u32 *bytesread,
        u32 *bytesneeded);
 
#endif /*  #ifndef __INC_CEINFO_ */