RTEMS 6.1-rc4
Loading...
Searching...
No Matches
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
23extern "C" {
24#endif
25
26rtems_device_driver rtems_ata_initialize(
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__ */
Block Device Management.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition: types.h:257
This header file defines the RTEMS Classic API.