VLSI Solution Oy / MegaLib Documentation

FsPhysical Struct Reference

#include <physical.h>

Collaboration diagram for FsPhysical:

Collaboration graph
[legend]

Data Fields

u_int16 version
u_int16 pageSize
u_int16 eraseBlockSize
u_int16 eraseBlocks
FsPhysical *(* Create )(u_int16 param)
s_int16(* Delete )(struct FsPhysical *p)
s_int16(* Read )(struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta)
s_int16(* Write )(struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta)
s_int16(* Erase )(struct FsPhysical *p, s_int32 page)
s_int16(* FreeBus )(struct FsPhysical *p)
s_int16(* Reinitialize )(struct FsPhysical *p)

Detailed Description

File system Physical layer basic structure. Each Physical layer internal structure should begin with this.

Definition at line 28 of file physical.h.


Field Documentation

struct FsPhysical*(* FsPhysical::Create)(u_int16 param)
 

Creates a physical layer. param is a device-specific parameter, usually 0.

s_int16(* FsPhysical::Delete)(struct FsPhysical *p)
 

Delete a physical layer

s_int16(* FsPhysical::Erase)(struct FsPhysical *p, s_int32 page)
 

Erase block. firsPage is the page number of the first page in the block.

u_int16 FsPhysical::eraseBlocks
 

The size of the memory unit in erasable blocks

Definition at line 37 of file physical.h.

u_int16 FsPhysical::eraseBlockSize
 

In pages

Definition at line 35 of file physical.h.

s_int16(* FsPhysical::FreeBus)(struct FsPhysical *p)
 

Frees the bus for other devices

u_int16 FsPhysical::pageSize
 

In 16-bit words

Definition at line 33 of file physical.h.

s_int16(* FsPhysical::Read)(struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta)
 

Read pages. meta is physical-specific data and not necessarily used. If either data or meta is NULL, that information is not returned. Setting both pointers to NULL is an error condition.

s_int16(* FsPhysical::Reinitialize)(struct FsPhysical *p)
 

Re-initializes bus after a fatal error (eg memory card removal)

u_int16 FsPhysical::version
 

Version number. 8 MSBs contain version number, 8 LSBs size of the structure in words.

Definition at line 31 of file physical.h.

s_int16(* FsPhysical::Write)(struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta)
 

Write pages. meta is physical-specific data and not necessarily used. If either data or meta is NULL, that information is not written. Setting both pointers to NULL is an error condition.


The documentation for this struct was generated from the following file:
All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.