fbreg.h (0301e9c83b30376cc159fb07e0a2787a601caaa8) fbreg.h (07159f9c56de91cb7d7bd6b6a795eebfee78133e)
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

--- 67 unchanged lines hidden (view full) ---

76 int height, int celsize, int blink);
77typedef int vi_blank_display_t(video_adapter_t *adp, int mode);
78/* defined in sys/fbio.h
79#define V_DISPLAY_ON 0
80#define V_DISPLAY_BLANK 1
81#define V_DISPLAY_STAND_BY 2
82#define V_DISPLAY_SUSPEND 3
83*/
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

--- 67 unchanged lines hidden (view full) ---

76 int height, int celsize, int blink);
77typedef int vi_blank_display_t(video_adapter_t *adp, int mode);
78/* defined in sys/fbio.h
79#define V_DISPLAY_ON 0
80#define V_DISPLAY_BLANK 1
81#define V_DISPLAY_STAND_BY 2
82#define V_DISPLAY_SUSPEND 3
83*/
84typedef int vi_mmap_t(video_adapter_t *adp, vm_offset_t offset, int prot);
84typedef int vi_mmap_t(video_adapter_t *adp, vm_offset_t offset,
85 vm_offset_t *paddr, int prot);
85typedef int vi_ioctl_t(video_adapter_t *adp, u_long cmd, caddr_t data);
86typedef int vi_clear_t(video_adapter_t *adp);
87typedef int vi_fill_rect_t(video_adapter_t *adp, int val, int x, int y,
88 int cx, int cy);
89typedef int vi_bitblt_t(video_adapter_t *adp, ...);
90typedef int vi_diag_t(video_adapter_t *adp, int level);
91typedef int vi_save_cursor_palette_t(video_adapter_t *adp, u_char *palette);
92typedef int vi_load_cursor_palette_t(video_adapter_t *adp, u_char *palette);

--- 114 unchanged lines hidden (view full) ---

207 int flag, int mode, struct thread *td);
208int genfbread(genfb_softc_t *sc, video_adapter_t *adp,
209 struct uio *uio, int flag);
210int genfbwrite(genfb_softc_t *sc, video_adapter_t *adp,
211 struct uio *uio, int flag);
212int genfbioctl(genfb_softc_t *sc, video_adapter_t *adp,
213 u_long cmd, caddr_t arg, int flag, struct thread *td);
214int genfbmmap(genfb_softc_t *sc, video_adapter_t *adp,
86typedef int vi_ioctl_t(video_adapter_t *adp, u_long cmd, caddr_t data);
87typedef int vi_clear_t(video_adapter_t *adp);
88typedef int vi_fill_rect_t(video_adapter_t *adp, int val, int x, int y,
89 int cx, int cy);
90typedef int vi_bitblt_t(video_adapter_t *adp, ...);
91typedef int vi_diag_t(video_adapter_t *adp, int level);
92typedef int vi_save_cursor_palette_t(video_adapter_t *adp, u_char *palette);
93typedef int vi_load_cursor_palette_t(video_adapter_t *adp, u_char *palette);

--- 114 unchanged lines hidden (view full) ---

208 int flag, int mode, struct thread *td);
209int genfbread(genfb_softc_t *sc, video_adapter_t *adp,
210 struct uio *uio, int flag);
211int genfbwrite(genfb_softc_t *sc, video_adapter_t *adp,
212 struct uio *uio, int flag);
213int genfbioctl(genfb_softc_t *sc, video_adapter_t *adp,
214 u_long cmd, caddr_t arg, int flag, struct thread *td);
215int genfbmmap(genfb_softc_t *sc, video_adapter_t *adp,
215 vm_offset_t offset, int prot);
216 vm_offset_t offset, vm_offset_t *paddr, int prot);
216
217#endif /* FB_INSTALL_CDEV */
218
219/* generic low-level driver functions */
220
221void fb_dump_adp_info(char *driver, video_adapter_t *adp, int level);
222void fb_dump_mode_info(char *driver, video_adapter_t *adp,
223 video_info_t *info, int level);
224int fb_type(int adp_type);
225int fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg);
226
227#endif /* _KERNEL */
228
229#endif /* !_DEV_FB_FBREG_H_ */
217
218#endif /* FB_INSTALL_CDEV */
219
220/* generic low-level driver functions */
221
222void fb_dump_adp_info(char *driver, video_adapter_t *adp, int level);
223void fb_dump_mode_info(char *driver, video_adapter_t *adp,
224 video_info_t *info, int level);
225int fb_type(int adp_type);
226int fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg);
227
228#endif /* _KERNEL */
229
230#endif /* !_DEV_FB_FBREG_H_ */