vga.c (9199c09a159c4e3e98c212d4eec1edc5252d9e33) | vga.c (aa3d547d095ff07fdc39ffc5ae4c371844b504ab) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * Copyright (c) 1992-1998 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 130 unchanged lines hidden (view full) --- 139int 140vga_ioctl(struct cdev *dev, vga_softc_t *sc, u_long cmd, caddr_t arg, int flag, 141 struct thread *td) 142{ 143 return genfbioctl(&sc->gensc, sc->adp, cmd, arg, flag, td); 144} 145 146int | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * Copyright (c) 1992-1998 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 130 unchanged lines hidden (view full) --- 139int 140vga_ioctl(struct cdev *dev, vga_softc_t *sc, u_long cmd, caddr_t arg, int flag, 141 struct thread *td) 142{ 143 return genfbioctl(&sc->gensc, sc->adp, cmd, arg, flag, td); 144} 145 146int |
147vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_ooffset_t offset, 148 vm_offset_t *paddr, int prot, vm_memattr_t *memattr) | 147vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_offset_t offset, vm_offset_t *paddr, 148 int prot) |
149{ | 149{ |
150 return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot, memattr); | 150 return genfbmmap(&sc->gensc, sc->adp, offset, paddr, prot); |
151} 152 153#endif /* FB_INSTALL_CDEV */ 154 155/* LOW-LEVEL */ 156 157#include <isa/rtc.h> 158#ifdef __i386__ --- 13 unchanged lines hidden (view full) --- 172 173#ifdef SLOW_VGA 174#undef SLOW_VGA 175#undef VGA_SLOW_IOACCESS 176#define VGA_SLOW_IOACCESS 177#endif 178 179/* architecture dependent option */ | 151} 152 153#endif /* FB_INSTALL_CDEV */ 154 155/* LOW-LEVEL */ 156 157#include <isa/rtc.h> 158#ifdef __i386__ --- 13 unchanged lines hidden (view full) --- 172 173#ifdef SLOW_VGA 174#undef SLOW_VGA 175#undef VGA_SLOW_IOACCESS 176#define VGA_SLOW_IOACCESS 177#endif 178 179/* architecture dependent option */ |
180#if !defined(__i386__) && !defined(__amd64__) | 180#ifndef __i386__ |
181#define VGA_NO_BIOS 1 182#endif 183 184/* this should really be in `rtc.h' */ 185#define RTC_EQUIPMENT 0x14 186 187/* various sizes */ 188#define V_MODE_MAP_SIZE (M_VGA_CG320 + 1) --- 2271 unchanged lines hidden (view full) --- 2460 2461/* 2462 * mmap(): 2463 * Mmap frame buffer. 2464 * 2465 * all adapters 2466 */ 2467static int | 181#define VGA_NO_BIOS 1 182#endif 183 184/* this should really be in `rtc.h' */ 185#define RTC_EQUIPMENT 0x14 186 187/* various sizes */ 188#define V_MODE_MAP_SIZE (M_VGA_CG320 + 1) --- 2271 unchanged lines hidden (view full) --- 2460 2461/* 2462 * mmap(): 2463 * Mmap frame buffer. 2464 * 2465 * all adapters 2466 */ 2467static int |
2468vga_mmap_buf(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, 2469 int prot, vm_memattr_t *memattr) | 2468vga_mmap_buf(video_adapter_t *adp, vm_offset_t offset, vm_paddr_t *paddr, 2469 int prot) |
2470{ 2471 if (adp->va_info.vi_flags & V_INFO_LINEAR) 2472 return -1; 2473 2474#if VGA_DEBUG > 0 2475 printf("vga_mmap_buf(): window:0x%jx, offset:0x%jx\n", 2476 (uintmax_t)adp->va_info.vi_window, (uintmax_t)offset); 2477#endif --- 591 unchanged lines hidden --- | 2470{ 2471 if (adp->va_info.vi_flags & V_INFO_LINEAR) 2472 return -1; 2473 2474#if VGA_DEBUG > 0 2475 printf("vga_mmap_buf(): window:0x%jx, offset:0x%jx\n", 2476 (uintmax_t)adp->va_info.vi_window, (uintmax_t)offset); 2477#endif --- 591 unchanged lines hidden --- |