mdev_private.h (4f2c0a4acffbec01079c28f839422e64ddeff004) | mdev_private.h (77943f4d2de0c5fa284013b97967e6c271c04310) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Mediated device internal definitions 4 * 5 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 6 * Author: Neo Jia <cjia@nvidia.com> 7 * Kirti Wankhede <kwankhede@nvidia.com> 8 */ 9 10#ifndef MDEV_PRIVATE_H 11#define MDEV_PRIVATE_H 12 13int mdev_bus_register(void); 14void mdev_bus_unregister(void); 15 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Mediated device internal definitions 4 * 5 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 6 * Author: Neo Jia <cjia@nvidia.com> 7 * Kirti Wankhede <kwankhede@nvidia.com> 8 */ 9 10#ifndef MDEV_PRIVATE_H 11#define MDEV_PRIVATE_H 12 13int mdev_bus_register(void); 14void mdev_bus_unregister(void); 15 |
16extern struct bus_type mdev_bus_type; | 16extern const struct bus_type mdev_bus_type; |
17extern const struct attribute_group *mdev_device_groups[]; 18 19#define to_mdev_type_attr(_attr) \ 20 container_of(_attr, struct mdev_type_attribute, attr) 21#define to_mdev_type(_kobj) \ 22 container_of(_kobj, struct mdev_type, kobj) 23 24int parent_create_sysfs_files(struct mdev_parent *parent); 25void parent_remove_sysfs_files(struct mdev_parent *parent); 26 27int mdev_create_sysfs_files(struct mdev_device *mdev); 28void mdev_remove_sysfs_files(struct mdev_device *mdev); 29 30int mdev_device_create(struct mdev_type *kobj, const guid_t *uuid); 31int mdev_device_remove(struct mdev_device *dev); 32 33#endif /* MDEV_PRIVATE_H */ | 17extern const struct attribute_group *mdev_device_groups[]; 18 19#define to_mdev_type_attr(_attr) \ 20 container_of(_attr, struct mdev_type_attribute, attr) 21#define to_mdev_type(_kobj) \ 22 container_of(_kobj, struct mdev_type, kobj) 23 24int parent_create_sysfs_files(struct mdev_parent *parent); 25void parent_remove_sysfs_files(struct mdev_parent *parent); 26 27int mdev_create_sysfs_files(struct mdev_device *mdev); 28void mdev_remove_sysfs_files(struct mdev_device *mdev); 29 30int mdev_device_create(struct mdev_type *kobj, const guid_t *uuid); 31int mdev_device_remove(struct mdev_device *dev); 32 33#endif /* MDEV_PRIVATE_H */ |