diff options
| author | James Simmons <jsimmons@maxwell.earthlink.net> | 2002-10-30 20:06:21 -0800 |
|---|---|---|
| committer | James Simmons <jsimmons@maxwell.earthlink.net> | 2002-10-30 20:06:21 -0800 |
| commit | 31d2a7d36d6989c714b792ec00358ada24c039e7 (patch) | |
| tree | 5ac8cd736ad31d977b73e9ca61e168f8c5532f3e /include | |
| parent | d295086c12b6d7b31b3d24773096bbe9d46b86fe (diff) | |
Moved all console configuration out of arch directories into drivers/video/console. Allow resize of a single VC via the tty layer. Nuked GET_FB_IDX.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/console.h | 1 | ||||
| -rw-r--r-- | include/linux/fb.h | 59 | ||||
| -rw-r--r-- | include/linux/vt_kern.h | 8 | ||||
| -rw-r--r-- | include/video/fbcon-hga.h | 32 |
4 files changed, 4 insertions, 96 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index 646e0eaa9fb3..37b441e6dfd8 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -40,6 +40,7 @@ struct consw { int (*con_switch)(struct vc_data *); int (*con_blank)(struct vc_data *, int); int (*con_font_op)(struct vc_data *, struct console_font_op *); + int (*con_resize)(struct vc_data *, unsigned int, unsigned int); int (*con_set_palette)(struct vc_data *, unsigned char *); int (*con_scrolldelta)(struct vc_data *, int); int (*con_set_origin)(struct vc_data *); diff --git a/include/linux/fb.h b/include/linux/fb.h index e7a049eca95d..0b216c7bb1fe 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -331,12 +331,6 @@ struct fb_image { #ifdef __KERNEL__ -#if 1 /* to go away in 2.5.0 */ -extern int GET_FB_IDX(kdev_t rdev); -#else -#define GET_FB_IDX(node) (minor(node)) -#endif - #include <linux/fs.h> #include <linux/poll.h> #include <linux/init.h> @@ -386,8 +380,6 @@ struct fb_ops { unsigned long arg, struct fb_info *info); /* perform fb specific mmap */ int (*fb_mmap)(struct fb_info *info, struct file *file, struct vm_area_struct *vma); - /* switch to/from raster image mode */ - int (*fb_rasterimg)(struct fb_info *info, int start); }; struct fb_info { @@ -481,6 +473,7 @@ extern int fbmon_dpms(const struct fb_info *fb_info); /* drivers/video/fbcmap.c */ extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); +extern void fb_dealloc_cmap(struct fb_cmap *cmap); extern void fb_copy_cmap(struct fb_cmap *from, struct fb_cmap *to, int fsfromto); extern int fb_set_cmap(struct fb_cmap *cmap, int kspc, struct fb_info *fb_info); @@ -541,54 +534,4 @@ extern int __init fb_find_mode(struct fb_var_screeninfo *var, #endif /* __KERNEL__ */ -#if 1 - -#define FBCMD_GET_CURRENTPAR 0xDEAD0005 -#define FBCMD_SET_CURRENTPAR 0xDEAD8005 - -#endif - - -#if 1 /* Preliminary */ - - /* - * Hardware Cursor - */ - -#define FBIOGET_FCURSORINFO 0x4607 -#define FBIOGET_VCURSORINFO 0x4608 -#define FBIOPUT_VCURSORINFO 0x4609 -#define FBIOGET_CURSORSTATE 0x460A -#define FBIOPUT_CURSORSTATE 0x460B - - -struct fb_fix_cursorinfo { - __u16 crsr_width; /* width and height of the cursor in */ - __u16 crsr_height; /* pixels (zero if no cursor) */ - __u16 crsr_xsize; /* cursor size in display pixels */ - __u16 crsr_ysize; - __u16 crsr_color1; /* colormap entry for cursor color1 */ - __u16 crsr_color2; /* colormap entry for cursor color2 */ -}; - -struct fb_var_cursorinfo { - __u16 width; - __u16 height; - __u16 xspot; - __u16 yspot; - __u8 data[1]; /* field with [height][width] */ -}; - -struct fb_cursorstate { - __s16 xoffset; - __s16 yoffset; - __u16 mode; -}; - -#define FB_CURSOR_OFF 0 -#define FB_CURSOR_ON 1 -#define FB_CURSOR_FLASH 2 - -#endif /* Preliminary */ - #endif /* _LINUX_FB_H */ diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 6d0b234f5a61..ec172b0bd5f7 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -9,6 +9,7 @@ #include <linux/config.h> #include <linux/vt.h> #include <linux/kd.h> +#include <linux/console_struct.h> #include <linux/tty.h> /* @@ -37,14 +38,9 @@ extern int kbd_rate(struct kbd_repeat *rep); /* console.c */ -struct console_font_op; - int vc_allocate(unsigned int console); int vc_cons_allocated(unsigned int console); -int vc_resize(unsigned int lines, unsigned int cols, - unsigned int first, unsigned int last); -#define vc_resize_all(l, c) vc_resize(l, c, 0, MAX_NR_CONSOLES-1) -#define vc_resize_con(l, c, x) vc_resize(l, c, x, x) +int vc_resize(int currcons, unsigned int cols, unsigned int lines); void vc_disallocate(unsigned int console); void reset_palette(int currcons); void set_palette(int currcons); diff --git a/include/video/fbcon-hga.h b/include/video/fbcon-hga.h deleted file mode 100644 index 695ab443f2a4..000000000000 --- a/include/video/fbcon-hga.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * FBcon low-level driver for Hercules Graphics Adaptor (hga) - */ - -#ifndef _VIDEO_FBCON_HGA_H -#define _VIDEO_FBCON_HGA_H - -#include <linux/config.h> - -#ifdef MODULE -#if defined(CONFIG_FBCON_HGA) || defined(CONFIG_FBCON_HGA_MODULE) -#define FBCON_HAS_HGA -#endif -#else -#if defined(CONFIG_FBCON_HGA) -#define FBCON_HAS_HGA -#endif -#endif - -extern struct display_switch fbcon_hga; -extern void fbcon_hga_setup(struct display *p); -extern void fbcon_hga_bmove(struct display *p, int sy, int sx, int dy, int dx, - int height, int width); -extern void fbcon_hga_clear(struct vc_data *conp, struct display *p, int sy, - int sx, int height, int width); -extern void fbcon_hga_putc(struct vc_data *conp, struct display *p, int c, - int yy, int xx); -extern void fbcon_hga_putcs(struct vc_data *conp, struct display *p, - const unsigned short *s, int count, int yy, int xx); -extern void fbcon_hga_revc(struct display *p, int xx, int yy); - -#endif /* _VIDEO_FBCON_HGA_H */ |
