OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ppc64/] [vc_ioctl.h] - Diff between revs 1275 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1275 Rev 1765
#ifndef _LINUX_VC_IOCTL_H
#ifndef _LINUX_VC_IOCTL_H
#define _LINUX_VC_IOCTL_H
#define _LINUX_VC_IOCTL_H
 
 
/*
/*
 * This program is free software; you can redistribute it and/or
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 * 2 of the License, or (at your option) any later version.
 */
 */
 
 
struct vc_mode {
struct vc_mode {
        int     height;
        int     height;
        int     width;
        int     width;
        int     depth;
        int     depth;
        int     pitch;
        int     pitch;
        int     mode;
        int     mode;
        char    name[32];
        char    name[32];
        unsigned long fb_address;
        unsigned long fb_address;
        unsigned long cmap_adr_address;
        unsigned long cmap_adr_address;
        unsigned long cmap_data_address;
        unsigned long cmap_data_address;
        unsigned long disp_reg_address;
        unsigned long disp_reg_address;
};
};
 
 
#define VC_GETMODE      0x7667
#define VC_GETMODE      0x7667
#define VC_SETMODE      0x7668
#define VC_SETMODE      0x7668
#define VC_INQMODE      0x7669
#define VC_INQMODE      0x7669
 
 
#define VC_SETCMAP      0x766a
#define VC_SETCMAP      0x766a
#define VC_GETCMAP      0x766b
#define VC_GETCMAP      0x766b
 
 
#define VC_POWERMODE    0x766c
#define VC_POWERMODE    0x766c
 
 
/* Values for the argument to the VC_POWERMODE ioctl */
/* Values for the argument to the VC_POWERMODE ioctl */
#define VC_POWERMODE_INQUIRY    (-1)
#define VC_POWERMODE_INQUIRY    (-1)
#define VESA_NO_BLANKING        0
#define VESA_NO_BLANKING        0
#define VESA_VSYNC_SUSPEND      1
#define VESA_VSYNC_SUSPEND      1
#define VESA_HSYNC_SUSPEND      2
#define VESA_HSYNC_SUSPEND      2
#define VESA_POWERDOWN          3
#define VESA_POWERDOWN          3
 
 
#ifdef __KERNEL__
#ifdef __KERNEL__
extern int console_getmode(struct vc_mode *);
extern int console_getmode(struct vc_mode *);
extern int console_setmode(struct vc_mode *, int);
extern int console_setmode(struct vc_mode *, int);
extern int console_setcmap(int, unsigned char *, unsigned char *,
extern int console_setcmap(int, unsigned char *, unsigned char *,
                           unsigned char *);
                           unsigned char *);
extern int console_powermode(int);
extern int console_powermode(int);
extern struct vc_mode display_info;
extern struct vc_mode display_info;
extern struct fb_info *console_fb_info;
extern struct fb_info *console_fb_info;
#endif
#endif
 
 
#endif /* _LINUX_VC_IOCTL_H */
#endif /* _LINUX_VC_IOCTL_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.