#include <physical.h>
Collaboration diagram for FsPhysical:
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) |
Definition at line 28 of file physical.h.
|
Creates a physical layer. param is a device-specific parameter, usually 0. |
|
Delete a physical layer |
|
Erase block. firsPage is the page number of the first page in the block. |
|
The size of the memory unit in erasable blocks Definition at line 37 of file physical.h. |
|
In pages Definition at line 35 of file physical.h. |
|
Frees the bus for other devices |
|
In 16-bit words Definition at line 33 of file physical.h. |
|
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. |
|
Re-initializes bus after a fatal error (eg memory card removal) |
|
Version number. 8 MSBs contain version number, 8 LSBs size of the structure in words. Definition at line 31 of file physical.h. |
|
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. |