Faiz Abbas | 7feafb0 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 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 | /** |
| 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 | /* |
| 21 | * ufs_scsi_bind() - Create a new scsi device as a child of the UFS device and |
| 22 | * bind it to the ufs_scsi driver |
| 23 | * @ufs_dev: UFS device |
| 24 | * @scsi_devp: Pointer to scsi device |
| 25 | * |
| 26 | * @return 0 if Ok, -ve on error |
| 27 | */ |
| 28 | int ufs_scsi_bind(struct udevice *ufs_dev, struct udevice **scsi_devp); |
| 29 | #endif |