RTEMS  5.1
ata.h
1 /*
2  * ata.h
3  *
4  * ATA RTEMS driver header file. This file should be included from an
5  * application.
6  *
7  * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia
8  * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
9  *
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  * http://www.rtems.org/license/LICENSE.
13  */
14 #ifndef __ATA_H__
15 #define __ATA_H__
16 
17 #include <rtems.h>
18 #include <sys/ioctl.h>
19 
20 #include <rtems/blkdev.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 rtems_device_driver rtems_ata_initialize(
27  rtems_device_major_number major,
28  rtems_device_minor_number minor,
29  void *args);
30 
31 #define ATA_DRIVER_TABLE_ENTRY \
32  { rtems_ata_initialize, NULL, NULL, NULL, NULL, NULL }
33 
34 /* ATA IOCTL request codes */
35 #define ATAIO_SET_MULTIPLE_MODE _IO('A', 1)
36 
37 /*
38  * ATA driver configuration parameters
39  * FIXME: should be configured more easy...
40  */
41 #define ATA_DRIVER_MESSAGE_QUEUE_SIZE 50
42 #define ATA_DRIVER_TASK_STACK_SIZE 16*1024
43 #define ATA_DRIVER_TASK_DEFAULT_PRIORITY 140
44  extern rtems_task_priority rtems_ata_driver_task_priority;
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 
50 #endif /* __ATA_H__ */
rtems_status_code
Classic API Status.
Definition: status.h:43
Block Device Management.
uint32_t rtems_task_priority
Definition: tasks.h:55