blob: 0592a763dd9f583365c61fccde22d4c34a43c03f [file] [log] [blame]
Faiz Abbas5cc51072019-10-15 18:24:36 +05301/* 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 */
9int 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 */
18int 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 */
28int ufs_scsi_bind(struct udevice *ufs_dev, struct udevice **scsi_devp);
29#endif