aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorAleksandr Rybalko <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
committerAleksandr Rybalko <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
commit7a1a32c4ef277b98b9164496091f7d50f203fb81 (patch)
tree8096d9fdebc1dab4523716b5f83ba8d7bb6ff9ec /sys/sys/fbio.h
parentddc31191a463cda5957cb5b2bf606738c074576a (diff)
downloadsrc-7a1a32c4ef277b98b9164496091f7d50f203fb81.tar.gz
src-7a1a32c4ef277b98b9164496091f7d50f203fb81.zip
o Add virtual terminal mmap request handler.
o Forward termianl framebuffer ioctl to fbd. o Forward terminal mmap request to fbd. o Move inclusion of sys/conf.h to vt.h. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=259777
Diffstat (limited to 'sys/sys/fbio.h')
-rw-r--r--sys/sys/fbio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index fe941a2263cb..160eb7a6145b 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -125,6 +125,10 @@ typedef void fb_wr1_t(struct fb_info *sc, uint32_t offset, uint8_t value);
typedef void fb_wr2_t(struct fb_info *sc, uint32_t offset, uint16_t value);
typedef void fb_wr4_t(struct fb_info *sc, uint32_t offset, uint32_t value);
+typedef int fb_ioctl_t(struct cdev *, u_long, caddr_t, int, struct thread *);
+typedef int fb_mmap_t(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
+ int prot, vm_memattr_t *memattr);
+
struct fb_info {
/* Raw copy of fbtype. Do not change. */
int fb_type; /* as defined above */
@@ -137,6 +141,10 @@ struct fb_info {
/* Methods. */
fb_write_t *fb_write; /* if NULL, direct mem write. */
fb_read_t *fb_read; /* if NULL, direct mem read. */
+ fb_ioctl_t *fb_ioctl; /* Can be NULL. */
+ fb_mmap_t *fb_mmap; /* Can be NULL. */
+
+ struct cdev *fb_cdev;
fb_wr1_t *wr1;
fb_wr2_t *wr2;