PHAT12 specific routines. More...
Defines | |
#define | PHAT12CMASK 0x0FFF |
Functions | |
int | Phat12GetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t *link) |
Get link value of a specified cluster. | |
int | Phat12SetClusterLink (NUTDEVICE *dev, uint32_t clust, uint32_t link) |
Set link value of a specified cluster. | |
int | Phat12ReleaseChain (NUTDEVICE *dev, uint32_t first) |
Release a cluster chain. |
PHAT12 specific routines.
#define PHAT12CMASK 0x0FFF |
Get link value of a specified cluster.
dev | Specifies the file system device. |
clust | Get the link of this cluster. |
link | Pointer to a variable which will receive the link. |
References _NUTDEVICE::dev_dcb, PHAT12CMASK, PHATEOC, PhatSectorLoad(), _PHATSECTBUF::sect_data, _PHATVOL::vol_buf, and _PHATVOL::vol_sectsz.
Referenced by Phat12ReleaseChain(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().
Set link value of a specified cluster.
dev | Specifies the file system device. |
clust | This cluster will be linked. |
link | Link to this cluster. |
References _NUTDEVICE::dev_dcb, PHAT12CMASK, PhatSectorLoad(), _PHATSECTBUF::sect_data, _PHATSECTBUF::sect_dirty, _PHATVOL::vol_buf, _PHATVOL::vol_sectsz, and _PHATVOL::vol_tab_sect.
Referenced by AllocFirstCluster(), and Phat12ReleaseChain().
Release a cluster chain.
dev | Specifies the file system device. |
first | First cluster of the chain to release. |
References _NUTDEVICE::dev_dcb, PHAT12CMASK, Phat12GetClusterLink(), Phat12SetClusterLink(), PHATEOC, and _PHATVOL::vol_numfree.
Referenced by PhatDirReleaseChain().