Sync with trunk head (r48786)
[reactos.git] / drivers / bus / pcix / intrface / routintf.c
1 /*
2 * PROJECT: ReactOS PCI Bus Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/bus/pci/intrface/routinf.c
5 * PURPOSE: Routing Interface
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include <pci.h>
12 #define NDEBUG
13 #include <debug.h>
14
15 /* GLOBALS ********************************************************************/
16
17 PCI_INTERFACE PciRoutingInterface =
18 {
19 &GUID_INT_ROUTE_INTERFACE_STANDARD,
20 sizeof(INT_ROUTE_INTERFACE_STANDARD),
21 PCI_INT_ROUTE_INTRF_STANDARD_VER,
22 PCI_INT_ROUTE_INTRF_STANDARD_VER,
23 PCI_INTERFACE_FDO,
24 0,
25 PciInterface_IntRouteHandler,
26 routeintrf_Constructor,
27 routeintrf_Initializer
28 };
29
30 /* FUNCTIONS ******************************************************************/
31
32 NTSTATUS
33 NTAPI
34 routeintrf_Initializer(IN PVOID Instance)
35 {
36 /* PnP Interfaces don't get Initialized */
37 ASSERTMSG(FALSE, "PCI routeintrf_Initializer, unexpected call.");
38 return STATUS_UNSUCCESSFUL;
39 }
40
41 NTSTATUS
42 NTAPI
43 routeintrf_Constructor(IN PVOID DeviceExtension,
44 IN PVOID Instance,
45 IN PVOID InterfaceData,
46 IN USHORT Version,
47 IN USHORT Size,
48 IN PINTERFACE Interface)
49 {
50 /* Only version 1 is supported */
51 if (Version != PCI_INT_ROUTE_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
52
53 /* Not yet implemented */
54 UNIMPLEMENTED;
55 while (TRUE);
56 }
57
58 /* EOF */