ide.h 543 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2000
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. */
  6. #ifndef _IDE_H
  7. #define _IDE_H
  8. #include <blk.h>
  9. #define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
  10. /**
  11. * ide_set_reset() - Assert or de-assert reset for the IDE device
  12. *
  13. * This is provided by boards which need to reset the device through another
  14. * means, e.g. a GPIO.
  15. *
  16. * @idereset: 1 to assert reset, 0 to de-assert it
  17. */
  18. void ide_set_reset(int idereset);
  19. #endif /* _IDE_H */