26 Snp->Cdb.OpFlags = PXE_OPFLAGS_NOT_USED;
31 Snp->Cdb.StatCode = PXE_STATCODE_INITIALIZE;
32 Snp->Cdb.StatFlags = PXE_STATFLAGS_INITIALIZE;
33 Snp->Cdb.IFnum = Snp->IfNum;
34 Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
39 DEBUG ((DEBUG_NET,
"\nsnp->undi.stop() "));
41 (*Snp->IssueUndi32Command)((UINT64)(
UINTN)&Snp->Cdb);
46 "\nsnp->undi.stop() %xh:%xh\n",
51 return EFI_DEVICE_ERROR;
57 Snp->Mode.
State = EfiSimpleNetworkStopped;
93 return EFI_INVALID_PARAMETER;
96 Snp = EFI_SIMPLE_NETWORK_DEV_FROM_THIS (This);
98 OldTpl =
gBS->RaiseTPL (TPL_CALLBACK);
100 switch (Snp->Mode.
State) {
101 case EfiSimpleNetworkStarted:
104 case EfiSimpleNetworkStopped:
105 Status = EFI_NOT_STARTED;
109 Status = EFI_DEVICE_ERROR;
116 gBS->RestoreTPL (OldTpl);
#define DEBUG(Expression)
EFI_STATUS PxeStop(SNP_DRIVER *Snp)
EFI_STATUS EFIAPI SnpUndi32Stop(IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
#define PXE_CPBSIZE_NOT_USED
zero
#define PXE_DBSIZE_NOT_USED
zero
#define PXE_CPBADDR_NOT_USED
zero
#define PXE_DBADDR_NOT_USED
zero
#define PXE_STATCODE_SUCCESS