PHAT16 Support
[PHAT File System]

Collaboration diagram for PHAT16 Support:


Detailed Description

PHAT16 specific routines.


Defines

#define PHAT16CMASK   0xFFFF

Functions

int Phat16GetClusterLink (NUTDEVICE *dev, u_long clust, u_long *link)
 Get link value of a specified cluster.
int Phat16SetClusterLink (NUTDEVICE *dev, u_long clust, u_long link)
 Set link value of a specified cluster.
int Phat16ReleaseChain (NUTDEVICE *dev, u_long first)
 Release a cluster chain.


Define Documentation

#define PHAT16CMASK   0xFFFF

Definition at line 55 of file phat16.h.

Referenced by AllocFirstCluster(), Phat16GetClusterLink(), and Phat16ReleaseChain().


Function Documentation

int Phat16GetClusterLink ( NUTDEVICE dev,
u_long  clust,
u_long link 
)

Get link value of a specified cluster.

Parameters:
dev Specifies the file system device.
clust Get the link of this cluster.
link Pointer to a variable which will receive the link.
Returns:
0 on success or -1 on failure.

Definition at line 100 of file phat16.c.

References _NUTDEVICE::dev_dcb, PHAT16CMASK, PHATEOC, PhatSectorLoad(), _PHATSECTBUF::sect_data, and _PHATVOL::vol_buf.

Referenced by Phat16ReleaseChain().

int Phat16SetClusterLink ( NUTDEVICE dev,
u_long  clust,
u_long  link 
)

Set link value of a specified cluster.

Parameters:
dev Specifies the file system device.
clust This cluster will be linked.
link Link to this cluster.
Returns:
0 on success or -1 on failure.

Definition at line 134 of file phat16.c.

References _NUTDEVICE::dev_dcb, PhatSectorLoad(), _PHATSECTBUF::sect_data, _PHATSECTBUF::sect_dirty, _PHATVOL::vol_buf, and _PHATVOL::vol_tab_sect.

Referenced by AllocFirstCluster(), and Phat16ReleaseChain().

int Phat16ReleaseChain ( NUTDEVICE dev,
u_long  first 
)

Release a cluster chain.

Parameters:
dev Specifies the file system device.
first First cluster of the chain to release.
Returns:
0 on success or -1 on failure.

Definition at line 162 of file phat16.c.

References _NUTDEVICE::dev_dcb, PHAT16CMASK, Phat16GetClusterLink(), Phat16SetClusterLink(), PHATEOC, and _PHATVOL::vol_numfree.

Referenced by PhatDirReleaseChain().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/