📄 x86kitl.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.
//
//------------------------------------------------------------------------------
#ifndef _KITLETH_X86_H_
#define _KITLETH_X86_H_
#include <oal_kitl.h>
#include <oal_ethdrv.h>
#include <ceddk.h>
typedef struct KTIL_NIC_INFO {
DWORD dwIrq; // IRQ
DWORD dwIoBase; // IO Base
DWORD dwBus; // bus number
DWORD dwDevice; // device number
DWORD dwFunction; // function number
DWORD dwType; // adaptor type
PCI_COMMON_CONFIG pciConfig; // pciConfig information
const OAL_KITL_ETH_DRIVER *pDriver; // the KITL driver
} KTIL_NIC_INFO, *PKTIL_NIC_INFO;
typedef const KTIL_NIC_INFO *PCKITL_NIC_INFO;
//
// Ethernet debug controller vendor and PCI information.
//
typedef struct _SUPPORTED_NIC // NIC vendor ID
{
USHORT wVenId; // PCI Vendor ID
USHORT wDevId; // PCI Device ID
DWORD dwUpperMAC; // 1st 3 bytes of mac address
UCHAR Type; // adapter type
UCHAR szAbbrev[3]; // Vendor name abbreviation
const OAL_KITL_ETH_DRIVER *pDriver; // corresponding driver
} SUPPORTED_NIC, *PSUPPORTED_NIC;
typedef const SUPPORTED_NIC *PCSUPPORTED_NIC;
PCKITL_NIC_INFO InitKitlNIC (DWORD dwIrq, DWORD dwIoBase, DWORD dwDfltType);
BOOL x86KitlCreateName(CHAR *pPrefix, UINT16 mac[], CHAR *pBuffer);
const OAL_KITL_SERIAL_DRIVER *GetKitlSerialDriver (void);
extern const SUPPORTED_NIC g_NicSupported [];
extern const int g_nNumNicSupported;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -