📄 mp_uif.h
字号:
/*++
Copyright (c) 2000-2002 Zydas Corporation
Module Name:
mp_uif.h
Abstract:
This header contains data structure for Object Identifier (OID)
User interface, 802.11-specific data structure etc.
We support 802.11 configuration OID and their related data structure in
Win98 and Win2K as they are supported in WinXP. So Win98, Win2k and
WinXP have the same 802.11 configuration interface for simple
configuration scheme. But,if you need more detailed management, please
refer to the ZD1201 driver manual.
Revision History:
Who When What
-------- -------- ----------------------------------------------
JXiao 08-30-02 created
Notes:
--*/
#ifndef _MPUIF_
#define _MPUIF_
/*
// According to the docs. We define the user OIDs according to the following
// guidelines:
//
// 0xAABBCCDD
//
// where
// AA - 0xFF for implementation specific information
// BB - 0x01 operation characteristics
// 0x02 statistics
// CC - 0x01 Required (Only have this type be defined)
// 0x02 Optional
// DD - differentiates each OID when other fields are the same
//
*/
#define OID_ZD_GETRID 0xFF010181
#define OID_ZD_SETRID 0xFF010181
#define OID_ZD_CMD 0xFF010183
#define OID_ZD_READ_AUX 0xFF010186
#define OID_ZD_WRITE_AUX 0xFF010186
#define OID_ZD_BLOCK 0xFF010187
#define OID_ZD_UNBLOCK 0xFF010188
#define OID_ZD_DOWNLOAD_RAM 0xFF01018B
#define OID_ZD_DOWNLOAD_ROM 0xFF01018C
#define OID_ZD_GET_TALLIES 0xFF02018D
#define OID_ZD_SET_TALLIES 0xFF02018D
#define OID_ZD_DEFAULT_KEY_ID 0xFF020190
#define OID_ZD_FW_VERSION 0xFF020196
#define OID_ZD_ADAPTER_SOFT_BOOT 0xFF020198
// Some Object Identifiers for debugging.
#define OID_ZD_TEST 0xFF0201A0
#define OID_ZD_TEST1 0xFF0201A1
#define OID_ZD_IO_WRITE 0xFF0201A2
#define OID_ZD_IO_WRITE_BYTE 0xFF0201A3
#define OID_ZD_IO_READ 0xFF0201A4
#define OID_ZD_IO_READ_BYTE 0xFF0201A5
#if DBG
#define OID_ZD_SET_DEBUG_PRINT 0xFF0201A6
#endif
#define OID_ZD_RESET_TALLIES 0xFF0201A7
#define OID_ZD_IO32 0xFF0201AC
#define OID_ZD_TEST2 0xFF0201AD
#define OID_ZD_802_11_BSSID_LIST_SCAN 0xFF0201B0
#define OID_ZD_802_11_BSSID_LIST 0xFF0201B1
#define OID_ZD_802_11_SSID 0xFF0201B2
#define OID_ZD_802_11_INFRASTRUCTURE_MODE 0xFF0201B3
#define OID_ZD_802_11_ADD_WEP 0xFF0201B4
#define OID_ZD_802_11_WEP_STATUS 0xFF0201B5
#define OID_ZD_802_11_REMOVE_WEP 0xFF0201B6
#define OID_ZD_802_11_DISASSOCIATE 0xFF0201B7
#define OID_ZD_802_11_AUTHENTICATION_MODE 0xFF0201B8
#define OID_ZD_ATTACHED_COM_PORT 0xFF0201B9
// For Custom Configuration Tool
// AUTHENTICATION_MODE
typedef enum {
OPEN_SYSTEM = 1,
SHARED_MODE = 2,
AUTO_SWITCH_MODE = 3
} AUTHENTICATION_MODE;
// WEP function type
typedef enum {
DISABLED = 0,
RC4_64 = 2,
RC4_128 = 6
} WEP_TYPE;
// Adapter States
typedef enum {
NOT_AVAILABLE = 0,
CONNECTED = 1,
SCANNING = 2,
DISCONNECTED = 3,
} ADAPTER_STATE_TYPE;
// NETWORK_TYPE enumerations
typedef enum {
NT_IBSS = 0,
NT_BSS = 1,
NT_PSIBSS = 3
} NETWORT_TYPE_TYPE;
//
// Structure used for OID_MP_CMD
//
typedef struct _ZD_CMD_STRUCT {
union {
struct {
USHORT cmd;
USHORT param0;
USHORT param1;
USHORT param2;
} send;
struct {
USHORT status;
USHORT resp0;
USHORT resp1;
USHORT resp2;
} rsp;
} u;
} ZD_CMD_STRUCT, *PZD_CMD_STRUCT;
//
// Structure used for OID_MP_GET_AUX and OID_MP_SET_AUX
//
// On OID_MP_SET_AUX the size of the structure will be count + 2 + 4
//
typedef struct _ZD_IMAGE_BLOCK_STRUCT {
ULONG address;
USHORT size;
UCHAR buffer[1];
} ZD_IMAGE_BLOCK_STRUCT, *PZD_IMAGE_BLOCK_STRUCT;
#endif // _MPUIF_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -