1 /* 2 * PROJECT: ReactOS PCI Bus Driver 3 * LICENSE: BSD - See COPYING.ARM in the top level directory 4 * FILE: drivers/bus/pci/intrface/cardbus.c 5 * PURPOSE: CardBus Interface 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 18 PCI_INTERFACE PciCardbusPrivateInterface = 19 { 20 &GUID_PCI_CARDBUS_INTERFACE_PRIVATE, 21 sizeof(PCI_CARDBUS_INTERFACE_PRIVATE), 22 PCI_CB_INTRF_VERSION, 23 PCI_CB_INTRF_VERSION, 24 PCI_INTERFACE_PDO, 25 0, 26 PciInterface_PciCb, 27 pcicbintrf_Constructor, 28 pcicbintrf_Initializer 29 }; 30 31 /* FUNCTIONS ******************************************************************/ 32 33 VOID 34 NTAPI 35 Cardbus_SaveCurrentSettings(IN PPCI_CONFIGURATOR_CONTEXT Context) 36 { 37 UNREFERENCED_PARAMETER(Context); 38 UNIMPLEMENTED_DBGBREAK(); 39 } 40 41 VOID 42 NTAPI 43 Cardbus_SaveLimits(IN PPCI_CONFIGURATOR_CONTEXT Context) 44 { 45 UNREFERENCED_PARAMETER(Context); 46 UNIMPLEMENTED_DBGBREAK(); 47 } 48 49 VOID 50 NTAPI 51 Cardbus_MassageHeaderForLimitsDetermination(IN PPCI_CONFIGURATOR_CONTEXT Context) 52 { 53 UNREFERENCED_PARAMETER(Context); 54 UNIMPLEMENTED_DBGBREAK(); 55 } 56 57 VOID 58 NTAPI 59 Cardbus_RestoreCurrent(IN PPCI_CONFIGURATOR_CONTEXT Context) 60 { 61 UNREFERENCED_PARAMETER(Context); 62 UNIMPLEMENTED_DBGBREAK(); 63 } 64 65 VOID 66 NTAPI 67 Cardbus_GetAdditionalResourceDescriptors(IN PPCI_CONFIGURATOR_CONTEXT Context, 68 IN PPCI_COMMON_HEADER PciData, 69 IN PIO_RESOURCE_DESCRIPTOR IoDescriptor) 70 { 71 UNREFERENCED_PARAMETER(Context); 72 UNREFERENCED_PARAMETER(PciData); 73 UNREFERENCED_PARAMETER(IoDescriptor); 74 UNIMPLEMENTED_DBGBREAK(); 75 } 76 77 VOID 78 NTAPI 79 Cardbus_ResetDevice(IN PPCI_PDO_EXTENSION PdoExtension, 80 IN PPCI_COMMON_HEADER PciData) 81 { 82 UNREFERENCED_PARAMETER(PdoExtension); 83 UNREFERENCED_PARAMETER(PciData); 84 UNIMPLEMENTED_DBGBREAK(); 85 } 86 87 VOID 88 NTAPI 89 Cardbus_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension, 90 IN PPCI_COMMON_HEADER PciData) 91 { 92 UNREFERENCED_PARAMETER(PdoExtension); 93 UNREFERENCED_PARAMETER(PciData); 94 UNIMPLEMENTED_DBGBREAK(); 95 } 96 97 NTSTATUS 98 NTAPI 99 pcicbintrf_Initializer(IN PVOID Instance) 100 { 101 UNREFERENCED_PARAMETER(Instance); 102 /* PnP Interfaces don't get Initialized */ 103 ASSERTMSG("PCI pcicbintrf_Initializer, unexpected call.\n", FALSE); 104 return STATUS_UNSUCCESSFUL; 105 } 106 107 NTSTATUS 108 NTAPI 109 pcicbintrf_Constructor(IN PVOID DeviceExtension, 110 IN PVOID Instance, 111 IN PVOID InterfaceData, 112 IN USHORT Version, 113 IN USHORT Size, 114 IN PINTERFACE Interface) 115 { 116 UNREFERENCED_PARAMETER(DeviceExtension); 117 UNREFERENCED_PARAMETER(Instance); 118 UNREFERENCED_PARAMETER(InterfaceData); 119 UNREFERENCED_PARAMETER(Version); 120 UNREFERENCED_PARAMETER(Size); 121 UNREFERENCED_PARAMETER(Interface); 122 123 /* Not yet implemented */ 124 UNIMPLEMENTED_DBGBREAK(); 125 return STATUS_NOT_IMPLEMENTED; 126 } 127 128 /* EOF */ 129