/* This command is used to read and write (if supported by NIC H/W) nonvolatile storage on the NIC. */
VOID UndiNvData(IN PXE_CDB *Cdb, IN NIC_DATA *Nic)
/* This command is used to read and write (if supported by NIC H/W) nonvolatile storage on the NIC. */
VOID UndiNvData(IN PXE_CDB *Cdb, IN NIC_DATA *Nic)
{
  EFI_STATUS  Status;
  Cdb->StatCode = PXE_STATCODE_UNSUPPORTED;
  if (Nic->UsbEth->UsbEthUndi.UsbEthUndiNvData != NULL) {
    Status = Nic->UsbEth->UsbEthUndi.UsbEthUndiNvData (Cdb, Nic);
    if (EFI_ERROR (Status)) {
      Cdb->StatFlags = PXE_STATFLAGS_COMMAND_FAILED;
    } else {
      Cdb->StatFlags = PXE_STATFLAGS_COMMAND_COMPLETE;
      Cdb->StatCode  = PXE_STATCODE_SUCCESS;
    }
  }
}