xref: /illumos-gate/usr/src/uts/sun4/io/px/px_space.h (revision 5422785d352a2bb398daceab3d1898a8aa64d006)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_PX_SPACE_H
27 #define	_SYS_PX_SPACE_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 #define	PX_SPURINTR_MSG_DEFAULT -1ull
34 
35 extern char px_panic_hb_msg[];
36 extern char px_panic_rc_msg[];
37 extern char px_panic_rp_msg[];
38 extern char px_panic_fab_msg[];
39 
40 extern uint_t px_max_errorq_size;
41 extern ushort_t px_command_default;
42 extern uint_t px_set_latency_timer_register;
43 extern uint64_t px_perr_fatal;
44 extern uint64_t px_serr_fatal;
45 extern hrtime_t px_intrpend_timeout;
46 extern uint_t px_unclaimed_intr_max;
47 extern uint_t px_unclaimed_intr_block;
48 extern uint32_t px_spurintr_duration;
49 extern uint64_t px_spurintr_msgs;
50 extern uint_t px_stream_buf_enable;
51 extern uint_t px_stream_buf_exists;
52 extern uint_t px_use_contexts;
53 extern uint_t px_ctx_no_active_flush;
54 extern uint_t px_context_minpages;
55 
56 extern uint_t px_mmu_error_intr_enable;
57 extern uint_t px_rerun_disable;
58 
59 extern uint_t px_error_intr_enable;
60 extern uint_t px_dwsync_disable;
61 extern uint_t px_intsync_disable;
62 
63 extern uint_t px_intr_retry_intv;
64 extern uint8_t px_latency_timer;
65 extern uint_t px_panic_on_fatal_errors;
66 extern uint_t px_thermal_intr_fatal;
67 extern uint_t px_buserr_interrupt;
68 
69 extern uint64_t px_errtrig_pa;
70 
71 extern uint_t px_check_all_handlers;
72 extern uint_t px_lock_tlb;
73 
74 extern uint64_t px_dvma_debug_on;
75 extern uint64_t px_dvma_debug_off;
76 extern uint32_t px_dvma_debug_rec;
77 extern uint_t px_dvma_page_cache_entries;
78 extern uint_t px_dvma_page_cache_clustsz;
79 extern int px_dvma_sync_before_unmap;
80 #ifdef	PX_DMA_PROF
81 extern uint_t px_dvmaft_npages;
82 extern uint_t px_dvmaft_limit;
83 extern uint_t px_dvmaft_free;
84 extern uint_t px_dvmaft_success;
85 extern uint_t px_dvmaft_exhaust;
86 extern uint_t px_dvma_vmem_alloc;
87 extern uint_t px_dvma_vmem_xalloc;
88 extern uint_t px_dvma_vmem_free;
89 extern uint_t px_dvma_vmem_xfree;
90 #endif	/* PX_DMA_PROF */
91 extern uint_t px_disable_fdvma;
92 
93 extern uint_t px_iommu_ctx_lock_failure;
94 extern uintptr_t px_kmem_clid;
95 
96 extern uint_t px_max_msiq_msgs;
97 extern uint_t px_min_msiq_msgs;
98 
99 /* timeout length in micro seconds */
100 #define	PX_MSEC_TO_USEC	1000
101 #define	PX_PME_TO_ACK_TIMEOUT	(1000 * PX_MSEC_TO_USEC)
102 #define	PX_LUP_POLL_INTERVAL	(10 * PX_MSEC_TO_USEC)
103 #define	PX_LUP_POLL_TO		(10 * PX_LUP_POLL_INTERVAL)
104 
105 #define	PX_PWR_PIL		1
106 #define	PX_MAX_L1_TRIES		5
107 
108 extern uint64_t px_pme_to_ack_timeout;
109 extern uint64_t px_lup_poll_to;
110 extern uint64_t px_lup_poll_interval;
111 extern uint32_t	px_pwr_pil;
112 extern uint32_t px_max_l1_tries;
113 
114 /* Print and Log tunables */
115 extern uint32_t px_log;
116 extern uint32_t px_die;
117 
118 #ifdef	__cplusplus
119 }
120 #endif
121 
122 #endif	/* _SYS_PX_SPACE_H */
123