mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
At this point in time, <ide.h> provides the IDE_BUS macro and the function prototype for ide_set_reset, which is used with IDE_RESET. The only files which should include this header are the ones that either use that macro or that function. Remove <blk.h> from <ide.h> and remove <ide.h> from places which do not need it. Signed-off-by: Tom Rini <trini@konsulko.com>
23 lines
525 B
C
23 lines
525 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2000
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*/
|
|
|
|
#ifndef _IDE_H
|
|
#define _IDE_H
|
|
|
|
#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
|
|
|
|
/**
|
|
* 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);
|
|
|
|
#endif /* _IDE_H */
|