RTEMS 7.0-rc1
Loading...
Searching...
No Matches
ata.h
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
3/*
4 * ata.h
5 *
6 * ATA RTEMS driver header file. This file should be included from an
7 * application.
8 *
9 * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia
10 * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16#ifndef __ATA_H__
17#define __ATA_H__
18
19#include <rtems.h>
20#include <sys/ioctl.h>
21
22#include <rtems/blkdev.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28rtems_device_driver rtems_ata_initialize(
31 void *args);
32
33#define ATA_DRIVER_TABLE_ENTRY \
34 { rtems_ata_initialize, NULL, NULL, NULL, NULL, NULL }
35
36/* ATA IOCTL request codes */
37#define ATAIO_SET_MULTIPLE_MODE _IO('A', 1)
38
39/*
40 * ATA driver configuration parameters
41 * FIXME: should be configured more easy...
42 */
43#define ATA_DRIVER_MESSAGE_QUEUE_SIZE 50
44#define ATA_DRIVER_TASK_STACK_SIZE 16*1024
45#define ATA_DRIVER_TASK_DEFAULT_PRIORITY 140
46 extern rtems_task_priority rtems_ata_driver_task_priority;
47#ifdef __cplusplus
48}
49#endif
50
51
52#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.