mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[SDK] Add kdnetextensibility.h
This commit is contained in:
parent
831e2dea3d
commit
73af453c73
1 changed files with 81 additions and 0 deletions
81
sdk/include/reactos/kdnetextensibility.h
Normal file
81
sdk/include/reactos/kdnetextensibility.h
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
typedef NTSTATUS
|
||||||
|
(NTAPI *KD_GET_RX_PACKET)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_Out_ PULONG Handle,
|
||||||
|
_Out_ PVOID *Packet,
|
||||||
|
_Out_ PULONG Length);
|
||||||
|
|
||||||
|
typedef VOID
|
||||||
|
(NTAPI *KD_RELEASE_RX_PACKET)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_In_ ULONG Handle);
|
||||||
|
|
||||||
|
typedef NTSTATUS
|
||||||
|
(NTAPI *KD_GET_TX_PACKET)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_Out_ PULONG Handle);
|
||||||
|
|
||||||
|
typedef NTSTATUS
|
||||||
|
(NTAPI *KD_SEND_TX_PACKET)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_In_ ULONG Handle,
|
||||||
|
_In_ ULONG Length);
|
||||||
|
|
||||||
|
typedef PVOID
|
||||||
|
(NTAPI *KD_GET_PACKET_ADDRESS)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_In_ ULONG Handle);
|
||||||
|
|
||||||
|
typedef ULONG
|
||||||
|
(NTAPI *KD_GET_PACKET_LENGTH)(
|
||||||
|
_In_ PVOID Adapter,
|
||||||
|
_In_ ULONG Handle);
|
||||||
|
|
||||||
|
#define KDNET_EXT_EXPORTS 13
|
||||||
|
|
||||||
|
typedef struct _KDNET_EXTENSIBILITY_EXPORTS
|
||||||
|
{
|
||||||
|
ULONG FunctionCount;
|
||||||
|
PVOID KdInitializeController;
|
||||||
|
PVOID KdShutdownController;
|
||||||
|
PVOID KdSetHibernateRange;
|
||||||
|
KD_GET_RX_PACKET KdGetRxPacket;
|
||||||
|
KD_RELEASE_RX_PACKET KdReleaseRxPacket;
|
||||||
|
KD_GET_TX_PACKET KdGetTxPacket;
|
||||||
|
KD_SEND_TX_PACKET KdSendTxPacket;
|
||||||
|
KD_GET_PACKET_ADDRESS KdGetPacketAddress;
|
||||||
|
KD_GET_PACKET_LENGTH KdGetPacketLength;
|
||||||
|
PVOID KdGetHardwareContextSize;
|
||||||
|
PVOID KdDeviceControl;
|
||||||
|
PVOID KdReadSerialByte;
|
||||||
|
PVOID KdWriteSerialByte;
|
||||||
|
PVOID DebugSerialOutputInit;
|
||||||
|
PVOID DebugSerialOutputByte;
|
||||||
|
} KDNET_EXTENSIBILITY_EXPORTS, *PKDNET_EXTENSIBILITY_EXPORTS;
|
||||||
|
|
||||||
|
#define KDNET_EXT_IMPORTS 30
|
||||||
|
|
||||||
|
typedef struct _KDNET_EXTENSIBILITY_IMPORTS
|
||||||
|
{
|
||||||
|
ULONG FunctionCount;
|
||||||
|
PKDNET_EXTENSIBILITY_EXPORTS Exports;
|
||||||
|
PVOID Reserved[28];
|
||||||
|
} KDNET_EXTENSIBILITY_IMPORTS, *PKDNET_EXTENSIBILITY_IMPORTS;
|
||||||
|
|
||||||
|
extern PKDNET_EXTENSIBILITY_EXPORTS KdNetExtensibilityExports;
|
||||||
|
|
||||||
|
#define KdGetRxPacket KdNetExtensibilityExports->KdGetRxPacket
|
||||||
|
#define KdReleaseRxPacket KdNetExtensibilityExports->KdReleaseRxPacket
|
||||||
|
#define KdGetTxPacket KdNetExtensibilityExports->KdGetTxPacket
|
||||||
|
#define KdSendTxPacket KdNetExtensibilityExports->KdSendTxPacket
|
||||||
|
#define KdGetPacketAddress KdNetExtensibilityExports->KdGetPacketAddress
|
||||||
|
#define KdGetPacketLength KdNetExtensibilityExports->KdGetPacketLength
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdInitializeLibrary(
|
||||||
|
_In_ PKDNET_EXTENSIBILITY_IMPORTS ImportTable,
|
||||||
|
_In_opt_ PCHAR LoaderOptions,
|
||||||
|
_Inout_ PDEBUG_DEVICE_DESCRIPTOR Device);
|
Loading…
Reference in a new issue