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