Faiz Abbas | 5cc5107 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | #ifndef _UFS_H |
| 3 | #define _UFS_H |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 4 | |
| 5 | struct udevice; |
| 6 | |
Faiz Abbas | 5cc5107 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 7 | /** |
| 8 | * ufs_probe() - initialize all devices in the UFS uclass |
| 9 | * |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 10 | * Return: 0 if Ok, -ve on error |
Faiz Abbas | 5cc5107 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 11 | */ |
| 12 | int ufs_probe(void); |
| 13 | |
| 14 | /** |
| 15 | * ufs_probe_dev() - initialize a particular device in the UFS uclass |
| 16 | * |
| 17 | * @index: index in the uclass sequence |
| 18 | * |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 19 | * Return: 0 if successfully probed, -ve on error |
Faiz Abbas | 5cc5107 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 20 | */ |
| 21 | int ufs_probe_dev(int index); |
| 22 | |
| 23 | /* |
| 24 | * ufs_scsi_bind() - Create a new scsi device as a child of the UFS device and |
| 25 | * bind it to the ufs_scsi driver |
| 26 | * @ufs_dev: UFS device |
| 27 | * @scsi_devp: Pointer to scsi device |
| 28 | * |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 29 | * Return: 0 if Ok, -ve on error |
Faiz Abbas | 5cc5107 | 2019-10-15 18:24:36 +0530 | [diff] [blame] | 30 | */ |
| 31 | int ufs_scsi_bind(struct udevice *ufs_dev, struct udevice **scsi_devp); |
| 32 | #endif |