Path: blob/master/drivers/gpu/drm/nouveau/nouveau_fbcon.h
15112 views
/*1* Copyright (C) 2008 Maarten Maathuis.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sublicense, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial14* portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,17* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.19* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE20* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION21* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24*/2526#ifndef __NOUVEAU_FBCON_H__27#define __NOUVEAU_FBCON_H__2829#include "drm_fb_helper.h"3031#include "nouveau_fb.h"32struct nouveau_fbdev {33struct drm_fb_helper helper;34struct nouveau_framebuffer nouveau_fb;35struct list_head fbdev_list;36struct drm_device *dev;37unsigned int saved_flags;38};3940void nouveau_fbcon_restore(void);4142int nv04_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);43int nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);44int nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);45int nv04_fbcon_accel_init(struct fb_info *info);4647int nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);48int nv50_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);49int nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);50int nv50_fbcon_accel_init(struct fb_info *info);5152int nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);53int nvc0_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region);54int nvc0_fbcon_imageblit(struct fb_info *info, const struct fb_image *image);55int nvc0_fbcon_accel_init(struct fb_info *info);5657void nouveau_fbcon_gpu_lockup(struct fb_info *info);5859int nouveau_fbcon_init(struct drm_device *dev);60void nouveau_fbcon_fini(struct drm_device *dev);61void nouveau_fbcon_set_suspend(struct drm_device *dev, int state);62void nouveau_fbcon_zfill_all(struct drm_device *dev);63void nouveau_fbcon_save_disable_accel(struct drm_device *dev);64void nouveau_fbcon_restore_accel(struct drm_device *dev);6566void nouveau_fbcon_output_poll_changed(struct drm_device *dev);67#endif /* __NV50_FBCON_H__ */68697071