ide: Create a prototype for ide_set_reset()

This is used by a board so should be in the header file. Add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-04-25 10:54:34 -06:00
committed by Tom Rini
parent f8e87e73e4
commit 1486c90623
2 changed files with 10 additions and 2 deletions

View File

@@ -22,4 +22,14 @@ ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
const void *buffer);
/**
* 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 */