2 * PROJECT: ReactOS PCI Bus Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/bus/pci/arb/ar_memiono.c
5 * PURPOSE: Memory and I/O Port Resource Arbitration
6 * PROGRAMMERS: ReactOS Portable Systems Group
9 /* INCLUDES *******************************************************************/
15 /* GLOBALS ********************************************************************/
17 PCI_INTERFACE ArbiterInterfaceMemory
=
19 &GUID_ARBITER_INTERFACE_STANDARD
,
20 sizeof(ARBITER_INTERFACE
),
30 PCI_INTERFACE ArbiterInterfaceIo
=
32 &GUID_ARBITER_INTERFACE_STANDARD
,
33 sizeof(ARBITER_INTERFACE
),
43 /* FUNCTIONS ******************************************************************/
47 ario_Initializer(IN PVOID Instance
)
49 /* Not yet implemented */
52 return STATUS_SUCCESS
;
57 ario_Constructor(IN PVOID DeviceExtension
,
58 IN PVOID PciInterface
,
59 IN PVOID InterfaceData
,
62 IN PINTERFACE Interface
)
64 PPCI_FDO_EXTENSION FdoExtension
= (PPCI_FDO_EXTENSION
)DeviceExtension
;
68 /* Make sure it's the expected interface */
69 if ((ULONG
)InterfaceData
!= CmResourceTypePort
)
71 /* Arbiter support must have been initialized first */
72 if (FdoExtension
->ArbitersInitialized
)
74 /* Not yet implemented */
80 /* No arbiters for this FDO */
81 Status
= STATUS_NOT_SUPPORTED
;
86 /* Not the right interface */
87 Status
= STATUS_INVALID_PARAMETER_5
;
90 /* Return the status */
96 armem_Initializer(IN PVOID Instance
)
98 /* Not yet implemented */
101 return STATUS_SUCCESS
;
106 armem_Constructor(IN PVOID DeviceExtension
,
107 IN PVOID PciInterface
,
108 IN PVOID InterfaceData
,
111 IN PINTERFACE Interface
)
113 PPCI_FDO_EXTENSION FdoExtension
= (PPCI_FDO_EXTENSION
)DeviceExtension
;
117 /* Make sure it's the expected interface */
118 if ((ULONG
)InterfaceData
!= CmResourceTypeMemory
)
120 /* Arbiter support must have been initialized first */
121 if (FdoExtension
->ArbitersInitialized
)
123 /* Not yet implemented */
129 /* No arbiters for this FDO */
130 Status
= STATUS_NOT_SUPPORTED
;
135 /* Not the right interface */
136 Status
= STATUS_INVALID_PARAMETER_5
;
139 /* Return the status */