2 * PROJECT: ReactOS PCI Bus Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/bus/pci/arb/ar_busno.c
5 * PURPOSE: Bus Number Arbitration
6 * PROGRAMMERS: ReactOS Portable Systems Group
9 /* INCLUDES *******************************************************************/
16 /* GLOBALS ********************************************************************/
18 PCI_INTERFACE ArbiterInterfaceBusNumber
=
20 &GUID_ARBITER_INTERFACE_STANDARD
,
21 sizeof(ARBITER_INTERFACE
),
31 /* FUNCTIONS ******************************************************************/
35 arbusno_Initializer(IN PVOID Instance
)
37 UNREFERENCED_PARAMETER(Instance
);
38 /* Not yet implemented */
41 return STATUS_SUCCESS
;
46 arbusno_Constructor(IN PVOID DeviceExtension
,
47 IN PVOID PciInterface
,
48 IN PVOID InterfaceData
,
51 IN PINTERFACE Interface
)
53 PPCI_FDO_EXTENSION FdoExtension
= (PPCI_FDO_EXTENSION
)DeviceExtension
;
57 UNREFERENCED_PARAMETER(PciInterface
);
58 UNREFERENCED_PARAMETER(Version
);
59 UNREFERENCED_PARAMETER(Size
);
60 UNREFERENCED_PARAMETER(Interface
);
62 /* Make sure it's the expected interface */
63 if ((ULONG
)InterfaceData
!= CmResourceTypeBusNumber
)
65 /* Arbiter support must have been initialized first */
66 if (FdoExtension
->ArbitersInitialized
)
68 /* Not yet implemented */
74 /* No arbiters for this FDO */
75 Status
= STATUS_NOT_SUPPORTED
;
80 /* Not the right interface */
81 Status
= STATUS_INVALID_PARAMETER_5
;
84 /* Return the status */