Files
rtems/bsps/include/libchip/ata.h
Joel Sherrill 19aee5aaa8 bsps/include/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00

53 lines
1.2 KiB
C

/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
/*
* 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.org/license/LICENSE.
*/
#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, NULL, NULL, NULL, NULL, NULL }
/* 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__ */