27 Snp->Cdb.OpFlags = PXE_OPFLAGS_NOT_USED;
32 Snp->Cdb.StatCode = PXE_STATCODE_INITIALIZE;
33 Snp->Cdb.StatFlags = PXE_STATFLAGS_INITIALIZE;
34 Snp->Cdb.IFnum = Snp->IfNum;
35 Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
40 DEBUG ((DEBUG_NET,
"\nsnp->undi.reset() "));
42 (*Snp->IssueUndi32Command)((UINT64)(
UINTN)&Snp->Cdb);
47 "\nsnp->undi32.reset() %xh:%xh\n",
55 return EFI_DEVICE_ERROR;
89 IN BOOLEAN ExtendedVerification
99 if (!ExtendedVerification) {
100 DEBUG ((DEBUG_WARN,
"ExtendedVerification = %d is not implemented!\n", ExtendedVerification));
101 return EFI_INVALID_PARAMETER;
105 return EFI_INVALID_PARAMETER;
108 Snp = EFI_SIMPLE_NETWORK_DEV_FROM_THIS (This);
110 OldTpl =
gBS->RaiseTPL (TPL_CALLBACK);
112 switch (Snp->Mode.
State) {
113 case EfiSimpleNetworkInitialized:
116 case EfiSimpleNetworkStopped:
117 Status = EFI_NOT_STARTED;
121 Status = EFI_DEVICE_ERROR;
128 gBS->RestoreTPL (OldTpl);
#define DEBUG(Expression)
EFI_STATUS PxeReset(SNP_DRIVER *Snp)
EFI_STATUS EFIAPI SnpUndi32Reset(IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
#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