ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

agpintrf.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS PCI Bus Driver
00003  * LICENSE:         BSD - See COPYING.ARM in the top level directory
00004  * FILE:            drivers/bus/pci/intrface/agpintrf.c
00005  * PURPOSE:         AGP Interface
00006  * PROGRAMMERS:     ReactOS Portable Systems Group
00007  */
00008 
00009 /* INCLUDES *******************************************************************/
00010 
00011 #include <pci.h>
00012 #define NDEBUG
00013 #include <debug.h>
00014 
00015 /* GLOBALS ********************************************************************/
00016 
00017 PCI_INTERFACE AgpTargetInterface =
00018 {
00019     &GUID_AGP_TARGET_BUS_INTERFACE_STANDARD,
00020     sizeof(AGP_BUS_INTERFACE_STANDARD),
00021     AGP_BUS_INTERFACE_V1,
00022     AGP_BUS_INTERFACE_V1,
00023     PCI_INTERFACE_PDO,
00024     0,
00025     PciInterface_AgpTarget,
00026     agpintrf_Constructor,
00027     agpintrf_Initializer
00028 };
00029 
00030 /* FUNCTIONS ******************************************************************/
00031 
00032 NTSTATUS
00033 NTAPI
00034 agpintrf_Initializer(IN PVOID Instance)
00035 {
00036     /* PnP Interfaces don't get Initialized */
00037     ASSERTMSG(FALSE, "PCI agpintrf_Initializer, unexpected call.");
00038     return STATUS_UNSUCCESSFUL;
00039 }
00040 
00041 NTSTATUS
00042 NTAPI
00043 agpintrf_Constructor(IN PVOID DeviceExtension,
00044                      IN PVOID Instance,
00045                      IN PVOID InterfaceData,
00046                      IN USHORT Version,
00047                      IN USHORT Size,
00048                      IN PINTERFACE Interface)
00049 {
00050     PPCI_PDO_EXTENSION PdoExtension = (PPCI_PDO_EXTENSION)DeviceExtension;
00051 
00052     /* Only AGP bridges are supported (which are PCI-to-PCI Bridge Devices) */
00053     if ((PdoExtension->BaseClass != PCI_CLASS_BRIDGE_DEV) ||
00054         (PdoExtension->SubClass != PCI_SUBCLASS_BR_PCI_TO_PCI))
00055     {
00056         /* Fail any other PDO */
00057         return STATUS_NOT_SUPPORTED;
00058     }
00059 
00060     /* Not yet implemented */
00061     UNIMPLEMENTED;
00062     while (TRUE);
00063 }
00064 
00065 /* EOF */

Generated on Wed May 23 2012 04:25:26 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.