ReactOS  0.4.15-dev-2701-g34593d9
agpintrf.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/intrface/agpintrf.c
5  * PURPOSE: AGP Interface
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include <pci.h>
12 
13 #include <ntagp.h>
14 
15 #define NDEBUG
16 #include <debug.h>
17 
18 /* GLOBALS ********************************************************************/
19 
21 {
22  &GUID_AGP_TARGET_BUS_INTERFACE_STANDARD,
27  0,
31 };
32 
33 /* FUNCTIONS ******************************************************************/
34 
36 NTAPI
38 {
40  /* PnP Interfaces don't get Initialized */
41  ASSERTMSG("PCI agpintrf_Initializer, unexpected call.\n", FALSE);
42  return STATUS_UNSUCCESSFUL;
43 }
44 
46 NTAPI
47 agpintrf_Constructor(IN PVOID DeviceExtension,
51  IN USHORT Size,
53 {
55 
61 
62  /* Only AGP bridges are supported (which are PCI-to-PCI Bridge Devices) */
63  if ((PdoExtension->BaseClass != PCI_CLASS_BRIDGE_DEV) ||
65  {
66  /* Fail any other PDO */
67  return STATUS_NOT_SUPPORTED;
68  }
69 
70  /* Not yet implemented */
73 }
74 
75 /* EOF */
#define IN
Definition: typedefs.h:39
return STATUS_NOT_SUPPORTED
NTSTATUS NTAPI agpintrf_Initializer(IN PVOID Instance)
Definition: agpintrf.c:37
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define AGP_BUS_INTERFACE_V1
Definition: ntagp.h:31
LONG NTSTATUS
Definition: precomp.h:26
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
struct _PCI_PDO_EXTENSION * PPCI_PDO_EXTENSION
return STATUS_NOT_IMPLEMENTED
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
NTSTATUS NTAPI agpintrf_Constructor(IN PVOID DeviceExtension, IN PVOID Instance, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface)
Definition: agpintrf.c:47
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:361
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
#define PCI_SUBCLASS_BR_PCI_TO_PCI
Definition: iotypes.h:4165
#define PCI_INTERFACE_PDO
Definition: pci.h:57
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
Definition: pci.h:361
unsigned short USHORT
Definition: pedump.c:61
PCI_INTERFACE AgpTargetInterface
Definition: agpintrf.c:20
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
IN PVOID IN PVOID InterfaceData
Definition: pci.h:361
#define PCI_CLASS_BRIDGE_DEV
Definition: iotypes.h:4109
struct _AGP_BUS_INTERFACE_STANDARD AGP_BUS_INTERFACE_STANDARD
IN PVOID Instance
Definition: pci.h:361