summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/uperfvar.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-01-31 18:35:20 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-01-31 18:35:20 +0000
commitfdfe0ce43b389205edc64d06271f1237762ff08d (patch)
treee7383019c07ed635eac6639961d5cb968f07940f /sys/arch/sparc64/dev/uperfvar.h
parent17057e16455a54e1d0c6cbcad3bd742c5cd38efd (diff)
Move ioctl userland accessible stuff to <dev/sun/uperfio.h>
Diffstat (limited to 'sys/arch/sparc64/dev/uperfvar.h')
-rw-r--r--sys/arch/sparc64/dev/uperfvar.h73
1 files changed, 1 insertions, 72 deletions
diff --git a/sys/arch/sparc64/dev/uperfvar.h b/sys/arch/sparc64/dev/uperfvar.h
index 1ead587a5dc..89d526abc8b 100644
--- a/sys/arch/sparc64/dev/uperfvar.h
+++ b/sys/arch/sparc64/dev/uperfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uperfvar.h,v 1.1 2002/01/30 23:58:02 jason Exp $ */
+/* $OpenBSD: uperfvar.h,v 1.2 2002/01/31 18:35:19 jason Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -31,8 +31,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef _KERNEL
-
struct uperf_softc {
struct device sc_dv;
void *usc_cookie; /* cookie to pass upwards */
@@ -49,72 +47,3 @@ struct uperf_src {
int us_flags; /* counters this source is valid for */
u_int32_t us_val; /* value to put in register */
};
-
-#endif
-
-#define UPERF_CNT0 1
-#define UPERF_CNT1 2
-
-#define UPERFSRC_SYSCK 1 /* system clock count */
-#define UPERFSRC_PRALL 2 /* # of p-requests, all srcs */
-#define UPERFSRC_PRP0 3 /* # of p-requests, processor 0 */
-#define UPERFSRC_PRU2S 4 /* # of p-requests, U2S */
-#define UPERFSRC_UPA128 5 /* # cycles UPA 128bit bus busy */
-#define UPERFSRC_UPA64 6 /* # cycles UPA 64bit bus busy */
-#define UPERFSRC_PIOS 7 /* # cycles stalled during PIO */
-#define UPERFSRC_MEMRI 8 /* # memory requests issued */
-#define UPERFSRC_MCBUSY 9 /* # cycles mem ctrlr busy */
-#define UPERFSRC_PXSH 10 /* # cyc stalled for pending xact scoreboard hit */
-#define UPERFSRC_P0CWMR 11 /* # coherent wr miss req, Proc0 */
-#define UPERFSRC_P1CWMR 12 /* # coherent wr miss req, Proc1 */
-#define UPERFSRC_CIT 13 /* # coherent intervention xacts */
-#define UPERFSRC_U2SDAT 14 /* # data xacts from U2S */
-#define UPERFSRC_CRXI 15 /* # coherent read xacts issued */
-#define UPERFSRC_RDP0 16 /* read requests from Proc0 */
-#define UPERFSRC_P0CRMR 17 /* # coherent rd miss req, Proc0 */
-#define UPERFSRC_P0PIO 18 /* PIO accesses from Proc 0 */
-#define UPERFSRC_MEMRC 19 /* # memory requests completed */
-#define UPERFSRC_P1RR 20 /* Proc 1 read requests */
-#define UPERFSRC_CRMP1 21 /* Proc 1 coherent read misses */
-#define UPERFSRC_PIOP1 22 /* Proc 1 PIO accesses */
-#define UPERFSRC_CWXI 23 /* coherent write xacts issued */
-#define UPERFSRC_RP0 24 /* read requests from Proc 0 */
-#define UPERFSRC_SDVRA 25 /* streaming dvma rds, bus A */
-#define UPERFSRC_SDVWA 26 /* streaming dvma wrs, bus A */
-#define UPERFSRC_CDVRA 27 /* consistent dvma rds, bus A */
-#define UPERFSRC_CDVWA 28 /* consistent dvma wrs, bus A */
-#define UPERFSRC_SBMA 29 /* streaming buffer misses, A */
-#define UPERFSRC_DVA 30 /* cycles A granted to dvma */
-#define UPERFSRC_DVWA 31 /* words xfered on bus A */
-#define UPERFSRC_PIOA 32 /* pio cycles on bus A */
-#define UPERFSRC_SDVRB 33 /* streaming dvma rds, bus A */
-#define UPERFSRC_SDVWB 34 /* streaming dvma wrs, bus A */
-#define UPERFSRC_CDVRB 35 /* consistent dvma rds, bus A */
-#define UPERFSRC_CDVWB 36 /* consistent dvma wrs, bus A */
-#define UPERFSRC_SBMB 37 /* streaming buffer misses, A */
-#define UPERFSRC_DVB 38 /* cycles A granted to dvma */
-#define UPERFSRC_DVWB 39 /* words xfered on bus A */
-#define UPERFSRC_PIOB 40 /* pio cycles on bus A */
-#define UPERFSRC_TLBMISS 41 /* tlb misses */
-#define UPERFSRC_NINTRS 42 /* number of interrupts */
-#define UPERFSRC_INACK 43 /* interrupt nacks on UPA */
-#define UPERFSRC_PIOR 44 /* PIO read xfers */
-#define UPERFSRC_PIOW 45 /* PIO write xfers */
-#define UPERFSRC_MERGE 46 /* merge buffer xacts */
-#define UPERFSRC_TBLA 47 /* dma reties for tblwalk, A */
-#define UPERFSRC_STCA 48 /* dma reties for tblwalk, A */
-#define UPERFSRC_TBLB 49 /* dma reties for tblwalk, B */
-#define UPERFSRC_STCB 50 /* dma reties for tblwalk, B */
-
-struct uperf_io {
- int cnt_flags;
- int cnt_src0;
- int cnt_src1;
- u_int32_t cnt_val0;
- u_int32_t cnt_val1;
-};
-
-#define UPIO_GCNTSRC _IOWR('U', 0, struct uperf_io) /* get cntr src */
-#define UPIO_SCNTSRC _IOWR('U', 1, struct uperf_io) /* set cntr src */
-#define UPIO_CLRCNT _IOWR('U', 2, struct uperf_io) /* clear cntrs */
-#define UPIO_GETCNT _IOWR('U', 3, struct uperf_io) /* get cntrs */