Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | 0f9cfa0 | 2002-08-27 10:38:37 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2000 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 0f9cfa0 | 2002-08-27 10:38:37 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _IDE_H |
| 8 | #define _IDE_H |
| 9 | |
Simon Glass | 1a73661 | 2016-02-29 15:25:39 -0700 | [diff] [blame] | 10 | #include <blk.h> |
| 11 | |
Luka Perkov | 8a10180 | 2012-05-14 09:29:10 +0000 | [diff] [blame] | 12 | #define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS)) |
wdenk | 0f9cfa0 | 2002-08-27 10:38:37 +0000 | [diff] [blame] | 13 | |
Simon Glass | 1486c90 | 2023-04-25 10:54:34 -0600 | [diff] [blame] | 14 | /** |
| 15 | * ide_set_reset() - Assert or de-assert reset for the IDE device |
| 16 | * |
| 17 | * This is provided by boards which need to reset the device through another |
| 18 | * means, e.g. a GPIO. |
| 19 | * |
| 20 | * @idereset: 1 to assert reset, 0 to de-assert it |
| 21 | */ |
| 22 | void ide_set_reset(int idereset); |
| 23 | |
wdenk | 0f9cfa0 | 2002-08-27 10:38:37 +0000 | [diff] [blame] | 24 | #endif /* _IDE_H */ |