ufs.h 720 B

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