xref: /titanic_52/usr/src/uts/sun4/io/px/px_space.h (revision 18191143d43f37fc3306fad51f4c96c9c2937835)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
525cf1a30Sjl139090  * Common Development and Distribution License (the "License").
625cf1a30Sjl139090  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
22*18191143SAlan Adamson, SD OSSD  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_SYS_PX_SPACE_H
277c478bd9Sstevel@tonic-gate #define	_SYS_PX_SPACE_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
307c478bd9Sstevel@tonic-gate extern "C" {
317c478bd9Sstevel@tonic-gate #endif
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate #define	PX_SPURINTR_MSG_DEFAULT -1ull
347c478bd9Sstevel@tonic-gate 
35bf8fc234Set142600 extern char px_panic_hb_msg[];
36bf8fc234Set142600 extern char px_panic_rc_msg[];
37bf8fc234Set142600 extern char px_panic_rp_msg[];
38bf8fc234Set142600 extern char px_panic_fab_msg[];
39bf8fc234Set142600 
40bf8fc234Set142600 extern uint_t px_max_errorq_size;
417c478bd9Sstevel@tonic-gate extern ushort_t px_command_default;
427c478bd9Sstevel@tonic-gate extern uint_t px_set_latency_timer_register;
437c478bd9Sstevel@tonic-gate extern uint64_t px_perr_fatal;
447c478bd9Sstevel@tonic-gate extern uint64_t px_serr_fatal;
457c478bd9Sstevel@tonic-gate extern hrtime_t px_intrpend_timeout;
467c478bd9Sstevel@tonic-gate extern uint_t px_unclaimed_intr_max;
477c478bd9Sstevel@tonic-gate extern uint_t px_unclaimed_intr_block;
487c478bd9Sstevel@tonic-gate extern uint32_t px_spurintr_duration;
497c478bd9Sstevel@tonic-gate extern uint64_t px_spurintr_msgs;
507c478bd9Sstevel@tonic-gate extern uint_t px_stream_buf_enable;
517c478bd9Sstevel@tonic-gate extern uint_t px_stream_buf_exists;
527c478bd9Sstevel@tonic-gate extern uint_t px_use_contexts;
537c478bd9Sstevel@tonic-gate extern uint_t px_ctx_no_active_flush;
547c478bd9Sstevel@tonic-gate extern uint_t px_context_minpages;
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate extern uint_t px_mmu_error_intr_enable;
577c478bd9Sstevel@tonic-gate extern uint_t px_rerun_disable;
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate extern uint_t px_error_intr_enable;
607c478bd9Sstevel@tonic-gate extern uint_t px_dwsync_disable;
617c478bd9Sstevel@tonic-gate extern uint_t px_intsync_disable;
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate extern uint_t px_intr_retry_intv;
647c478bd9Sstevel@tonic-gate extern uint8_t px_latency_timer;
657c478bd9Sstevel@tonic-gate extern uint_t px_panic_on_fatal_errors;
667c478bd9Sstevel@tonic-gate extern uint_t px_thermal_intr_fatal;
677c478bd9Sstevel@tonic-gate extern uint_t px_buserr_interrupt;
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate extern uint64_t px_errtrig_pa;
707c478bd9Sstevel@tonic-gate 
717c478bd9Sstevel@tonic-gate extern uint_t px_check_all_handlers;
727c478bd9Sstevel@tonic-gate extern uint_t px_lock_tlb;
737c478bd9Sstevel@tonic-gate 
747c478bd9Sstevel@tonic-gate extern uint64_t px_dvma_debug_on;
757c478bd9Sstevel@tonic-gate extern uint64_t px_dvma_debug_off;
767c478bd9Sstevel@tonic-gate extern uint32_t px_dvma_debug_rec;
777c478bd9Sstevel@tonic-gate extern uint_t px_dvma_page_cache_entries;
787c478bd9Sstevel@tonic-gate extern uint_t px_dvma_page_cache_clustsz;
797c478bd9Sstevel@tonic-gate extern int px_dvma_sync_before_unmap;
807c478bd9Sstevel@tonic-gate #ifdef	PX_DMA_PROF
817c478bd9Sstevel@tonic-gate extern uint_t px_dvmaft_npages;
827c478bd9Sstevel@tonic-gate extern uint_t px_dvmaft_limit;
837c478bd9Sstevel@tonic-gate extern uint_t px_dvmaft_free;
847c478bd9Sstevel@tonic-gate extern uint_t px_dvmaft_success;
857c478bd9Sstevel@tonic-gate extern uint_t px_dvmaft_exhaust;
867c478bd9Sstevel@tonic-gate extern uint_t px_dvma_vmem_alloc;
877c478bd9Sstevel@tonic-gate extern uint_t px_dvma_vmem_xalloc;
887c478bd9Sstevel@tonic-gate extern uint_t px_dvma_vmem_free;
897c478bd9Sstevel@tonic-gate extern uint_t px_dvma_vmem_xfree;
907c478bd9Sstevel@tonic-gate #endif	/* PX_DMA_PROF */
917c478bd9Sstevel@tonic-gate extern uint_t px_disable_fdvma;
927c478bd9Sstevel@tonic-gate 
937c478bd9Sstevel@tonic-gate extern uint_t px_iommu_ctx_lock_failure;
947c478bd9Sstevel@tonic-gate extern uintptr_t px_kmem_clid;
957c478bd9Sstevel@tonic-gate 
96*18191143SAlan Adamson, SD OSSD extern uint_t px_max_msiq_msgs;
97*18191143SAlan Adamson, SD OSSD extern uint_t px_min_msiq_msgs;
98*18191143SAlan Adamson, SD OSSD 
993ee8f295Smg140465 /* timeout length in micro seconds */
100f9721e07Sjchu #define	PX_MSEC_TO_USEC	1000
101f9721e07Sjchu #define	PX_PME_TO_ACK_TIMEOUT	(1000 * PX_MSEC_TO_USEC)
102f9721e07Sjchu #define	PX_LUP_POLL_INTERVAL	(10 * PX_MSEC_TO_USEC)
103f9721e07Sjchu #define	PX_LUP_POLL_TO		(10 * PX_LUP_POLL_INTERVAL)
1043ee8f295Smg140465 
1057c478bd9Sstevel@tonic-gate #define	PX_PWR_PIL		1
1061a887b2eSjchu #define	PX_MAX_L1_TRIES		5
1077c478bd9Sstevel@tonic-gate 
1087c478bd9Sstevel@tonic-gate extern uint64_t px_pme_to_ack_timeout;
109f9721e07Sjchu extern uint64_t px_lup_poll_to;
110f9721e07Sjchu extern uint64_t px_lup_poll_interval;
1117c478bd9Sstevel@tonic-gate extern uint32_t	px_pwr_pil;
1121a887b2eSjchu extern uint32_t px_max_l1_tries;
1137c478bd9Sstevel@tonic-gate 
114bf8fc234Set142600 /* Print and Log tunables */
115bf8fc234Set142600 extern uint32_t px_log;
116bf8fc234Set142600 extern uint32_t px_die;
117bf8fc234Set142600 
1187c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
1197c478bd9Sstevel@tonic-gate }
1207c478bd9Sstevel@tonic-gate #endif
1217c478bd9Sstevel@tonic-gate 
1227c478bd9Sstevel@tonic-gate #endif	/* _SYS_PX_SPACE_H */
123