aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/snoop.h
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1995-02-25 20:09:44 +0000
committerPaul Traina <pst@FreeBSD.org>1995-02-25 20:09:44 +0000
commit77f77631e75f6858d00b61473e49b7c8906c5aa8 (patch)
tree1f0482b969de4dd457ac5b450c026dcaab6317e2 /sys/sys/snoop.h
parent686c46d225921363fb8749fd74457ecbf8a9e987 (diff)
downloadsrc-77f77631e75f6858d00b61473e49b7c8906c5aa8.tar.gz
src-77f77631e75f6858d00b61473e49b7c8906c5aa8.zip
(a) remove the pointer to each driver's tty structure array from cdevsw
(b) add a function callback vector to tty drivers that will return a pointer to a valid tty structure based upon a dev_t (c) make syscons structures the same size whether or not APM is enabled so utilities don't crash if NAPM changes (and make the damn kernel compile!) (d) rewrite /dev/snp ioctl interface so that it is device driver and i386 independant
Notes
Notes: svn path=/head/; revision=6712
Diffstat (limited to 'sys/sys/snoop.h')
-rw-r--r--sys/sys/snoop.h29
1 files changed, 6 insertions, 23 deletions
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index 3790b0006a67..6da28a84b319 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -33,11 +33,11 @@
*/
struct snoop {
- int snp_unit; /* Pty unit number to snoop on */
- int snp_type; /* Type same as st_type later */
- u_long snp_len,snp_base; /* Buffer data len and base */
+ dev_t snp_target; /* major/minor number of device*/
+ u_long snp_len; /* buffer data length */
+ u_long snp_base; /* buffer data base */
u_long snp_blen; /* Overall buffer len */
- char *snp_buf; /* Data buffer */
+ caddr_t snp_buf; /* Data buffer */
int snp_flags; /* Flags place */
#define SNOOP_NBIO 0x0001
#define SNOOP_ASYNC 0x0002
@@ -48,22 +48,6 @@ struct snoop {
struct selinfo snp_sel; /* Selection info */
};
-
-
-/*
- * This is structure to be passed
- * to ioctl() so we can define different
- * types of tty's..
- */
-struct snptty {
- int st_unit;
- int st_type;
-#define ST_PTY 0 /* Regular Pty */
-#define ST_VTY 1 /* Vty for SysCons.. */
-#define ST_SIO 2 /* Serial lines */
-#define ST_MAXTYPE 2
-};
-
/*
* Theese are snoop io controls
* SNPSTTY accepts 'struct snptty' as input.
@@ -71,8 +55,8 @@ struct snptty {
* detached from it's current tty.
*/
-#define SNPSTTY _IOW('T', 90, struct snptty)
-#define SNPGTTY _IOR('T', 89, struct snptty)
+#define SNPSTTY _IOW('T', 90, dev_t)
+#define SNPGTTY _IOR('T', 89, dev_t)
/*
* Theese values would be returned by FIONREAD ioctl
@@ -84,4 +68,3 @@ struct snptty {
#define SNP_DETACH -3
#endif
-