]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/ufs.h
usb: dwc3: add dis_u2_freeclk_exists_quirk
[thirdparty/u-boot.git] / include / ufs.h
CommitLineData
7feafb0a
FA
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 */
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