#include "dc21x4.h"
#include <debug.h>
Go to the source code of this file.
◆ DcAddWakeUpPattern()
Definition at line 215 of file power.c.
218{
219
220 ERR(
"FIXME: Not implemented\n");
222}
#define NDIS_STATUS_NOT_SUPPORTED
Referenced by DcSetInformation().
◆ DcDownloadPatternFilter()
Definition at line 19 of file power.c.
22{
24
26
27 for (
i = 0;
i <
sizeof(*FilterBlock) /
sizeof(
ULONG); ++
i)
28 {
30 }
31}
#define DC_WRITE(Adapter, Register, Value)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by DcSetupWakeUpFilter().
◆ DcPowerDown()
Definition at line 84 of file power.c.
86{
87 ULONG SiaState, SerialInterface;
88
90
91
93
94 Adapter->CurrentInterruptMask = 0;
95
96
97 switch (Adapter->MediaNumber)
98 {
102 {
105 {
108 }
109 break;
110 }
111
112 default:
113 break;
114 }
115
116
119 {
120 SerialInterface &= ~DC_SERIAL_MII_MDC;
122 }
123
124
126
127
130
131
133}
DECLSPEC_NOINLINE VOID DcStopAdapter(_In_ PDC21X4_ADAPTER Adapter, _In_ BOOLEAN WaitForPackets)
FORCEINLINE ULONG DC_READ(_In_ PDC21X4_ADAPTER Adapter, _In_ DC_CSR Register)
#define DC_BUS_MODE_ON_NOW_UNLOCK
#define DC_SERIAL_MII_MDC
#define DC_SIA_TXRX_LINK_TEST
static VOID DcSetupWakeUpFilter(_In_ PDC21X4_ADAPTER Adapter)
static VOID DcProgramWakeUpEvents(_In_ PDC21X4_ADAPTER Adapter)
Referenced by DcPowerWorker().
◆ DcPowerSave()
Definition at line 225 of file power.c.
228{
230
232 return;
233
235 0,
237 &ConfigValue,
238 sizeof(ConfigValue));
239
240 ConfigValue &= ~DC_PCI_DEVICE_CONFIG_SLEEP;
241
244 else
245 ConfigValue &= ~DC_PCI_DEVICE_CONFIG_SNOOZE;
246
248 0,
250 &ConfigValue,
251 sizeof(ConfigValue));
252}
#define DC_HAS_POWER_SAVING
#define DC_PCI_DEVICE_CONFIG
#define DC_PCI_DEVICE_CONFIG_SNOOZE
ULONG EXPORT NdisReadPciSlotInformation(IN NDIS_HANDLE NdisAdapterHandle, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length)
ULONG EXPORT NdisWritePciSlotInformation(IN NDIS_HANDLE NdisAdapterHandle, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length)
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Referenced by DcDisableHw(), and DcInitialize().
◆ DcPowerUp()
Definition at line 138 of file power.c.
140{
142
143
145
146
148 {
150 }
151 else
152 {
153
156
157
159 }
160
162}
VOID DcStartAdapter(_In_ PDC21X4_ADAPTER Adapter)
NDIS_STATUS DcSetupAdapter(_In_ PDC21X4_ADAPTER Adapter)
BOOLEAN DcSetupFrameDownload(_In_ PDC21X4_ADAPTER Adapter, _In_ BOOLEAN WaitForCompletion)
#define DC_OPMODE_TX_ENABLE
#define DC_SETUP_FRAME_SIZE
#define NDIS_STATUS_SUCCESS
#define NdisMoveMemory(Destination, Source, Length)
Referenced by DcPowerWorker().
◆ DcPowerWorker()
Definition at line 167 of file power.c.
170{
172
174
176
178 {
180 }
181 else
182 {
184 }
186
188}
static VOID DcPowerDown(_In_ PDC21X4_ADAPTER Adapter)
static VOID DcPowerUp(_In_ PDC21X4_ADAPTER Adapter)
#define NdisMSetInformationComplete(MiniportAdapterHandle, Status)
#define UNREFERENCED_PARAMETER(P)
NDIS_DEVICE_POWER_STATE PowerState
NDIS_HANDLE AdapterHandle
NDIS_DEVICE_POWER_STATE PrevPowerState
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
Referenced by DcInitialize().
◆ DcProgramWakeUpEvents()
Definition at line 56 of file power.c.
58{
60
62
63
67
68
73#if 0
76#endif
77
79}
#define DC_WAKE_UP_CONTROL_LINK_CHANGE
#define DC_WAKE_UP_STATUS_LINK_CHANGE
#define DC_WAKE_UP_CONTROL_MAGIC_PACKET
#define DC_WAKE_UP_CONTROL_PATTERN_MATCH
#define DC_WAKE_UP_STATUS_MAGIC_PACKET
#define NDIS_PNP_WAKE_UP_MAGIC_PACKET
#define NDIS_PNP_WAKE_UP_LINK_CHANGE
#define NDIS_PNP_WAKE_UP_PATTERN_MATCH
Referenced by DcPowerDown().
◆ DcRemoveWakeUpPattern()
◆ DcSetPower()
Definition at line 191 of file power.c.
194{
196
198
200
202}
NDIS_STATUS EXPORT NdisScheduleWorkItem(IN PNDIS_WORK_ITEM pWorkItem)
#define NDIS_STATUS_PENDING
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
Referenced by DcSetInformation().
◆ DcSetupWakeUpFilter()
Definition at line 36 of file power.c.
38{
40
42
43
45
47
48
49
51}
static VOID DcDownloadPatternFilter(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_PATTERN_FILTER_BLOCK FilterBlock)
#define NdisZeroMemory(Destination, Length)
Referenced by DcPowerDown().