2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2002-08-27 18:38:37 +08:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IDE_H
|
|
|
|
#define _IDE_H
|
|
|
|
|
2016-03-01 06:25:39 +08:00
|
|
|
#include <blk.h>
|
|
|
|
|
2012-05-14 17:29:10 +08:00
|
|
|
#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
|
2002-08-27 18:38:37 +08:00
|
|
|
|
2023-04-26 00:54:34 +08:00
|
|
|
/**
|
|
|
|
* ide_set_reset() - Assert or de-assert reset for the IDE device
|
|
|
|
*
|
|
|
|
* This is provided by boards which need to reset the device through another
|
|
|
|
* means, e.g. a GPIO.
|
|
|
|
*
|
|
|
|
* @idereset: 1 to assert reset, 0 to de-assert it
|
|
|
|
*/
|
|
|
|
void ide_set_reset(int idereset);
|
|
|
|
|
2002-08-27 18:38:37 +08:00
|
|
|
#endif /* _IDE_H */
|