fbreg.h (174985) | fbreg.h (201223) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/fb/fbreg.h 174985 2007-12-29 23:26:59Z wkoszek $ | 26 * $FreeBSD: head/sys/dev/fb/fbreg.h 201223 2009-12-29 21:51:28Z rnoland $ |
27 */ 28 29#ifndef _DEV_FB_FBREG_H_ 30#define _DEV_FB_FBREG_H_ 31 32#ifdef _KERNEL 33 34#define V_MAX_ADAPTERS 8 /* XXX */ --- 91 unchanged lines hidden (view full) --- 126 int height, int celsize, int blink); 127typedef int vi_blank_display_t(video_adapter_t *adp, int mode); 128/* defined in sys/fbio.h 129#define V_DISPLAY_ON 0 130#define V_DISPLAY_BLANK 1 131#define V_DISPLAY_STAND_BY 2 132#define V_DISPLAY_SUSPEND 3 133*/ | 27 */ 28 29#ifndef _DEV_FB_FBREG_H_ 30#define _DEV_FB_FBREG_H_ 31 32#ifdef _KERNEL 33 34#define V_MAX_ADAPTERS 8 /* XXX */ --- 91 unchanged lines hidden (view full) --- 126 int height, int celsize, int blink); 127typedef int vi_blank_display_t(video_adapter_t *adp, int mode); 128/* defined in sys/fbio.h 129#define V_DISPLAY_ON 0 130#define V_DISPLAY_BLANK 1 131#define V_DISPLAY_STAND_BY 2 132#define V_DISPLAY_SUSPEND 3 133*/ |
134typedef int vi_mmap_t(video_adapter_t *adp, vm_offset_t offset, 135 vm_paddr_t *paddr, int prot); | 134typedef int vi_mmap_t(video_adapter_t *adp, vm_ooffset_t offset, 135 vm_paddr_t *paddr, int prot, vm_memattr_t *memattr); |
136typedef int vi_ioctl_t(video_adapter_t *adp, u_long cmd, caddr_t data); 137typedef int vi_clear_t(video_adapter_t *adp); 138typedef int vi_fill_rect_t(video_adapter_t *adp, int val, int x, int y, 139 int cx, int cy); 140typedef int vi_bitblt_t(video_adapter_t *adp, ...); 141typedef int vi_diag_t(video_adapter_t *adp, int level); 142typedef int vi_save_cursor_palette_t(video_adapter_t *adp, u_char *palette); 143typedef int vi_load_cursor_palette_t(video_adapter_t *adp, u_char *palette); --- 79 unchanged lines hidden (view full) --- 223 (*vidsw[(adp)->va_index]->read_hw_cursor)((adp), (col), (row)) 224#define vidd_set_hw_cursor(adp, col, row) \ 225 (*vidsw[(adp)->va_index]->set_hw_cursor)((adp), (col), (row)) 226#define vidd_set_hw_cursor_shape(adp, base, height, celsize, blink) \ 227 (*vidsw[(adp)->va_index]->set_hw_cursor_shape)((adp), (base), \ 228 (height), (celsize), (blink)) 229#define vidd_blank_display(adp, mode) \ 230 (*vidsw[(adp)->va_index]->blank_display)((adp), (mode)) | 136typedef int vi_ioctl_t(video_adapter_t *adp, u_long cmd, caddr_t data); 137typedef int vi_clear_t(video_adapter_t *adp); 138typedef int vi_fill_rect_t(video_adapter_t *adp, int val, int x, int y, 139 int cx, int cy); 140typedef int vi_bitblt_t(video_adapter_t *adp, ...); 141typedef int vi_diag_t(video_adapter_t *adp, int level); 142typedef int vi_save_cursor_palette_t(video_adapter_t *adp, u_char *palette); 143typedef int vi_load_cursor_palette_t(video_adapter_t *adp, u_char *palette); --- 79 unchanged lines hidden (view full) --- 223 (*vidsw[(adp)->va_index]->read_hw_cursor)((adp), (col), (row)) 224#define vidd_set_hw_cursor(adp, col, row) \ 225 (*vidsw[(adp)->va_index]->set_hw_cursor)((adp), (col), (row)) 226#define vidd_set_hw_cursor_shape(adp, base, height, celsize, blink) \ 227 (*vidsw[(adp)->va_index]->set_hw_cursor_shape)((adp), (base), \ 228 (height), (celsize), (blink)) 229#define vidd_blank_display(adp, mode) \ 230 (*vidsw[(adp)->va_index]->blank_display)((adp), (mode)) |
231#define vidd_mmap(adp, offset, paddr, prot) \ 232 (*vidsw[(adp)->va_index]->mmap)((adp), (offset), (paddr), (prot)) | 231#define vidd_mmap(adp, offset, paddr, prot, memattr) \ 232 (*vidsw[(adp)->va_index]->mmap)((adp), (offset), (paddr), \ 233 (prot), (memattr)) |
233#define vidd_ioctl(adp, cmd, data) \ 234 (*vidsw[(adp)->va_index]->ioctl)((adp), (cmd), (data)) 235#define vidd_clear(adp) \ 236 (*vidsw[(adp)->va_index]->clear)((adp)) 237#define vidd_fill_rect(adp, val, x, y, cx, cy) \ 238 (*vidsw[(adp)->va_index]->fill_rect)((adp), (val), (x), (y), \ 239 (cx), (cy)) 240#define vidd_bitblt(adp, ...) \ --- 71 unchanged lines hidden (view full) --- 312 int flag, int mode, struct thread *td); 313int genfbread(genfb_softc_t *sc, video_adapter_t *adp, 314 struct uio *uio, int flag); 315int genfbwrite(genfb_softc_t *sc, video_adapter_t *adp, 316 struct uio *uio, int flag); 317int genfbioctl(genfb_softc_t *sc, video_adapter_t *adp, 318 u_long cmd, caddr_t arg, int flag, struct thread *td); 319int genfbmmap(genfb_softc_t *sc, video_adapter_t *adp, | 234#define vidd_ioctl(adp, cmd, data) \ 235 (*vidsw[(adp)->va_index]->ioctl)((adp), (cmd), (data)) 236#define vidd_clear(adp) \ 237 (*vidsw[(adp)->va_index]->clear)((adp)) 238#define vidd_fill_rect(adp, val, x, y, cx, cy) \ 239 (*vidsw[(adp)->va_index]->fill_rect)((adp), (val), (x), (y), \ 240 (cx), (cy)) 241#define vidd_bitblt(adp, ...) \ --- 71 unchanged lines hidden (view full) --- 313 int flag, int mode, struct thread *td); 314int genfbread(genfb_softc_t *sc, video_adapter_t *adp, 315 struct uio *uio, int flag); 316int genfbwrite(genfb_softc_t *sc, video_adapter_t *adp, 317 struct uio *uio, int flag); 318int genfbioctl(genfb_softc_t *sc, video_adapter_t *adp, 319 u_long cmd, caddr_t arg, int flag, struct thread *td); 320int genfbmmap(genfb_softc_t *sc, video_adapter_t *adp, |
320 vm_offset_t offset, vm_offset_t *paddr, int prot); | 321 vm_ooffset_t offset, vm_offset_t *paddr, 322 int prot, vm_memattr_t *memattr); |
321 322#endif /* FB_INSTALL_CDEV */ 323 324/* generic low-level driver functions */ 325 326void fb_dump_adp_info(char *driver, video_adapter_t *adp, int level); 327void fb_dump_mode_info(char *driver, video_adapter_t *adp, 328 video_info_t *info, int level); 329int fb_type(int adp_type); 330int fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg); 331 332#endif /* _KERNEL */ 333 334#endif /* !_DEV_FB_FBREG_H_ */ | 323 324#endif /* FB_INSTALL_CDEV */ 325 326/* generic low-level driver functions */ 327 328void fb_dump_adp_info(char *driver, video_adapter_t *adp, int level); 329void fb_dump_mode_info(char *driver, video_adapter_t *adp, 330 video_info_t *info, int level); 331int fb_type(int adp_type); 332int fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg); 333 334#endif /* _KERNEL */ 335 336#endif /* !_DEV_FB_FBREG_H_ */ |