Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2010 10:13:57 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211606 - head/sys/cddl/contrib/opensolaris/uts/common/sys
Message-ID:  <201008221013.o7MADvoc098170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Sun Aug 22 10:13:56 2010
New Revision: 211606
URL: http://svn.freebsd.org/changeset/base/211606

Log:
  Add the FreeBSD definition for the fasttrap ioctls.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h

Modified: head/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h	Sun Aug 22 09:06:55 2010	(r211605)
+++ head/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h	Sun Aug 22 10:13:56 2010	(r211606)
@@ -37,9 +37,14 @@
 extern "C" {
 #endif
 
+#if defined(sun)
 #define	FASTTRAPIOC		(('m' << 24) | ('r' << 16) | ('f' << 8))
 #define	FASTTRAPIOC_MAKEPROBE	(FASTTRAPIOC | 1)
 #define	FASTTRAPIOC_GETINSTR	(FASTTRAPIOC | 2)
+#else
+#define	FASTTRAPIOC_MAKEPROBE	_IOW('f', 1, fasttrap_probe_spec_t)
+#define	FASTTRAPIOC_GETINSTR	_IOWR('f', 2, uint8_t)
+#endif
 
 typedef enum fasttrap_probe_type {
 	DTFTP_NONE = 0,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008221013.o7MADvoc098170>