ReactOS 0.4.16-dev-1946-g52006dd
arbport.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for arbport.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI IopPortMemUnpackRequirements (_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor, _Out_ PUINT64 OutMinimumAddress, _Out_ PUINT64 OutMaximumAddress, _Out_ PUINT32 OutLength, _Out_ PUINT32 OutAlignment)
 
NTSTATUS NTAPI IopPortMemPackResource (_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor, _In_ UINT64 Start, _Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescriptor)
 
NTSTATUS NTAPI IopPortMemUnpackResource (_In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescriptor, _Out_ PUINT64 Start, _Out_ PUINT32 OutLength)
 
INT32 NTAPI IopPortMemScoreRequirement (_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor)
 
NTSTATUS NTAPI IopArbPortInitialize (VOID)
 

Variables

ARBITER_INSTANCE IopRootPortArbiter
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file arbport.c.

Function Documentation

◆ IopArbPortInitialize()

NTSTATUS NTAPI IopArbPortInitialize ( VOID  )

Definition at line 90 of file arbport.c.

91{
93
94 PAGED_CODE();
95 IopRootPortArbiter.Name = L"RootPort";
100
102 NULL,
105 L"Root",
106 NULL);
107 if (!NT_SUCCESS(Status))
108 {
109 DPRINT1("IopArbDmaInitialize: Failed with %X", Status);
110 }
111
112 return Status;
113}
#define PAGED_CODE()
NTSTATUS NTAPI ArbInitializeArbiterInstance(_Inout_ PARBITER_INSTANCE Arbiter, _In_ PDEVICE_OBJECT BusDeviceObject, _In_ CM_RESOURCE_TYPE ResourceType, _In_ PCWSTR ArbiterName, _In_ PCWSTR OrderName, _In_ PARB_TRANSLATE_ORDERING TranslateOrderingFunction)
Definition: arbiter.c:282
NTSTATUS NTAPI IopPortMemPackResource(_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor, _In_ UINT64 Start, _Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescriptor)
Definition: arbport.c:43
ARBITER_INSTANCE IopRootPortArbiter
Definition: pnpinit.c:27
INT32 NTAPI IopPortMemScoreRequirement(_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor)
Definition: arbport.c:77
NTSTATUS NTAPI IopPortMemUnpackRequirements(_In_ PIO_RESOURCE_DESCRIPTOR IoDescriptor, _Out_ PUINT64 OutMinimumAddress, _Out_ PUINT64 OutMaximumAddress, _Out_ PUINT32 OutLength, _Out_ PUINT32 OutAlignment)
Definition: arbport.c:22
NTSTATUS NTAPI IopPortMemUnpackResource(_In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR CmDescriptor, _Out_ PUINT64 Start, _Out_ PUINT32 OutLength)
Definition: arbport.c:60
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define L(x)
Definition: resources.c:13
Status
Definition: gdiplustypes.h:25
#define CmResourceTypeBusNumber
Definition: restypes.h:109
PARB_UNPACK_RESOURCE UnpackResource
Definition: arbiter.h:196
PARB_SCORE_REQUIREMENT ScoreRequirement
Definition: arbiter.h:197
PARB_UNPACK_REQUIREMENT UnpackRequirement
Definition: arbiter.h:194
PARB_PACK_RESOURCE PackResource
Definition: arbiter.h:195
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

Referenced by IopInitializeArbiters().

◆ IopPortMemPackResource()

NTSTATUS NTAPI IopPortMemPackResource ( _In_ PIO_RESOURCE_DESCRIPTOR  IoDescriptor,
_In_ UINT64  Start,
_Out_ PCM_PARTIAL_RESOURCE_DESCRIPTOR  CmDescriptor 
)

Definition at line 43 of file arbport.c.

47{
48 PAGED_CODE();
49 DPRINT("IopPortMemPackResource: IoDescriptor: %p, Start: %p, CmDescriptor: %p\n",
50 IoDescriptor,
51 Start,
52 CmDescriptor);
53
56}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42
return pTarget Start()
#define DPRINT
Definition: sndvol32.h:73

Referenced by IopArbPortInitialize().

◆ IopPortMemScoreRequirement()

INT32 NTAPI IopPortMemScoreRequirement ( _In_ PIO_RESOURCE_DESCRIPTOR  IoDescriptor)

Definition at line 77 of file arbport.c.

79{
80 PAGED_CODE();
81 DPRINT("IopPortMemScoreRequirement: IoDescriptor: %p\n",
82 IoDescriptor);
83
85 return 0;
86}

Referenced by IopArbPortInitialize().

◆ IopPortMemUnpackRequirements()

NTSTATUS NTAPI IopPortMemUnpackRequirements ( _In_ PIO_RESOURCE_DESCRIPTOR  IoDescriptor,
_Out_ PUINT64  OutMinimumAddress,
_Out_ PUINT64  OutMaximumAddress,
_Out_ PUINT32  OutLength,
_Out_ PUINT32  OutAlignment 
)

Definition at line 22 of file arbport.c.

28{
29 PAGED_CODE();
30 DPRINT("IopPortMemUnpackRequirements: IoDescriptor: %p, OutMinimumAddress: %p, OutMaximumAddress: %p, OutLength: %p, OutAlignment: %p\n",
31 IoDescriptor,
32 OutMinimumAddress,
33 OutMaximumAddress,
34 OutLength,
35 OutAlignment);
36
39}

Referenced by IopArbPortInitialize().

◆ IopPortMemUnpackResource()

NTSTATUS NTAPI IopPortMemUnpackResource ( _In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR  CmDescriptor,
_Out_ PUINT64  Start,
_Out_ PUINT32  OutLength 
)

Definition at line 60 of file arbport.c.

64{
65 PAGED_CODE();
66 DPRINT("IopPortMemUnpackResource: CmDescriptor: %p, Start: %p, OutLength: %p\n",
67 CmDescriptor,
68 Start,
69 OutLength);
70
73}

Referenced by IopArbPortInitialize().

Variable Documentation

◆ IopRootPortArbiter

ARBITER_INSTANCE IopRootPortArbiter
extern

Definition at line 27 of file pnpinit.c.

Referenced by IopArbPortInitialize().