uffs_device.h File Reference

uffs file system device structures definition More...

#include "uffs/uffs_types.h"
#include "uffs/uffs_config.h"
#include "uffs/uffs_buf.h"
#include "uffs/uffs_blockInfo.h"
#include "uffs/ubuffer.h"
#include "uffs/uffs_tree.h"
#include "uffs/uffs_mem.h"

Go to the source code of this file.

Data Structures

struct  uffs_blockInfoCacheSt
 block information structure, used to manager block information caches More...
struct  uffs_commInfoSt
 common data for device, should be initialized at early More...
struct  uffs_DeviceOpsSt
 flash phycical operations, should be implement in each flash types More...
struct  uffs_DeviceSt
 The core data structure of UFFS, all information needed by manipulate UFFS object. More...
struct  uffs_FlashClassSt
 Flash class descriptor. More...
struct  uffs_FlashOpsSt
 flash specific operations More...
struct  uffs_lockSt
 lock stuffs More...
struct  uffs_newBadBlockSt
struct  uffs_pageBufsSt
struct  uffs_partitionSt
 partition basic information More...
struct  uffs_stat
struct  uffs_storageAttrSt
 uffs device storage attribute, provide by nand specific file More...

Defines

#define UFFS_DEV_EMU   5
#define UFFS_DEV_NAND   1
#define UFFS_DEV_NULL   0
#define UFFS_DEV_RAM   3
#define UFFS_DEV_ROM   4
#define UFFS_DEV_SM   2

Functions

URET uffs_DeviceInitLock (uffs_Device *dev)
URET uffs_DeviceLock (uffs_Device *dev)
URET uffs_DeviceUnLock (uffs_Device *dev)
uffs_Deviceuffs_GetDevice (const char *mountPoint)
const char * uffs_GetDeviceMountPoint (uffs_Device *dev)
void uffs_PutDevice (uffs_Device *dev)


Detailed Description

uffs file system device structures definition

Author:
Ricky Zheng

Definition in file uffs_device.h.


Define Documentation

#define UFFS_DEV_EMU   5

Definition at line 74 of file uffs_device.h.

#define UFFS_DEV_NAND   1

Definition at line 70 of file uffs_device.h.

#define UFFS_DEV_NULL   0

UFFS device type: uffs_DeviceSt.dev_type

Definition at line 69 of file uffs_device.h.

#define UFFS_DEV_RAM   3

Definition at line 72 of file uffs_device.h.

#define UFFS_DEV_ROM   4

Definition at line 73 of file uffs_device.h.

#define UFFS_DEV_SM   2

Definition at line 71 of file uffs_device.h.


Function Documentation

URET uffs_DeviceInitLock ( uffs_Device dev  ) 

Definition at line 43 of file uffs_device.c.

References uffs_mountTableSt::dev, uffs_DeviceSt::lock, uffs_lockSt::sem, uffs_lockSt::task_id, U_SUCC, uffs_SemCreate(), and UFFS_TASK_ID_NOT_EXIST.

URET uffs_DeviceLock ( uffs_Device dev  ) 

Definition at line 51 of file uffs_device.c.

References U_SUCC.

Referenced by uffs_BufReleaseAll(), uffs_FindFirstObject(), and uffs_FindNextObject().

URET uffs_DeviceUnLock ( uffs_Device dev  ) 

Definition at line 57 of file uffs_device.c.

References U_SUCC.

Referenced by uffs_BufReleaseAll(), uffs_FindFirstObject(), and uffs_FindNextObject().

uffs_Device* uffs_GetDevice ( const char *  mountPoint  ) 

Definition at line 13 of file uffs_device.c.

References uffs_mountTableSt::dev, uffs_mountTableSt::mountPoint, NULL, uffs_DeviceSt::refCount, and uffs_GetMountTable().

Referenced by cmdFormat(), and cmdSt().

const char* uffs_GetDeviceMountPoint ( uffs_Device dev  ) 

Definition at line 26 of file uffs_device.c.

References uffs_mountTableSt::dev, uffs_mountTableSt::mountPoint, NULL, and uffs_GetMountTable().

void uffs_PutDevice ( uffs_Device dev  ) 

Definition at line 38 of file uffs_device.c.

References uffs_mountTableSt::dev, and uffs_DeviceSt::refCount.

Referenced by cmdSt().


Generated on Sat Mar 17 15:45:45 2007 for uffs-doc by  doxygen 1.5.0