⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zlg_fs.h

📁 atmel de booloader 内有源代码 用blb编译
💻 H
字号:
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                     graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:			zlg_fs.c
** Last modified Date:  2005-05-20
** Last Version:		1.0
** Descriptions:		This is a Kernel module for uClinux 2.4.x .**                      This module let uClinux 2.4.x can use ZLG/FS . 
**------------------------------------------------------------------------------------------------------
** Created by:			Chenmingji
** Created date:		2005-05-20
** Version:				1.0
** Descriptions:		The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**

********************************************************************************************************/
#ifndef __ZLG_FS_H
#define __ZLG_FS_H

#ifndef MAX_DISKS#define MAX_DISKS                   40#endif
#ifndef ZLG_FS_SHIFT
#define ZLG_FS_SHIFT                4               /* max 16 partitions  */#endif

#ifndef MAX_DRIVES
#define MAX_DRIVES                  16#endif

typedef struct _zlg_driver_Info
{
    u16     BytesPerSec;
    u32     SecPerDisk;     /* 逻辑驱动器包含扇区数 */
    void    *RsvdForLow;
    u16     (* DiakCommand)(uint8 Cammand, void *Parameter);
    int     (*open) (struct inode *, struct file *);
    int     (*release) (struct inode *, struct file *);
    int     (*get_info) (struct _zlg_driver_Info *);
}fs_drivers;


extern int zlg_fs_add_driver(fs_drivers *info);/*********************************************************************************************************
** Function name: zlg_fs_add_driver
** Descriptions: add driver.
** Input:info:   driver info
** Output 0:     OK
**        other: not OK
********************************************************************************************************/
extern int zlg_fs_remove_driver(fs_drivers *info);/*********************************************************************************************************
** Function name: zlg_fs_remove_driver
** Descriptions: remove driver
** Input:info:   driver info
** Output 0:     OK
**        other: not OK
********************************************************************************************************/

#endif

/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -