summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/ide/ata.h
blob: 1c3036a7d5d8624e565529a3d7c6e13e4ef4c7f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * ata.h
 *
 * ATA RTEMS driver header file. This file should be included from an
 * application.
 *
 * Copyright (C) 2002 OKTET Ltd., St.-Petersburg, Russia
 * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.com/license/LICENSE.
 *
 * $Id$
 */
#ifndef __ATA_H__
#define __ATA_H__

#include <rtems.h>
#include <sys/ioctl.h>

#include <rtems/blkdev.h>

#ifdef __cplusplus
extern "C" {
#endif

rtems_device_driver rtems_ata_initialize(
        rtems_device_major_number major,
        rtems_device_minor_number minor,
        void *args);

#define ATA_DRIVER_TABLE_ENTRY \
    {rtems_ata_initialize, RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES}

/* ATA IOCTL request codes */
#define ATAIO_SET_MULTIPLE_MODE          _IO('A', 1)

/*
 * ATA driver configuration parameters
 * FIXME: should be configured more easy...
 */
#define ATA_DRIVER_MESSAGE_QUEUE_SIZE    50
#define ATA_DRIVER_TASK_STACK_SIZE       16*1024
#define ATA_DRIVER_TASK_DEFAULT_PRIORITY 140
  extern rtems_task_priority rtems_ata_driver_task_priority;
#ifdef __cplusplus
}
#endif


#endif /* __ATA_H__ */