TianoCore EDK2 master
Loading...
Searching...
No Matches
Flash.c File Reference
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include "VirtHstiDxe.h"

Go to the source code of this file.

Macros

#define WRITE_BYTE_CMD   0x10
 
#define BLOCK_ERASE_CMD   0x20
 
#define CLEAR_STATUS_CMD   0x50
 
#define READ_STATUS_CMD   0x70
 
#define READ_DEVID_CMD   0x90
 
#define BLOCK_ERASE_CONFIRM_CMD   0xd0
 
#define READ_ARRAY_CMD   0xff
 
#define CLEARED_ARRAY_STATUS   0x00
 

Functions

UINT32 VirtHstiQemuFirmwareFlashCheck (UINT32 Address)
 

Detailed Description

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Flash.c.

Macro Definition Documentation

◆ BLOCK_ERASE_CMD

#define BLOCK_ERASE_CMD   0x20

Definition at line 13 of file Flash.c.

◆ BLOCK_ERASE_CONFIRM_CMD

#define BLOCK_ERASE_CONFIRM_CMD   0xd0

Definition at line 17 of file Flash.c.

◆ CLEAR_STATUS_CMD

#define CLEAR_STATUS_CMD   0x50

Definition at line 14 of file Flash.c.

◆ CLEARED_ARRAY_STATUS

#define CLEARED_ARRAY_STATUS   0x00

Definition at line 19 of file Flash.c.

◆ READ_ARRAY_CMD

#define READ_ARRAY_CMD   0xff

Definition at line 18 of file Flash.c.

◆ READ_DEVID_CMD

#define READ_DEVID_CMD   0x90

Definition at line 16 of file Flash.c.

◆ READ_STATUS_CMD

#define READ_STATUS_CMD   0x70

Definition at line 15 of file Flash.c.

◆ WRITE_BYTE_CMD

#define WRITE_BYTE_CMD   0x10

Definition at line 12 of file Flash.c.

Function Documentation

◆ VirtHstiQemuFirmwareFlashCheck()

UINT32 VirtHstiQemuFirmwareFlashCheck ( UINT32  Address)

Definition at line 23 of file Flash.c.