blob: 550b330562131967cb4528749bc1c13dbb25135e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk0f9cfa02002-08-27 10:38:37 +00002/*
3 * (C) Copyright 2000
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk0f9cfa02002-08-27 10:38:37 +00005 */
6
7#ifndef _IDE_H
8#define _IDE_H
9
Luka Perkovf5c0be02012-05-14 09:29:10 +000010#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
wdenk0f9cfa02002-08-27 10:38:37 +000011
Simon Glass427dda82023-04-25 10:54:34 -060012/**
13 * ide_set_reset() - Assert or de-assert reset for the IDE device
14 *
15 * This is provided by boards which need to reset the device through another
16 * means, e.g. a GPIO.
17 *
18 * @idereset: 1 to assert reset, 0 to de-assert it
19 */
20void ide_set_reset(int idereset);
21
wdenk0f9cfa02002-08-27 10:38:37 +000022#endif /* _IDE_H */