vbox_drv.c revision 7d11300eeeab839003728db4f07924786ea4f848
03831d35f7499c87d51205817c93e9a8d42c4baestevel/** @file $Id$
03831d35f7499c87d51205817c93e9a8d42c4baestevel * VirtualBox Additions Linux kernel video driver
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright (C) 2013 Oracle Corporation
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This file is part of VirtualBox Open Source Edition (OSE), as
03831d35f7499c87d51205817c93e9a8d42c4baestevel * available from http://www.virtualbox.org. This file is free software;
03831d35f7499c87d51205817c93e9a8d42c4baestevel * you can redistribute it and/or modify it under the terms of the GNU
03831d35f7499c87d51205817c93e9a8d42c4baestevel * General Public License (GPL) as published by the Free Software
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Foundation, in version 2 as it comes in the "COPYING" file of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * --------------------------------------------------------------------
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This code is based on
03831d35f7499c87d51205817c93e9a8d42c4baestevel * with the following copyright and permission notice:
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright 2012 Red Hat Inc.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Permission is hereby granted, free of charge, to any person obtaining a
03831d35f7499c87d51205817c93e9a8d42c4baestevel * copy of this software and associated documentation files (the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * "Software"), to deal in the Software without restriction, including
03831d35f7499c87d51205817c93e9a8d42c4baestevel * without limitation the rights to use, copy, modify, merge, publish,
03831d35f7499c87d51205817c93e9a8d42c4baestevel * distribute, sub license, and/or sell copies of the Software, and to
03831d35f7499c87d51205817c93e9a8d42c4baestevel * permit persons to whom the Software is furnished to do so, subject to
03831d35f7499c87d51205817c93e9a8d42c4baestevel * the following conditions:
#include "vbox_drv.h"
#ifdef CONFIG_COMPAT
.dev_priv_size = 0,
#ifdef CONFIG_VGA_CONSOLE
return -EINVAL;
if (vbox_modeset == 0)
return -EINVAL;