summaryrefslogtreecommitdiffstats
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorray <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
committerray <ray@FreeBSD.org>2013-12-23 18:09:10 +0000
commit4cd7151fa0d6497a4048c615ac13730233856a4f (patch)
tree8096d9fdebc1dab4523716b5f83ba8d7bb6ff9ec /sys/sys/fbio.h
parent6ed839c35a380f3aefc81cc02007080589f2405d (diff)
downloadFreeBSD-src-4cd7151fa0d6497a4048c615ac13730233856a4f.zip
FreeBSD-src-4cd7151fa0d6497a4048c615ac13730233856a4f.tar.gz
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
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 fe941a2..160eb7a 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;
OpenPOWER on IntegriCloud