mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
ec92b59cc0
This patch introduces a sysfs group entry for the UFS attributes. The group adds "attributes" folder under the UFS driver sysfs entry (/sys/bus/platform/drivers/ufshcd/*). The attributes are shown as hexadecimal numbers. The full information about the attributes could be found at UFS specifications 2.1. Signed-off-by: Stanislav Nijnikov <stanislav.nijnikov@wdc.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
18 lines
427 B
C
18 lines
427 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
* Copyright (C) 2018 Western Digital Corporation
|
|
*/
|
|
|
|
#ifndef __UFS_SYSFS_H__
|
|
#define __UFS_SYSFS_H__
|
|
|
|
#include <linux/sysfs.h>
|
|
|
|
#include "ufshcd.h"
|
|
|
|
void ufs_sysfs_add_nodes(struct device *dev);
|
|
void ufs_sysfs_remove_nodes(struct device *dev);
|
|
|
|
extern const struct attribute_group ufs_sysfs_unit_descriptor_group;
|
|
extern const struct attribute_group ufs_sysfs_lun_attributes_group;
|
|
#endif
|