ata.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 70 行

H
70
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Thu Nov 10 23:58:07 2005
 *
 *******************************************************************/
/*
 * ata.h
 *
 * ATA AVFS driver header file. This file should be included from an 
 * application.
 *
 * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia
 * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.avfs.com/license/LICENSE.
 * 
 * ata.h,v 1.1.2.2 2003/09/04 18:46:04 joel Exp
 */
#ifndef __ATA_H__
#define __ATA_H__

#ifdef __cplusplus
extern "C" {
#endif
#if 0
#include <avfs.h>
#include <sys/ioctl.h>

#include <avfs/blkdev.h>
#else
#include "includes.h"
#include "ioapi.h"

#endif
avfs_device_driver ata_initialize(
        avfs_device_major_number major,
        avfs_device_minor_number minor,
        void *args);
        
#define ATA_DRIVER_TABLE_ENTRY \
    {ata_initialize, GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES}
    
/* ATA IOCTL request codes */
#define ATAIO_SET_MULTIPLE_MODE          _IO('A', 1)

/* 
 * ATA driver configuration parameters 
 * FIXME: should be configured more easy...
 */
#define ATA_DRIVER_MESSAGE_QUEUE_SIZE    50
#define ATA_DRIVER_TASK_PRIORITY         140
#define ATA_DRIVER_TASK_STACK_SIZE       16*1024 

#ifdef __cplusplus
}
#endif


#endif /* __ATA_H__ */



⌨️ 快捷键说明

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