source: rtems/c/src/libchip/ide/ata.h @ b0f45d8

4.104.11
Last change on this file since b0f45d8 was d862ab7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 8, 2008 at 6:59:44 AM

Convert to Unix file format.

  • Property mode set to 100644
File size: 1.2 KB
Line 
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.com/license/LICENSE.
13 *
14 * $Id$
15 */
16#ifndef __ATA_H__
17#define __ATA_H__
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <rtems.h>
24#include <sys/ioctl.h>
25
26#include <rtems/blkdev.h>
27
28rtems_device_driver rtems_ata_initialize(
29        rtems_device_major_number major,
30        rtems_device_minor_number minor,
31        void *args);
32
33#define ATA_DRIVER_TABLE_ENTRY \
34    {rtems_ata_initialize, RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES}
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__ */
Note: See TracBrowser for help on using the repository browser.