Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /*
0002  * ata.h
0003  *
0004  * ATA RTEMS driver header file. This file should be included from an
0005  * application.
0006  *
0007  * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia
0008  * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
0009  *
0010  * The license and distribution terms for this file may be
0011  * found in the file LICENSE in this distribution or at
0012  * http://www.rtems.org/license/LICENSE.
0013  */
0014 #ifndef __ATA_H__
0015 #define __ATA_H__
0016 
0017 #include <rtems.h>
0018 #include <sys/ioctl.h>
0019 
0020 #include <rtems/blkdev.h>
0021 
0022 #ifdef __cplusplus
0023 extern "C" {
0024 #endif
0025 
0026 rtems_device_driver rtems_ata_initialize(
0027         rtems_device_major_number major,
0028         rtems_device_minor_number minor,
0029         void *args);
0030 
0031 #define ATA_DRIVER_TABLE_ENTRY \
0032   { rtems_ata_initialize, NULL, NULL, NULL, NULL, NULL }
0033 
0034 /* ATA IOCTL request codes */
0035 #define ATAIO_SET_MULTIPLE_MODE          _IO('A', 1)
0036 
0037 /*
0038  * ATA driver configuration parameters
0039  * FIXME: should be configured more easy...
0040  */
0041 #define ATA_DRIVER_MESSAGE_QUEUE_SIZE    50
0042 #define ATA_DRIVER_TASK_STACK_SIZE       16*1024
0043 #define ATA_DRIVER_TASK_DEFAULT_PRIORITY 140
0044   extern rtems_task_priority rtems_ata_driver_task_priority;
0045 #ifdef __cplusplus
0046 }
0047 #endif
0048 
0049 
0050 #endif /* __ATA_H__ */