From: Aivils S. <ai...@us...> - 2004-02-09 07:36:39
|
Update of /cvsroot/linuxconsole/ruby/ruby-2.6/include/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv413/ruby-2.6/include/linux Modified Files: vt_kern.h Log Message: add initial read-only sysfs support Index: vt_kern.h =================================================================== RCS file: /cvsroot/linuxconsole/ruby/ruby-2.6/include/linux/vt_kern.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- vt_kern.h 9 Feb 2004 07:31:07 -0000 1.6 +++ vt_kern.h 9 Feb 2004 07:33:28 -0000 1.7 @@ -9,6 +9,7 @@ #include <linux/pm.h> #include <linux/vt.h> #include <linux/kbd_kern.h> +#include <linux/device.h> #define MIN_NR_CONSOLES 1 /* must be at least 1 */ #define MAX_NR_CONSOLES 63 /* serial lines start at 64 */ @@ -245,11 +246,14 @@ unsigned char vt_ledstate; unsigned char vt_ledioctl; char *display_desc; + struct device dev; /* Generic device interface */ }; extern struct list_head vt_list; extern struct vt_struct *admin_vt; +#define to_vt_struct(n) container_of(n, struct vt_struct, dev) + /* universal VT emulation functions */ void vte_ris(struct vc_data *vc, int do_clear); inline void vte_cr(struct vc_data *vc); @@ -323,4 +327,7 @@ void complete_change_console(struct vc_data *new_vc, struct vc_data *old_vc); void change_console(struct vc_data *new_vc, struct vc_data *old_vc); +/* vt_sysfs.c*/ +int __init vt_create_sysfs_dev_files (struct vt_struct *vt); +void __init vt_sysfs_init(void); #endif /* _VT_KERN_H */ |