ufs.h 702 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef _UFS_H
  3. #define _UFS_H
  4. /**
  5. * ufs_probe() - initialize all devices in the UFS uclass
  6. *
  7. * @return 0 if Ok, -ve on error
  8. */
  9. int ufs_probe(void);
  10. /**
  11. * ufs_probe_dev() - initialize a particular device in the UFS uclass
  12. *
  13. * @index: index in the uclass sequence
  14. *
  15. * @return 0 if successfully probed, -ve on error
  16. */
  17. int ufs_probe_dev(int index);
  18. /*
  19. * ufs_scsi_bind() - Create a new scsi device as a child of the UFS device and
  20. * bind it to the ufs_scsi driver
  21. * @ufs_dev: UFS device
  22. * @scsi_devp: Pointer to scsi device
  23. *
  24. * @return 0 if Ok, -ve on error
  25. */
  26. int ufs_scsi_bind(struct udevice *ufs_dev, struct udevice **scsi_devp);
  27. #endif