summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1998-10-10 06:40:21 +0000
committerdownsj <downsj@openbsd.org>1998-10-10 06:40:21 +0000
commita565c73bc1e8c356f02d8b79a0431c4f4856775b (patch)
tree7072eafca9415dfb840412e389638617125c1c58
parentSync with FreeBSD; add support for bt878/879, more cards, more tuners... (diff)
downloadwireguard-openbsd-a565c73bc1e8c356f02d8b79a0431c4f4856775b.tar.xz
wireguard-openbsd-a565c73bc1e8c356f02d8b79a0431c4f4856775b.zip
Sync with FreeBSD; add ioctls.
-rw-r--r--sys/arch/i386/include/ioctl_bt848.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/sys/arch/i386/include/ioctl_bt848.h b/sys/arch/i386/include/ioctl_bt848.h
index 91a0d9b7976..6c385a1f909 100644
--- a/sys/arch/i386/include/ioctl_bt848.h
+++ b/sys/arch/i386/include/ioctl_bt848.h
@@ -1,5 +1,8 @@
+/* $OpenBSD: ioctl_bt848.h,v 1.2 1998/10/10 06:40:21 downsj Exp $ */
/*
* extensions to ioctl_meteor.h for the bt848 cards
+ *
+ * $FreeBSD: ioctl_bt848.h,v 1.19 1998/09/30 21:06:55 sos Exp $
*/
/*
@@ -11,8 +14,9 @@
#define CHNLSET_WEUROPE 4
#define CHNLSET_JPNBCST 5
#define CHNLSET_JPNCABLE 6
+#define CHNLSET_XUSSR 7
#define CHNLSET_MIN CHNLSET_NABCST
-#define CHNLSET_MAX CHNLSET_JPNCABLE
+#define CHNLSET_MAX CHNLSET_XUSSR
/*
@@ -193,6 +197,26 @@ struct _bktr_clip {
#define BT848SFMT _IOW('x', 67, unsigned long )
#define BT848GFMT _IOR('x', 67, unsigned long )
+/* set clear-buffer-on-start */
+#define BT848SCBUF _IOW('x', 68, int)
+#define BT848GCBUF _IOR('x', 68, int)
+
+/* set capture area */
+/* The capture area is the area of the video image which is grabbed */
+/* Usually the capture area is 640x480 (768x576 PAL) pixels */
+/* This area is then scaled to the dimensions the user requires */
+/* using the METEORGEO ioctl */
+/* However, the capture area could be 400x300 pixels from the top right */
+/* corner of the video image */
+struct bktr_capture_area {
+ int x_offset;
+ int y_offset;
+ int x_size;
+ int y_size;
+};
+#define BT848_SCAPAREA _IOW('x', 69, struct bktr_capture_area)
+#define BT848_GCAPAREA _IOR('x', 69, struct bktr_capture_area)
+
/* Read/Write the BT848's I2C bus directly
* b7-b0: data (read/write)
* b15-b8: internal peripheral register (write)