📄 halether.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
Abstract:
Functions:
Notes:
--*/
#ifndef _ETHERNET_H
#define _ETHERNET_H
/*
* Addressing info struct. We don't ARP for unknown ethernet addresses, so
* even the ethernet address must be configured.
*/
typedef struct _EDBG_ADDR {
DWORD dwIP;
USHORT wMAC[3];
USHORT wPort;
} EDBG_ADDR;
#ifndef _WIN32_WCE
#define EDBG_SYSINTR_NOINTR 0xFFFFFFFF
// The following defs can be used for platforms which support multiple adapter types.
// Identifiers are provided here for drivers which are built in common\oak\drivers\ethdbg.
// Any platform specific adapter types can be identified based off of EDBG_ADAPTER_OEM.
#define EDBG_ADAPTER_SMC9000 0
#define EDBG_ADAPTER_NE2000 1
#define EDBG_ADAPTER_DEFAULT 2
#define EDBG_ADAPTER_OEM 16
int __cdecl _inp(unsigned);
int __cdecl _outp(unsigned, int);
#pragma intrinsic(_inp, _outp)
#define READ_PORT_UCHAR(a) _inp((unsigned)a)
#define WRITE_PORT_UCHAR(a, b) _outp((unsigned)a, (int)b)
#endif //_WIN32_WCE
#endif // _ETHERNET_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -