ReactOS  0.4.15-dev-1397-g19779b3
agpintrf.c File Reference
#include <pci.h>
#include <ntagp.h>
#include <debug.h>
Include dependency graph for agpintrf.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI agpintrf_Initializer (IN PVOID Instance)
 
NTSTATUS NTAPI agpintrf_Constructor (IN PVOID DeviceExtension, IN PVOID Instance, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface)
 

Variables

PCI_INTERFACE AgpTargetInterface
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 15 of file agpintrf.c.

Function Documentation

◆ agpintrf_Constructor()

NTSTATUS NTAPI agpintrf_Constructor ( IN PVOID  DeviceExtension,
IN PVOID  Instance,
IN PVOID  InterfaceData,
IN USHORT  Version,
IN USHORT  Size,
IN PINTERFACE  Interface 
)

Definition at line 47 of file agpintrf.c.

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 }
return STATUS_NOT_SUPPORTED
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
struct _PCI_PDO_EXTENSION * PPCI_PDO_EXTENSION
return STATUS_NOT_IMPLEMENTED
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:361
#define PCI_SUBCLASS_BR_PCI_TO_PCI
Definition: iotypes.h:4144
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
Definition: pci.h:361
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
IN PVOID IN PVOID InterfaceData
Definition: pci.h:361
#define PCI_CLASS_BRIDGE_DEV
Definition: iotypes.h:4088
IN PVOID Instance
Definition: pci.h:361

◆ agpintrf_Initializer()

NTSTATUS NTAPI agpintrf_Initializer ( IN PVOID  Instance)

Definition at line 37 of file agpintrf.c.

38 {
40  /* PnP Interfaces don't get Initialized */
41  ASSERTMSG("PCI agpintrf_Initializer, unexpected call.\n", FALSE);
42  return STATUS_UNSUCCESSFUL;
43 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define FALSE
Definition: types.h:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
IN PVOID Instance
Definition: pci.h:361

Variable Documentation

◆ AgpTargetInterface

PCI_INTERFACE AgpTargetInterface
Initial value:
=
{
&GUID_AGP_TARGET_BUS_INTERFACE_STANDARD,
0,
}
NTSTATUS NTAPI agpintrf_Initializer(IN PVOID Instance)
Definition: agpintrf.c:37
#define AGP_BUS_INTERFACE_V1
Definition: ntagp.h:31
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
#define PCI_INTERFACE_PDO
Definition: pci.h:57
struct _AGP_BUS_INTERFACE_STANDARD AGP_BUS_INTERFACE_STANDARD

Definition at line 20 of file agpintrf.c.