RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
include
libchip
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__ */
blkdev.h
Block Device Management.
rtems_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
rtems_task_priority
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition
types.h:257
rtems.h
This header file defines the RTEMS Classic API.
Generated by
1.18.0