xref: /kernel/linux/linux-5.10/drivers/scsi/ufs/ufs_bsg.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/scsi/ufs/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2018 Western Digital Corporation
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci#ifndef UFS_BSG_H
68c2ecf20Sopenharmony_ci#define UFS_BSG_H
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/bsg-lib.h>
98c2ecf20Sopenharmony_ci#include <scsi/scsi.h>
108c2ecf20Sopenharmony_ci#include <scsi/scsi_host.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include "ufshcd.h"
138c2ecf20Sopenharmony_ci#include "ufs.h"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifdef CONFIG_SCSI_UFS_BSG
168c2ecf20Sopenharmony_civoid ufs_bsg_remove(struct ufs_hba *hba);
178c2ecf20Sopenharmony_ciint ufs_bsg_probe(struct ufs_hba *hba);
188c2ecf20Sopenharmony_ci#else
198c2ecf20Sopenharmony_cistatic inline void ufs_bsg_remove(struct ufs_hba *hba) {}
208c2ecf20Sopenharmony_cistatic inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; }
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#endif /* UFS_BSG_H */
24

Indexes created Thu Nov 07 10:32:03 CST 2024