ReactOS  0.4.14-dev-98-gb0d4763
cardbus.c
Go to the documentation of this file.
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 
19 {
20  &GUID_PCI_CARDBUS_INTERFACE_PRIVATE,
25  0,
29 };
30 
31 /* FUNCTIONS ******************************************************************/
32 
33 VOID
34 NTAPI
36 {
39 }
40 
41 VOID
42 NTAPI
44 {
47 }
48 
49 VOID
50 NTAPI
52 {
55 }
56 
57 VOID
58 NTAPI
60 {
63 }
64 
65 VOID
66 NTAPI
68  IN PPCI_COMMON_HEADER PciData,
69  IN PIO_RESOURCE_DESCRIPTOR IoDescriptor)
70 {
72  UNREFERENCED_PARAMETER(PciData);
73  UNREFERENCED_PARAMETER(IoDescriptor);
75 }
76 
77 VOID
78 NTAPI
80  IN PPCI_COMMON_HEADER PciData)
81 {
83  UNREFERENCED_PARAMETER(PciData);
85 }
86 
87 VOID
88 NTAPI
90  IN PPCI_COMMON_HEADER PciData)
91 {
93  UNREFERENCED_PARAMETER(PciData);
95 }
96 
98 NTAPI
100 {
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
110  IN PVOID Instance,
112  IN USHORT Version,
113  IN USHORT Size,
115 {
116  UNREFERENCED_PARAMETER(DeviceExtension);
122 
123  /* Not yet implemented */
125  return STATUS_NOT_IMPLEMENTED;
126 }
127 
128 /* EOF */
struct _PCI_CARDBUS_INTERFACE_PRIVATE PCI_CARDBUS_INTERFACE_PRIVATE
#define IN
Definition: typedefs.h:38
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:359
#define PCI_CB_INTRF_VERSION
Definition: iotypes.h:5162
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
NTSTATUS NTAPI pcicbintrf_Initializer(IN PVOID Instance)
Definition: cardbus.c:99
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
VOID NTAPI Cardbus_ResetDevice(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData)
Definition: cardbus.c:79
LONG NTSTATUS
Definition: precomp.h:26
VOID NTAPI Cardbus_MassageHeaderForLimitsDetermination(IN PPCI_CONFIGURATOR_CONTEXT Context)
Definition: cardbus.c:51
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
VOID NTAPI Cardbus_RestoreCurrent(IN PPCI_CONFIGURATOR_CONTEXT Context)
Definition: cardbus.c:59
VOID NTAPI Cardbus_SaveCurrentSettings(IN PPCI_CONFIGURATOR_CONTEXT Context)
Definition: cardbus.c:35
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
Definition: pci.h:359
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
#define PCI_INTERFACE_PDO
Definition: pci.h:55
PCI_INTERFACE PciCardbusPrivateInterface
Definition: cardbus.c:18
unsigned short USHORT
Definition: pedump.c:61
VOID NTAPI Cardbus_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData)
Definition: cardbus.c:89
IN PVOID Instance
Definition: pci.h:359
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
IN PVOID IN PVOID InterfaceData
Definition: pci.h:359
VOID NTAPI Cardbus_SaveLimits(IN PPCI_CONFIGURATOR_CONTEXT Context)
Definition: cardbus.c:43
NTSTATUS NTAPI pcicbintrf_Constructor(IN PVOID DeviceExtension, IN PVOID Instance, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface)
Definition: cardbus.c:109
VOID NTAPI Cardbus_GetAdditionalResourceDescriptors(IN PPCI_CONFIGURATOR_CONTEXT Context, IN PPCI_COMMON_HEADER PciData, IN PIO_RESOURCE_DESCRIPTOR IoDescriptor)
Definition: cardbus.c:67