ReactOS  0.4.14-dev-52-g6116262
ar_busno.c
Go to the documentation of this file.
1 /*
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
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include <pci.h>
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* GLOBALS ********************************************************************/
17 
19 {
20  &GUID_ARBITER_INTERFACE_STANDARD,
21  sizeof(ARBITER_INTERFACE),
22  0,
23  0,
25  0,
29 };
30 
31 /* FUNCTIONS ******************************************************************/
32 
34 NTAPI
36 {
38  /* Not yet implemented */
40  //while (TRUE);
41  return STATUS_SUCCESS;
42 }
43 
45 NTAPI
46 arbusno_Constructor(IN PVOID DeviceExtension,
47  IN PVOID PciInterface,
50  IN USHORT Size,
52 {
55  PAGED_CODE();
56 
57  UNREFERENCED_PARAMETER(PciInterface);
61 
62  /* Make sure it's the expected interface */
64  {
65  /* Arbiter support must have been initialized first */
66  if (FdoExtension->ArbitersInitialized)
67  {
68  /* Not yet implemented */
70  while (TRUE);
71  }
72  else
73  {
74  /* No arbiters for this FDO */
76  }
77  }
78  else
79  {
80  /* Not the right interface */
82  }
83 
84  /* Return the status */
85  return Status;
86 }
87 
88 /* EOF */
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:359
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
PCI_INTERFACE ArbiterInterfaceBusNumber
Definition: ar_busno.c:18
LONG NTSTATUS
Definition: precomp.h:26
#define PAGED_CODE()
Definition: video.h:57
#define PCI_INTERFACE_FDO
Definition: pci.h:56
uint32_t ULONG_PTR
Definition: typedefs.h:63
struct _PCI_FDO_EXTENSION * PPCI_FDO_EXTENSION
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define STATUS_INVALID_PARAMETER_5
Definition: ntstatus.h:465
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
Definition: pci.h:359
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
struct _ARBITER_INTERFACE ARBITER_INTERFACE
Status
Definition: gdiplustypes.h:24
unsigned short USHORT
Definition: pedump.c:61
IN PVOID Instance
Definition: pci.h:359
#define STATUS_NOT_SUPPORTED
Definition: ntstatus.h:409
#define UNIMPLEMENTED
Definition: debug.h:114
IN PVOID IN PVOID InterfaceData
Definition: pci.h:359
#define CmResourceTypeBusNumber
Definition: hwresource.cpp:128
return STATUS_SUCCESS
Definition: btrfs.c:2966
NTSTATUS NTAPI arbusno_Constructor(IN PVOID DeviceExtension, IN PVOID PciInterface, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface)
Definition: ar_busno.c:46
NTSTATUS NTAPI arbusno_Initializer(IN PVOID Instance)
Definition: ar_busno.c:35