[Intel-gfx] [PATCH] add proc structure definitions to header
Ben Gamari
bgamari at gmail.com
Sun Dec 21 21:21:42 CET 2008
---
include/drm/drmP.h | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 7802c80..efe50b6 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -801,6 +801,25 @@ struct drm_driver {
#define DRM_MINOR_RENDER 3
/**
+ * proc node list. This structure represents a debugfs file to
+ * be created by the drm core
+ */
+struct drm_proc_list {
+ const char *name; /** file name */
+ int (*show)(struct seq_file*, void*); /** show callback*/
+ u32 driver_features; /**< Required driver features for this entry */
+};
+
+/**
+ * proc node structure. This structure represents a proc file.
+ */
+struct drm_proc_node {
+ struct list_head list;
+ struct drm_minor *minor;
+ struct drm_proc_list *proc_ent;
+};
+
+/**
* DRM minor structure. This structure represents a drm minor number.
*/
struct drm_minor {
@@ -809,7 +828,10 @@ struct drm_minor {
dev_t device; /**< Device number for mknod */
struct device kdev; /**< Linux device */
struct drm_device *dev;
- struct proc_dir_entry *dev_root; /**< proc directory entry */
+
+ struct proc_dir_entry *proc_root; /**< proc directory entry */
+ struct drm_proc_node proc_nodes;
+
struct drm_master *master; /* currently active master for this node */
struct list_head master_list;
struct drm_mode_group mode_group;
--
1.6.0.5
More information about the Intel-gfx
mailing list