ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Macros | |
#define | BREAK_ON_MINIPORT_INIT 0 |
#define | ROUTE_DATA_SIZE 256 |
#define | MEDIA_ARRAY_SIZE 15 |
Variables | |
static NDIS_MEDIUM | MediaArray [MEDIA_ARRAY_SIZE] |
LIST_ENTRY | MiniportListHead |
KSPIN_LOCK | MiniportListLock |
LIST_ENTRY | AdapterListHead |
KSPIN_LOCK | AdapterListLock |
#define BREAK_ON_MINIPORT_INIT 0 |
Definition at line 22 of file miniport.c.
#define MEDIA_ARRAY_SIZE 15 |
Definition at line 31 of file miniport.c.
#define ROUTE_DATA_SIZE 256 |
Definition at line 28 of file miniport.c.
NDIS_STATUS DoQueries | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_OID | AddressOID | ||
) |
Definition at line 1746 of file miniport.c.
Referenced by NdisIPnPStartDevice().
BOOLEAN MiniAdapterHasAddress | ( | PLOGICAL_ADAPTER | Adapter, |
PNDIS_PACKET | Packet | ||
) |
Definition at line 616 of file miniport.c.
Referenced by ProSend().
BOOLEAN MiniCheckForHang | ( | PLOGICAL_ADAPTER | Adapter | ) |
Definition at line 865 of file miniport.c.
Referenced by MiniportHangDpc().
NDIS_STATUS FASTCALL MiniDequeueWorkItem | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_WORK_ITEM_TYPE * | WorkItemType, | ||
PVOID * | WorkItemContext | ||
) |
Definition at line 1050 of file miniport.c.
Referenced by MiniportWorker().
VOID MiniDoAddressingReset | ( | PLOGICAL_ADAPTER | Adapter | ) |
Definition at line 888 of file miniport.c.
Referenced by MiniReset(), and MiniResetComplete().
NDIS_STATUS MiniDoRequest | ( | PLOGICAL_ADAPTER | Adapter, |
PNDIS_REQUEST | NdisRequest | ||
) |
Definition at line 1107 of file miniport.c.
Referenced by MiniportWorker(), MiniQueryInformation(), MiniSetInformation(), and ProRequest().
PNDIS_MINIPORT_WORK_ITEM MiniGetFirstWorkItem | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_WORK_ITEM_TYPE | Type | ||
) |
Definition at line 124 of file miniport.c.
Referenced by MiniIsBusy().
VOID MiniIndicateData | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_HANDLE | MacReceiveContext, | ||
PVOID | HeaderBuffer, | ||
UINT | HeaderBufferSize, | ||
PVOID | LookaheadBuffer, | ||
UINT | LookaheadBufferSize, | ||
UINT | PacketSize | ||
) |
Definition at line 175 of file miniport.c.
Referenced by EthFilterDprIndicateReceive(), and ProIndicatePacket().
VOID NTAPI MiniIndicateReceivePacket | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN PPNDIS_PACKET | PacketArray, | ||
IN UINT | NumberOfPackets | ||
) |
Definition at line 293 of file miniport.c.
Referenced by NdisIPnPStartDevice().
BOOLEAN MiniIsBusy | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_WORK_ITEM_TYPE | Type | ||
) |
Definition at line 142 of file miniport.c.
Referenced by MiniReset(), MiniWorkItemComplete(), ProRequest(), and proSendPacketToMiniport().
PLOGICAL_ADAPTER MiniLocateDevice | ( | PNDIS_STRING | AdapterName | ) |
Definition at line 690 of file miniport.c.
Referenced by ndisBindMiniportsToProtocol(), and NdisOpenAdapter().
VOID NTAPI MiniportHangDpc | ( | PKDPC | Dpc, |
PVOID | DeferredContext, | ||
PVOID | SystemArgument1, | ||
PVOID | SystemArgument2 | ||
) |
Definition at line 949 of file miniport.c.
Referenced by NdisIAddDevice().
Definition at line 1223 of file miniport.c.
Referenced by MiniWorkItemComplete().
NDIS_STATUS MiniQueryInformation | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_OID | Oid, | ||
ULONG | Size, | ||
PVOID | Buffer, | ||
PULONG | BytesWritten | ||
) |
Definition at line 805 of file miniport.c.
Referenced by DoQueries(), NdisIDeviceIoControl(), and NdisIPnPStartDevice().
VOID FASTCALL MiniQueueWorkItem | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_WORK_ITEM_TYPE | WorkItemType, | ||
PVOID | WorkItemContext, | ||
BOOLEAN | Top | ||
) |
Definition at line 982 of file miniport.c.
Referenced by MiniportWorker(), MiniReset(), ProRequest(), ProSend(), and proSendPacketToMiniport().
VOID NTAPI MiniRequestComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | Status | ||
) |
Definition at line 481 of file miniport.c.
Referenced by NdisIPnPStartDevice().
NDIS_STATUS MiniReset | ( | PLOGICAL_ADAPTER | Adapter | ) |
Definition at line 902 of file miniport.c.
Referenced by MiniportHangDpc(), and ProReset().
VOID NTAPI MiniResetComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | Status, | ||
IN BOOLEAN | AddressingReset | ||
) |
Definition at line 435 of file miniport.c.
Referenced by MiniportWorker(), NdisIPnPStartDevice(), and NdisMResetComplete().
VOID NTAPI MiniSendComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN PNDIS_PACKET | Packet, | ||
IN NDIS_STATUS | Status | ||
) |
Definition at line 530 of file miniport.c.
Referenced by MiniportWorker(), NdisIPnPStartDevice(), NdisMSendComplete(), ProSendPackets(), and ScatterGatherSendPacket().
VOID NTAPI MiniSendResourcesAvailable | ( | IN NDIS_HANDLE | MiniportAdapterHandle | ) |
Definition at line 583 of file miniport.c.
Referenced by NdisIPnPStartDevice(), and NdisMSendResourcesAvailable().
NDIS_STATUS MiniSetInformation | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_OID | Oid, | ||
ULONG | Size, | ||
PVOID | Buffer, | ||
PULONG | BytesRead | ||
) |
Definition at line 756 of file miniport.c.
Referenced by MiniDoAddressingReset().
VOID NTAPI MiniStatus | ( | IN NDIS_HANDLE | MiniportHandle, |
IN NDIS_STATUS | GeneralStatus, | ||
IN PVOID | StatusBuffer, | ||
IN UINT | StatusBufferSize | ||
) |
Definition at line 1384 of file miniport.c.
Referenced by NdisIPnPStartDevice(), NdisMIndicateStatus(), and RxChangeBufferingState().
VOID NTAPI MiniStatusComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle | ) |
Definition at line 1417 of file miniport.c.
Referenced by NdisIPnPStartDevice(), and NdisMIndicateStatusComplete().
VOID NTAPI MiniTransferDataComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN PNDIS_PACKET | Packet, | ||
IN NDIS_STATUS | Status, | ||
IN UINT | BytesTransferred | ||
) |
Definition at line 592 of file miniport.c.
Referenced by NdisIPnPStartDevice(), and NdisMTransferDataComplete().
VOID MiniWorkItemComplete | ( | PLOGICAL_ADAPTER | Adapter, |
NDIS_WORK_ITEM_TYPE | WorkItemType | ||
) |
Definition at line 964 of file miniport.c.
Referenced by MiniDoRequest(), MiniRequestComplete(), MiniReset(), MiniSendComplete(), MiniSendResourcesAvailable(), and proSendPacketToMiniport().
Definition at line 3353 of file miniport.c.
VOID EXPORT NdisCompletePnPEvent | ( | IN NDIS_STATUS | Status, |
IN NDIS_HANDLE | NdisBindingHandle, | ||
IN PNET_PNP_EVENT | NetPnPEvent | ||
) |
Definition at line 3290 of file miniport.c.
VOID EXPORT NdisDeregisterAdapterShutdownHandler | ( | IN NDIS_HANDLE | NdisAdapterHandle | ) |
Definition at line 3073 of file miniport.c.
Definition at line 2574 of file miniport.c.
Referenced by NdisMRegisterMiniport().
NTSTATUS NTAPI NdisIAddDevice | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PDEVICE_OBJECT | PhysicalDeviceObject | ||
) |
Definition at line 2420 of file miniport.c.
Referenced by NdisMRegisterMiniport().
Definition at line 1670 of file miniport.c.
Referenced by NdisMRegisterAdapterShutdownHandler().
Definition at line 1871 of file miniport.c.
Referenced by NdisGenericIrpHandler().
NTSTATUS NTAPI NdisIDeviceIoControl | ( | IN PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 2291 of file miniport.c.
Referenced by NdisGenericIrpHandler().
NTSTATUS NTAPI NdisIDispatchPnp | ( | IN PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 2335 of file miniport.c.
Referenced by NdisGenericIrpHandler().
NTSTATUS NTAPI NdisIForwardIrpAndWait | ( | PLOGICAL_ADAPTER | Adapter, |
PIRP | Irp | ||
) |
Definition at line 1851 of file miniport.c.
Referenced by NdisIDispatchPnp().
NTSTATUS NTAPI NdisIForwardIrpAndWaitCompletionRoutine | ( | PDEVICE_OBJECT | Fdo, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
Definition at line 1836 of file miniport.c.
Referenced by NdisIForwardIrpAndWait().
NDIS_HANDLE EXPORT NdisIMGetBindingContext | ( | IN NDIS_HANDLE | NdisBindingHandle | ) |
Definition at line 3376 of file miniport.c.
NDIS_HANDLE EXPORT NdisIMGetDeviceContext | ( | IN NDIS_HANDLE | MiniportAdapterHandle | ) |
Definition at line 3399 of file miniport.c.
VOID EXPORT NdisInitializeWrapper | ( | OUT PNDIS_HANDLE | NdisWrapperHandle, |
IN PVOID | SystemSpecific1, | ||
IN PVOID | SystemSpecific2, | ||
IN PVOID | SystemSpecific3 | ||
) |
Definition at line 1591 of file miniport.c.
NTSTATUS NTAPI NdisIPnPStartDevice | ( | IN PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 1885 of file miniport.c.
Referenced by NdisIDispatchPnp().
NTSTATUS NTAPI NdisIPnPStopDevice | ( | IN PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 2211 of file miniport.c.
Referenced by NdisIDispatchPnp().
NTSTATUS NTAPI NdisIShutdown | ( | IN PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 2269 of file miniport.c.
Referenced by NdisGenericIrpHandler().
VOID EXPORT NdisMCloseLog | ( | IN NDIS_HANDLE | LogHandle | ) |
Definition at line 1447 of file miniport.c.
NDIS_STATUS EXPORT NdisMCreateLog | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN UINT | Size, | ||
OUT PNDIS_HANDLE | LogHandle | ||
) |
Definition at line 1468 of file miniport.c.
VOID EXPORT NdisMDeregisterAdapterShutdownHandler | ( | IN NDIS_HANDLE | MiniportHandle | ) |
Definition at line 1517 of file miniport.c.
Referenced by MiniportHalt(), and NdisDeregisterAdapterShutdownHandler().
NDIS_STATUS EXPORT NdisMDeregisterDevice | ( | IN NDIS_HANDLE | NdisDeviceHandle | ) |
Definition at line 3245 of file miniport.c.
VOID EXPORT NdisMFlushLog | ( | IN NDIS_HANDLE | LogHandle | ) |
Definition at line 1539 of file miniport.c.
VOID EXPORT NdisMGetDeviceProperty | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN OUT PDEVICE_OBJECT *PhysicalDeviceObject | OPTIONAL, | ||
IN OUT PDEVICE_OBJECT *FunctionalDeviceObject | OPTIONAL, | ||
IN OUT PDEVICE_OBJECT *NextDeviceObject | OPTIONAL, | ||
IN OUT PCM_RESOURCE_LIST *AllocatedResources | OPTIONAL, | ||
IN OUT PCM_RESOURCE_LIST *AllocatedResourcesTranslated | OPTIONAL | ||
) |
Definition at line 3112 of file miniport.c.
Referenced by DcInitializeAdapterLocation().
VOID EXPORT NdisMIndicateStatus | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | GeneralStatus, | ||
IN PVOID | StatusBuffer, | ||
IN UINT | StatusBufferSize | ||
) |
Definition at line 1565 of file miniport.c.
VOID EXPORT NdisMIndicateStatusComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle | ) |
Definition at line 1580 of file miniport.c.
NDIS_STATUS EXPORT NdisMQueryAdapterInstanceName | ( | OUT PNDIS_STRING | AdapterInstanceName, |
IN NDIS_HANDLE | MiniportAdapterHandle | ||
) |
Definition at line 3038 of file miniport.c.
Referenced by NdisQueryAdapterInstanceName().
VOID EXPORT NdisMQueryInformationComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | Status | ||
) |
Definition at line 1207 of file miniport.c.
VOID EXPORT NdisMRegisterAdapterShutdownHandler | ( | IN NDIS_HANDLE | MiniportHandle, |
IN PVOID | ShutdownContext, | ||
IN ADAPTER_SHUTDOWN_HANDLER | ShutdownHandler | ||
) |
Definition at line 1694 of file miniport.c.
Referenced by MiniportInitialize(), NdisMSetAttributesEx(), and NdisRegisterAdapterShutdownHandler().
NDIS_STATUS EXPORT NdisMRegisterDevice | ( | IN NDIS_HANDLE | NdisWrapperHandle, |
IN PNDIS_STRING | DeviceName, | ||
IN PNDIS_STRING | SymbolicName, | ||
IN PDRIVER_DISPATCH | MajorFunctions[], | ||
OUT PDEVICE_OBJECT * | pDeviceObject, | ||
OUT NDIS_HANDLE * | NdisDeviceHandle | ||
) |
Definition at line 3173 of file miniport.c.
NDIS_STATUS EXPORT NdisMRegisterMiniport | ( | IN NDIS_HANDLE | NdisWrapperHandle, |
IN PNDIS_MINIPORT_CHARACTERISTICS | MiniportCharacteristics, | ||
IN UINT | CharacteristicsLength | ||
) |
Definition at line 2637 of file miniport.c.
Referenced by DriverEntry().
VOID EXPORT NdisMRegisterUnloadHandler | ( | IN NDIS_HANDLE | NdisWrapperHandle, |
IN PDRIVER_UNLOAD | UnloadHandler | ||
) |
Definition at line 3151 of file miniport.c.
Referenced by DriverEntry().
VOID EXPORT NdisMResetComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | Status, | ||
IN BOOLEAN | AddressingReset | ||
) |
Definition at line 2795 of file miniport.c.
VOID EXPORT NdisMSendComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN PNDIS_PACKET | Packet, | ||
IN NDIS_STATUS | Status | ||
) |
Definition at line 2809 of file miniport.c.
VOID EXPORT NdisMSendResourcesAvailable | ( | IN NDIS_HANDLE | MiniportAdapterHandle | ) |
Definition at line 2831 of file miniport.c.
VOID EXPORT NdisMSetAttributes | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_HANDLE | MiniportAdapterContext, | ||
IN BOOLEAN | BusMaster, | ||
IN NDIS_INTERFACE_TYPE | AdapterType | ||
) |
Definition at line 2858 of file miniport.c.
VOID EXPORT NdisMSetAttributesEx | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_HANDLE | MiniportAdapterContext, | ||
IN UINT CheckForHangTimeInSeconds | OPTIONAL, | ||
IN ULONG | AttributeFlags, | ||
IN NDIS_INTERFACE_TYPE | AdapterType | ||
) |
Definition at line 2883 of file miniport.c.
Referenced by DcInitialize(), MiniportInitialize(), NdisMSetAttributes(), and ParaNdis5_Initialize().
VOID EXPORT NdisMSetInformationComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN NDIS_STATUS | Status | ||
) |
Definition at line 1187 of file miniport.c.
Definition at line 2928 of file miniport.c.
Referenced by DcInitialize(), DcSoftReset(), DcStopReceivePath(), MediaSelectMiiPort(), NICSoftReset(), PhyInitRealtek8211c(), PhyReset(), PreventDPCServicing(), SidebandUnitAcquireSemaphore(), SRomAcquireListMutex(), vdev_sleep(), and VirtIONetRelease().
BOOLEAN EXPORT NdisMSynchronizeWithInterrupt | ( | IN PNDIS_MINIPORT_INTERRUPT | Interrupt, |
IN PVOID | SynchronizeFunction, | ||
IN PVOID | SynchronizeContext | ||
) |
Definition at line 2955 of file miniport.c.
Referenced by MiniportHalt(), MiniportMediaDetectionTimer(), MiniportSend(), NvNetStartAdapter(), and ParaNdis_SynchronizeWithInterrupt().
VOID EXPORT NdisMTransferDataComplete | ( | IN NDIS_HANDLE | MiniportAdapterHandle, |
IN PNDIS_PACKET | Packet, | ||
IN NDIS_STATUS | Status, | ||
IN UINT | BytesTransferred | ||
) |
Definition at line 2843 of file miniport.c.
NDIS_STATUS EXPORT NdisMWriteLogData | ( | IN NDIS_HANDLE | LogHandle, |
IN PVOID | LogBuffer, | ||
IN UINT | LogBufferSize | ||
) |
Definition at line 2970 of file miniport.c.
NDIS_STATUS EXPORT NdisQueryAdapterInstanceName | ( | OUT PNDIS_STRING | AdapterInstanceName, |
IN NDIS_HANDLE | NdisBindingHandle | ||
) |
Definition at line 3268 of file miniport.c.
VOID EXPORT NdisRegisterAdapterShutdownHandler | ( | IN NDIS_HANDLE | NdisAdapterHandle, |
IN PVOID | ShutdownContext, | ||
IN ADAPTER_SHUTDOWN_HANDLER | ShutdownHandler | ||
) |
Definition at line 3091 of file miniport.c.
Definition at line 258 of file miniport.c.
Referenced by DeinitializePacket(), and FreeIPDR().
Definition at line 3012 of file miniport.c.
Referenced by DriverEntry().
LIST_ENTRY AdapterListHead |
Definition at line 57 of file miniport.c.
Referenced by MiniLocateDevice(), and NdisIPnPStartDevice().
KSPIN_LOCK AdapterListLock |
Definition at line 58 of file miniport.c.
Referenced by MiniLocateDevice(), NdisIPnPStartDevice(), and NdisIPnPStopDevice().
|
static |
Definition at line 33 of file miniport.c.
Referenced by LANRegisterAdapter(), and NdisIPnPStartDevice().
LIST_ENTRY MiniportListHead |
Definition at line 53 of file miniport.c.
Referenced by DriverEntry(), and NdisInitializeWrapper().
KSPIN_LOCK MiniportListLock |
Definition at line 54 of file miniport.c.
Referenced by DriverEntry(), NdisInitializeWrapper(), and NdisTerminateWrapper().