4.104.114.84.95
Last change
on this file since a1f1011 was
ef142d7,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/28/02 at 14:00:43
|
2002-10-28 Eugeny S. Mints <Eugeny.Mints@…>
- Added ATA support.
- include/rtems/blkdev.h: Added last IO status.
- include/rtems/ata.h, include/rtems/ata_internal.h,
include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: New
files.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[ef142d7] | 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.OARcorp.com/rtems/license.html. |
---|
| 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | #ifndef __ATA_H__ |
---|
| 17 | #define __ATA_H__ |
---|
| 18 | |
---|
| 19 | #ifdef __cplusplus |
---|
| 20 | extern "C" { |
---|
| 21 | #endif |
---|
| 22 | |
---|
| 23 | #include <rtems.h> |
---|
| 24 | #include <sys/ioctl.h> |
---|
| 25 | |
---|
| 26 | #include <rtems/blkdev.h> |
---|
| 27 | |
---|
| 28 | rtems_device_driver 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 | {ata_initialize, 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_PRIORITY 140 |
---|
| 45 | #define ATA_DRIVER_TASK_STACK_SIZE 16*1024 |
---|
| 46 | |
---|
| 47 | #ifdef __cplusplus |
---|
| 48 | } |
---|
| 49 | #endif |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | #endif /* __ATA_H__ */ |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.