diff options
author | yokota <yokota@FreeBSD.org> | 1998-10-01 11:39:18 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1998-10-01 11:39:18 +0000 |
commit | 3d34bf047babbcd0a199d4a7bc2464a62066bc78 (patch) | |
tree | f7fcb33db5f1af78f7a852d912e39a8b0ff77fd5 /sys/dev/syscons/scvesactl.c | |
parent | 5b11e527361dc6279982c78cd72f2438aad9696e (diff) | |
download | FreeBSD-src-3d34bf047babbcd0a199d4a7bc2464a62066bc78.zip FreeBSD-src-3d34bf047babbcd0a199d4a7bc2464a62066bc78.tar.gz |
Yet another round of fixes for the VESA support code.
- Express various sizes in bytes, rather than Kbytes, in the video
mode and adapter information structures.
- Fill 0 in the linear buffer size field if the linear frame buffer
is not available.
- Remove SW_VESA_USER ioctl. It is still experimetal and was not meant
to be released.
- Fix missing cast operator.
- Correctly handle pointers returned by the VESA BIOS. The pointers
may point to the area either in the BIOS ROM or in the buffer supplied
by the caller.
- Set the destructive cursor at the right moment.
Diffstat (limited to 'sys/dev/syscons/scvesactl.c')
-rw-r--r-- | sys/dev/syscons/scvesactl.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/syscons/scvesactl.c b/sys/dev/syscons/scvesactl.c index 47b1862..aabfe19 100644 --- a/sys/dev/syscons/scvesactl.c +++ b/sys/dev/syscons/scvesactl.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: scvesactl.c,v 1.4 1998/09/26 03:34:10 yokota Exp $ + * $Id: scvesactl.c,v 1.5 1998/09/26 03:38:40 yokota Exp $ */ #include "sc.h" @@ -64,15 +64,6 @@ vesa_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) scp = sc_get_scr_stat(tp->t_dev); switch (cmd) { - case SW_VESA_USER: - - mode = (int)data; - if ((*biosvidsw.get_info)(scp->adp, mode, &info)) - return ENODEV; - if (info.vi_flags & V_INFO_GRAPHICS) - goto vesa_graphics; - else - goto vesa_text; /* generic text modes */ case SW_TEXT_132x25: case SW_TEXT_132x30: |