707{
710 PVOID UnalignedAdapter;
713
715
717
719 {
721 {
723 break;
724 }
725 }
727 {
730 }
731
733
738 {
741 }
742
748
751 {
752 goto Failure;
753 }
754
756 Adapter,
757 0,
759
762
765 {
767 {
769 }
771 {
773 }
774
775 goto Failure;
776 }
777
780 {
781 goto Failure;
782 }
783
787
789 {
791 goto Failure;
792 }
793
796 {
798
800 goto Failure;
801 }
802
805
807 {
810 }
811 else
812 {
814
816 {
818 }
819 else
820 {
822 }
823 }
824
827 {
829 goto Failure;
830 }
831
833 {
836 }
837
839
842 {
844
846 goto Failure;
847 }
848
852
853
854#if defined(SARCH_XBOX)
862#else
870#endif
872 {
874 goto Failure;
875 }
876
878
880
881Failure:
883
885}
#define NDIS_DbgPrint(_t_, _x_)
static NDIS_STATUS AllocateAdapterMemory(_In_ PNVNET_ADAPTER Adapter)
VOID NvNetFreeAdapter(_In_ PNVNET_ADAPTER Adapter)
static VOID NvNetInitReceiveMemory(_In_ PNVNET_ADAPTER Adapter)
VOID NvNetInitTransmitMemory(_In_ PNVNET_ADAPTER Adapter)
static NDIS_STATUS NvNetInitializeAdapterResources(_Inout_ PNVNET_ADAPTER Adapter)
static NDIS_STATUS NvNetReadConfiguration(_Inout_ PNVNET_ADAPTER Adapter)
NDIS_STATUS EXPORT NdisMInitializeScatterGatherDma(IN NDIS_HANDLE MiniportAdapterHandle, IN BOOLEAN Dma64BitAddresses, IN ULONG MaximumPhysicalMapping)
NDIS_STATUS EXPORT NdisMRegisterInterrupt(OUT PNDIS_MINIPORT_INTERRUPT Interrupt, IN NDIS_HANDLE MiniportAdapterHandle, IN UINT InterruptVector, IN UINT InterruptLevel, IN BOOLEAN RequestIsr, IN BOOLEAN SharedInterrupt, IN NDIS_INTERRUPT_MODE InterruptMode)
ULONG EXPORT NdisGetSharedDataAlignment(VOID)
#define NDIS_STATUS_NOT_RECOGNIZED
#define NdisInterruptLatched
#define NDIS_ATTRIBUTE_BUS_MASTER
#define NDIS_ERROR_CODE_INTERRUPT_CONNECT
#define NdisInterruptLevelSensitive
#define NDIS_ERROR_CODE_OUT_OF_RESOURCES
#define NDIS_ERROR_CODE_NETWORK_ADDRESS
#define NDIS_ERROR_CODE_ADAPTER_NOT_FOUND
#define NDIS_ERROR_CODE_HARDWARE_FAILURE
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _Out_ PUINT SelectedMediumIndex
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _Out_ PUINT _In_ UINT MediumArraySize
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _In_ NDIS_HANDLE WrapperConfigurationContext
_In_ NDIS_HANDLE MiniportAdapterHandle
#define NDIS_STATUS_UNSUPPORTED_MEDIA
#define NDIS_STATUS_ADAPTER_NOT_FOUND
#define NDIS_ATTRIBUTE_USES_SAFE_BUFFER_APIS
#define NDIS_ERROR_CODE_UNSUPPORTED_CONFIGURATION
VOID EXPORT NdisMSetAttributesEx(IN NDIS_HANDLE MiniportAdapterHandle, IN NDIS_HANDLE MiniportAdapterContext, IN UINT CheckForHangTimeInSeconds OPTIONAL, IN ULONG AttributeFlags, IN NDIS_INTERFACE_TYPE AdapterType)
NDIS_STATUS NvNetRecognizeHardware(_Inout_ PNVNET_ADAPTER Adapter)
VOID NvNetSetupMacAddress(_In_ PNVNET_ADAPTER Adapter, _In_reads_bytes_(ETH_LENGTH_OF_ADDRESS) PUCHAR MacAddress)
NDIS_STATUS NvNetInitNIC(_In_ PNVNET_ADAPTER Adapter, _In_ BOOLEAN InitPhy)
NDIS_STATUS NvNetGetPermanentMacAddress(_Inout_ PNVNET_ADAPTER Adapter, _Out_writes_bytes_all_(ETH_LENGTH_OF_ADDRESS) PUCHAR MacAddress)
#define NVREG_IRQSTAT_MASK
#define DEV_HAS_LARGEDESC
#define NVREG_MIISTAT_MASK_ALL
VOID NvNetStartAdapter(_In_ PNVNET_ADAPTER Adapter)
NVNET_PROCESS_TRANSMIT ProcessTransmitDescriptorsLegacy
NVNET_PROCESS_TRANSMIT ProcessTransmitDescriptors64
NVNET_TRANSMIT_PACKET NvNetTransmitPacket64
#define NVNET_MAXIMUM_FRAME_SIZE
#define NvNetDisableInterrupts(Adapter)
#define NvNetLogError(Adapter, ErrorCode)
struct _NVNET_ADAPTER NVNET_ADAPTER
NVNET_PROCESS_TRANSMIT ProcessTransmitDescriptors32
#define NV_USE_SOFT_MAC_ADDRESS
NVNET_TRANSMIT_PACKET NvNetTransmitPacket32
FORCEINLINE VOID NV_WRITE(_In_ PNVNET_ADAPTER Adapter, _In_ NVNET_REGISTER Register, _In_ ULONG Value)
UCHAR PermanentMacAddress[ETH_LENGTH_OF_ADDRESS]
PNVNET_TRANSMIT_PACKET TransmitPacket
NDIS_MINIPORT_INTERRUPT Interrupt
NDIS_HANDLE AdapterHandle
UCHAR CurrentMacAddress[ETH_LENGTH_OF_ADDRESS]
NDIS_HANDLE WrapperConfigurationHandle
PNVNET_PROCESS_TRANSMIT ProcessTransmit
#define ETH_COPY_NETWORK_ADDRESS(_D, _S)