Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Macros | Functions | Variables
flashInit.c File Reference
#include <kernel.h>
#include <stdlib.h>
#include <flash.h>
#include "platformflash.h"

Macros

#define NFLASH   0
 

Functions

devcall flashInit (device *devptr)
 

Variables

struct flash flashtab [NFLASH]
 
struct flash_block bad_block = { 0, 0, FLASH_BLOCK_DIRTY, NULL }
 

Detailed Description

Flash initialization. This should be called during general device initialization and will detect a CFI flash device.

Function Documentation

devcall flashInit ( device *  devptr)

Initialized the flash device located beginning at the value of this devices CSR.

Parameters
*devptrpointer to device entry
Returns
OK on success, SYSERR on failure