XINU
Data Fields
flash Struct Reference

#include <flash.h>

Collaboration diagram for flash:
Collaboration graph
[legend]

Data Fields

uint32 base
 
byte commands
 
byte curr_block
 
struct dentrydevice
 
struct flash_block erase_blocks [MAX_LIVE_BLOCKS]
 
sid32 lock
 
uint32 log_size
 
byte mode
 
uint32 nlog_blocks
 
uint16 nregions
 
struct flash_region regions [MAX_REGIONS]
 
uint32 size
 

Detailed Description

Definition at line 76 of file flash.h.

Field Documentation

◆ base

uint32 flash::base

base address for flash memory

Definition at line 80 of file flash.h.

◆ commands

byte flash::commands

command set the interface uses

Definition at line 79 of file flash.h.

◆ curr_block

byte flash::curr_block

offset of the oldest block stored

Definition at line 92 of file flash.h.

◆ device

struct dentry* flash::device

flash entry in dev structure

Definition at line 78 of file flash.h.

◆ erase_blocks

struct flash_block flash::erase_blocks[MAX_LIVE_BLOCKS]

list of open blocks on flash device

Definition at line 91 of file flash.h.

◆ lock

sid32 flash::lock

lock for execution flash operations

Definition at line 81 of file flash.h.

◆ log_size

uint32 flash::log_size

size of logical disk blocks

Definition at line 87 of file flash.h.

◆ mode

byte flash::mode

current mode of flash

Definition at line 83 of file flash.h.

◆ nlog_blocks

uint32 flash::nlog_blocks

number of logical blocks on disk

Definition at line 88 of file flash.h.

◆ nregions

uint16 flash::nregions

number of regions on device

Definition at line 84 of file flash.h.

◆ regions

struct flash_region flash::regions[MAX_REGIONS]

region info.

Definition at line 85 of file flash.h.

◆ size

uint32 flash::size

size (in bytes) of flash memory

Definition at line 82 of file flash.h.


The documentation for this struct was generated from the following file: