ReactOS 0.4.16-dev-588-gf07ea94
|
#include <ndis.h>
#include <section_attribs.h>
#include "dc21x4hw.h"
#include "eeprom.h"
#include "media.h"
#include "util.h"
#include "sendrcv.h"
Go to the source code of this file.
Classes | |
struct | _DC_TX_BUFFER_DATA |
struct | _DC_STATISTICS |
struct | _DC21X4_ADAPTER |
Typedefs | |
typedef struct _DC21X4_ADAPTER | DC21X4_ADAPTER |
typedef struct _DC21X4_ADAPTER * | PDC21X4_ADAPTER |
typedef struct _DC_TCB | DC_TCB |
typedef struct _DC_TCB * | PDC_TCB |
typedef struct _DC_RCB | DC_RCB |
typedef struct _DC_RCB * | PDC_RCB |
typedef struct _DC_COALESCE_BUFFER | DC_COALESCE_BUFFER |
typedef struct _DC_COALESCE_BUFFER * | PDC_COALESCE_BUFFER |
typedef VOID() | MEDIA_HANDLE_LINK_STATE_CHANGE(_In_ PDC21X4_ADAPTER Adapter, _In_ ULONG InterruptStatus) |
typedef MEDIA_HANDLE_LINK_STATE_CHANGE * | PMEDIA_HANDLE_LINK_STATE_CHANGE |
typedef struct _DC_TX_BUFFER_DATA | DC_TX_BUFFER_DATA |
typedef struct _DC_TX_BUFFER_DATA * | PDC_TX_BUFFER_DATA |
typedef struct _DC_STATISTICS | DC_STATISTICS |
typedef struct _DC_STATISTICS * | PDC_STATISTICS |
Variables | |
LIST_ENTRY | SRompAdapterList |
DRIVER_INITIALIZE | DriverEntry |
NDIS_TIMER_FUNCTION | MediaMonitor21040Dpc |
NDIS_TIMER_FUNCTION | MediaMonitor21041Dpc |
NDIS_TIMER_FUNCTION | MediaMonitor21140Dpc |
NDIS_TIMER_FUNCTION | MediaMonitor21143Dpc |
MEDIA_HANDLE_LINK_STATE_CHANGE | MediaLinkStateChange21040 |
MEDIA_HANDLE_LINK_STATE_CHANGE | MediaLinkStateChange21041 |
MEDIA_HANDLE_LINK_STATE_CHANGE | MediaLinkStateChange21143 |
#define DC_PACKET_FILTERS |
#define DC_TBD_RESERVE (2 + DC_LOOPBACK_FRAMES) /* (+2 for setup frame) */ |
#define DC_TCB_RESERVE (1 + DC_LOOPBACK_FRAMES) /* (+1 for setup frame) */ |
typedef struct _DC21X4_ADAPTER DC21X4_ADAPTER |
typedef struct _DC_STATISTICS DC_STATISTICS |
typedef VOID() MEDIA_HANDLE_LINK_STATE_CHANGE(_In_ PDC21X4_ADAPTER Adapter, _In_ ULONG InterruptStatus) |
typedef struct _DC21X4_ADAPTER * PDC21X4_ADAPTER |
typedef struct _DC_COALESCE_BUFFER * PDC_COALESCE_BUFFER |
typedef struct _DC_STATISTICS * PDC_STATISTICS |
typedef struct _DC_TX_BUFFER_DATA * PDC_TX_BUFFER_DATA |
FORCEINLINE ULONG DC_READ | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ DC_CSR | Register | ||
) |
Definition at line 262 of file dc21x4.h.
Referenced by AddressRomReadData(), DcCheckForHang(), DcHandleInterrupt(), DcHandleRxReceivedFrames(), DcInitialize(), DcIsr(), DcPowerDown(), DcQueryInformation(), DcQueryStatisticCounter(), DcResetWorker(), DcStopRxProcess(), DcStopTxRxProcess(), DcTestPacket(), HpnaPhyInit(), MediaGprCheckLink(), MediaLinkStateChange21040(), MediaLinkStateChange21041(), MediaLinkStateChange21143(), MediaMonitor143(), MediaMonitor21040Dpc(), MediaMonitor21041Dpc(), MediaMonitor21143Dpc(), MiiRead(), and SRomDetectAddressBusWidth().
NDIS_STATUS DcAddWakeUpPattern | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ PNDIS_PM_PACKET_PATTERN | PmPattern | ||
) |
Definition at line 215 of file power.c.
Referenced by DcSetInformation().
NDIS_STATUS DcApplyPacketFilter | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | PacketFilter | ||
) |
Definition at line 401 of file hardware.c.
Referenced by DcSetInformation().
Definition at line 271 of file send.c.
Referenced by DriverEntry().
VOID DcDisableHw | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 17 of file hardware.c.
Referenced by DcHalt(), DcInitialize(), and DcShutdown().
Definition at line 17 of file dc21x4.c.
Referenced by DcSetupFrameImperfectFiltering().
BOOLEAN DcFindMiiPhy | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 217 of file phy.c.
Referenced by DcInitialize().
VOID DcFreeAdapter | ( | _In_ __drv_freesMem(Mem) PDC21X4_ADAPTER | Adapter | ) |
Definition at line 1022 of file init.c.
Referenced by DcHalt(), and DcInitialize().
VOID DcFreeEeprom | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 1444 of file eeprom.c.
Referenced by DcFreeAdapter().
VOID NTAPI DcHandleInterrupt | ( | _In_ NDIS_HANDLE | MiniportAdapterContext | ) |
Definition at line 514 of file interrupt.c.
Referenced by DriverEntry().
NDIS_STATUS NTAPI DcInitialize | ( | _Out_ PNDIS_STATUS | OpenErrorStatus, |
_Out_ PUINT | SelectedMediumIndex, | ||
_In_ PNDIS_MEDIUM | MediumArray, | ||
_In_ UINT | MediumArraySize, | ||
_In_ NDIS_HANDLE | MiniportAdapterHandle, | ||
_In_ NDIS_HANDLE | WrapperConfigurationContext | ||
) |
Definition at line 1125 of file init.c.
Referenced by DriverEntry().
VOID DcInitRxRing | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 574 of file init.c.
Referenced by DcSetupAdapter().
VOID DcInitTxRing | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 499 of file init.c.
Referenced by DcSetupAdapter().
VOID NTAPI DcIsr | ( | _Out_ PBOOLEAN | InterruptRecognized, |
_Out_ PBOOLEAN | QueueMiniportHandleInterrupt, | ||
_In_ NDIS_HANDLE | MiniportAdapterContext | ||
) |
Definition at line 594 of file interrupt.c.
Referenced by DriverEntry().
VOID DcPowerSave | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ BOOLEAN | Enable | ||
) |
Definition at line 225 of file power.c.
Referenced by DcDisableHw(), and DcInitialize().
Definition at line 167 of file power.c.
Referenced by DcInitialize().
VOID DcProcessPendingPackets | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 201 of file send.c.
Referenced by DcHandleTx().
NDIS_STATUS NTAPI DcQueryInformation | ( | _In_ NDIS_HANDLE | MiniportAdapterContext, |
_In_ NDIS_OID | Oid, | ||
_In_ PVOID | InformationBuffer, | ||
_In_ ULONG | InformationBufferLength, | ||
_Out_ PULONG | BytesWritten, | ||
_Out_ PULONG | BytesNeeded | ||
) |
Definition at line 208 of file requests.c.
Referenced by DriverEntry().
NDIS_STATUS DcReadEeprom | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 1482 of file eeprom.c.
Referenced by DcInitialize().
NDIS_STATUS DcRemoveWakeUpPattern | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ PNDIS_PM_PACKET_PATTERN | PmPattern | ||
) |
Definition at line 205 of file power.c.
Referenced by DcSetInformation().
Definition at line 190 of file dc21x4.c.
Referenced by DcInitialize().
VOID NTAPI DcReturnPacket | ( | _In_ NDIS_HANDLE | MiniportAdapterContext, |
_In_ PNDIS_PACKET | Packet | ||
) |
Definition at line 244 of file interrupt.c.
Referenced by DriverEntry().
VOID NTAPI DcSendPackets | ( | _In_ NDIS_HANDLE | MiniportAdapterContext, |
_In_ PPNDIS_PACKET | PacketArray, | ||
_In_ UINT | NumberOfPackets | ||
) |
Definition at line 228 of file send.c.
Referenced by DriverEntry().
NDIS_STATUS NTAPI DcSetInformation | ( | _In_ NDIS_HANDLE | MiniportAdapterContext, |
_In_ NDIS_OID | Oid, | ||
_In_ PVOID | InformationBuffer, | ||
_In_ ULONG | InformationBufferLength, | ||
_Out_ PULONG | BytesRead, | ||
_Out_ PULONG | BytesNeeded | ||
) |
Definition at line 483 of file requests.c.
Referenced by DriverEntry().
NDIS_STATUS DcSetPower | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ NDIS_DEVICE_POWER_STATE | PowerState | ||
) |
Definition at line 191 of file power.c.
Referenced by DcSetInformation().
NDIS_STATUS DcSetupAdapter | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 462 of file hardware.c.
Referenced by DcInitialize(), DcPowerUp(), and DcResetWorker().
BOOLEAN DcSetupFrameDownload | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ BOOLEAN | WaitForCompletion | ||
) |
Definition at line 187 of file hardware.c.
Referenced by DcPowerUp(), DcSetupAdapter(), and DcUpdateMulticastList().
VOID DcSetupFrameInitialize | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 260 of file hardware.c.
Referenced by DcInitialize().
VOID DcStartAdapter | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 168 of file dc21x4.c.
Referenced by DcInitialize(), DcPowerUp(), and DcResetWorker().
DECLSPEC_NOINLINE VOID DcStopAdapter | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ BOOLEAN | WaitForPackets | ||
) |
Definition at line 123 of file dc21x4.c.
Referenced by DcHalt(), DcPowerDown(), and DcResetWorker().
VOID DcStopTxRxProcess | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 38 of file hardware.c.
Referenced by DcAdjustTxFifoThreshold(), DcStopAdapter(), DcTransmitTimeoutRecoveryWorker(), Media143SelectNextSerialMedia(), MediaMiiSetSpeedAndDuplex(), and MediaSiaSelect().
VOID DcTestPacket | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 135 of file hardware.c.
Referenced by MediaMonitor21040Dpc(), MediaMonitor21041Dpc(), and MediaMonitor21143Dpc().
VOID NTAPI DcTransmitTimeoutRecoveryWorker | ( | _In_ PNDIS_WORK_ITEM | WorkItem, |
_In_opt_ PVOID | Context | ||
) |
Definition at line 247 of file dc21x4.c.
Referenced by DcInitialize().
NDIS_STATUS DcUpdateMulticastList | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 375 of file hardware.c.
Referenced by DcApplyPacketFilter(), and DcSetInformation().
VOID DcWriteGpio | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | Value | ||
) |
Definition at line 64 of file hardware.c.
Referenced by DcInitialize(), MediaSelectMiiPort(), and MediaSiaSelect().
VOID DcWriteSia | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | Csr13, | ||
_In_ ULONG | Csr14, | ||
_In_ ULONG | Csr15 | ||
) |
Definition at line 89 of file hardware.c.
Referenced by DcSetupAdapter(), MediaMonitor21040Dpc(), MediaSelectMiiPort(), and MediaSiaSelect().
VOID HpnaPhyInit | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 194 of file phy.c.
Referenced by DcSetupAdapter().
VOID MediaGprSelect | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 303 of file media.c.
Referenced by DcSetupAdapter(), and MediaMonitor21140Dpc().
VOID MediaIndicateConnect | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ BOOLEAN | LinkUp | ||
) |
Definition at line 17 of file media.c.
Referenced by Media143Handle100LinkChange(), Media143Handle10LinkFail(), Media143Handle10LinkPass(), Media143SelectNextMedia(), MediaLinkStateChange21040(), MediaLinkStateChange21041(), MediaMonitor143(), MediaMonitor21040Dpc(), MediaMonitor21041Dpc(), MediaMonitor21140Dpc(), and MediaMonitor21143Dpc().
VOID MediaInitDefaultMedia | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | MediaNumber | ||
) |
Definition at line 325 of file media.c.
Referenced by DcInitialize().
VOID MediaInitMediaList | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 547 of file media.c.
Referenced by DcInitialize().
BOOLEAN MediaMiiCheckLink | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 141 of file media.c.
Referenced by MediaMonitor21140Dpc(), and MediaMonitor21143Dpc().
VOID MediaMiiSelect | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 197 of file media.c.
Referenced by DcSetupAdapter(), and Media143SelectNextSerialMedia().
VOID MediaSelectMiiPort | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ BOOLEAN | ResetPhy | ||
) |
Definition at line 215 of file media.c.
Referenced by DcInitialize(), DcSetupAdapter(), and Media143SelectNextSerialMedia().
VOID MediaSiaSelect | ( | _In_ PDC21X4_ADAPTER | Adapter | ) |
Definition at line 268 of file media.c.
Referenced by DcSetupAdapter(), Media041SelectNextMedia(), Media143Handle10LinkPass(), Media143HandleNWayComplete(), Media143SelectNextMedia(), Media143SelectNextSerialMedia(), MediaLinkStateChange21041(), MediaMiiCheckLink(), and MediaMonitor21041Dpc().
BOOLEAN MiiRead | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | PhyAddress, | ||
_In_ ULONG | RegAddress, | ||
_Out_ PULONG | Data | ||
) |
Definition at line 101 of file phy.c.
Referenced by DcFindMiiPhy(), FindPhyDevice(), MediaMiiCheckLink(), MediaMiiGetSpeedAndDuplex(), MediaMiiSelect(), MiiGetSpeedAndDuplex(), NvNetInitNIC(), NvNetPhyInit(), NvNetSetSpeedAndDuplex(), PhyInit(), PhyInitCicadaSemiconductor(), PhyInitRealtek8201(), PhyInitRealtek8211c(), PhyInitVitesseSemiconductor(), and PhyReset().
BOOLEAN MiiWrite | ( | _In_ PDC21X4_ADAPTER | Adapter, |
_In_ ULONG | PhyAddress, | ||
_In_ ULONG | RegAddress, | ||
_In_ ULONG | Data | ||
) |
Definition at line 78 of file phy.c.
Referenced by MediaMiiSelect(), NvNetInitNIC(), PhyInit(), PhyInitCicadaSemiconductor(), PhyInitRealtek8201(), PhyInitRealtek8211b(), PhyInitRealtek8211c(), PhyInitVitesseSemiconductor(), and PhyReset().
MEDIA_HANDLE_LINK_STATE_CHANGE MediaLinkStateChange21040 |
Definition at line 502 of file dc21x4.h.
Referenced by DcRecognizeHardware().
MEDIA_HANDLE_LINK_STATE_CHANGE MediaLinkStateChange21041 |
Definition at line 503 of file dc21x4.h.
Referenced by DcRecognizeHardware().
MEDIA_HANDLE_LINK_STATE_CHANGE MediaLinkStateChange21143 |
Definition at line 504 of file dc21x4.h.
Referenced by DcRecognizeHardware().
NDIS_TIMER_FUNCTION MediaMonitor21040Dpc |
Definition at line 497 of file dc21x4.h.
Referenced by DcRecognizeHardware().
NDIS_TIMER_FUNCTION MediaMonitor21041Dpc |
Definition at line 498 of file dc21x4.h.
Referenced by DcRecognizeHardware().
NDIS_TIMER_FUNCTION MediaMonitor21140Dpc |
Definition at line 499 of file dc21x4.h.
Referenced by DcRecognizeHardware().
NDIS_TIMER_FUNCTION MediaMonitor21143Dpc |
Definition at line 500 of file dc21x4.h.
Referenced by DcRecognizeHardware().
|
extern |
Definition at line 30 of file eeprom.c.
Referenced by DriverEntry(), SRomIsAdapterInList(), and SRomRegisterMasterAdapter().