10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 51772Sjl139090 * Common Development and Distribution License (the "License"). 61772Sjl139090 * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 22*10841SAlan.Adamson@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate */ 250Sstevel@tonic-gate 260Sstevel@tonic-gate #ifndef _SYS_PX_SPACE_H 270Sstevel@tonic-gate #define _SYS_PX_SPACE_H 280Sstevel@tonic-gate 290Sstevel@tonic-gate #ifdef __cplusplus 300Sstevel@tonic-gate extern "C" { 310Sstevel@tonic-gate #endif 320Sstevel@tonic-gate 330Sstevel@tonic-gate #define PX_SPURINTR_MSG_DEFAULT -1ull 340Sstevel@tonic-gate 353274Set142600 extern char px_panic_hb_msg[]; 363274Set142600 extern char px_panic_rc_msg[]; 373274Set142600 extern char px_panic_rp_msg[]; 383274Set142600 extern char px_panic_fab_msg[]; 393274Set142600 403274Set142600 extern uint_t px_max_errorq_size; 410Sstevel@tonic-gate extern ushort_t px_command_default; 420Sstevel@tonic-gate extern uint_t px_set_latency_timer_register; 430Sstevel@tonic-gate extern uint64_t px_perr_fatal; 440Sstevel@tonic-gate extern uint64_t px_serr_fatal; 450Sstevel@tonic-gate extern hrtime_t px_intrpend_timeout; 460Sstevel@tonic-gate extern uint_t px_unclaimed_intr_max; 470Sstevel@tonic-gate extern uint_t px_unclaimed_intr_block; 480Sstevel@tonic-gate extern uint32_t px_spurintr_duration; 490Sstevel@tonic-gate extern uint64_t px_spurintr_msgs; 500Sstevel@tonic-gate extern uint_t px_stream_buf_enable; 510Sstevel@tonic-gate extern uint_t px_stream_buf_exists; 520Sstevel@tonic-gate extern uint_t px_use_contexts; 530Sstevel@tonic-gate extern uint_t px_ctx_no_active_flush; 540Sstevel@tonic-gate extern uint_t px_context_minpages; 550Sstevel@tonic-gate 560Sstevel@tonic-gate extern uint_t px_mmu_error_intr_enable; 570Sstevel@tonic-gate extern uint_t px_rerun_disable; 580Sstevel@tonic-gate 590Sstevel@tonic-gate extern uint_t px_error_intr_enable; 600Sstevel@tonic-gate extern uint_t px_dwsync_disable; 610Sstevel@tonic-gate extern uint_t px_intsync_disable; 620Sstevel@tonic-gate 630Sstevel@tonic-gate extern uint_t px_intr_retry_intv; 640Sstevel@tonic-gate extern uint8_t px_latency_timer; 650Sstevel@tonic-gate extern uint_t px_panic_on_fatal_errors; 660Sstevel@tonic-gate extern uint_t px_thermal_intr_fatal; 670Sstevel@tonic-gate extern uint_t px_buserr_interrupt; 680Sstevel@tonic-gate 690Sstevel@tonic-gate extern uint64_t px_errtrig_pa; 700Sstevel@tonic-gate 710Sstevel@tonic-gate extern uint_t px_check_all_handlers; 720Sstevel@tonic-gate extern uint_t px_lock_tlb; 730Sstevel@tonic-gate 740Sstevel@tonic-gate extern uint64_t px_dvma_debug_on; 750Sstevel@tonic-gate extern uint64_t px_dvma_debug_off; 760Sstevel@tonic-gate extern uint32_t px_dvma_debug_rec; 770Sstevel@tonic-gate extern uint_t px_dvma_page_cache_entries; 780Sstevel@tonic-gate extern uint_t px_dvma_page_cache_clustsz; 790Sstevel@tonic-gate extern int px_dvma_sync_before_unmap; 800Sstevel@tonic-gate #ifdef PX_DMA_PROF 810Sstevel@tonic-gate extern uint_t px_dvmaft_npages; 820Sstevel@tonic-gate extern uint_t px_dvmaft_limit; 830Sstevel@tonic-gate extern uint_t px_dvmaft_free; 840Sstevel@tonic-gate extern uint_t px_dvmaft_success; 850Sstevel@tonic-gate extern uint_t px_dvmaft_exhaust; 860Sstevel@tonic-gate extern uint_t px_dvma_vmem_alloc; 870Sstevel@tonic-gate extern uint_t px_dvma_vmem_xalloc; 880Sstevel@tonic-gate extern uint_t px_dvma_vmem_free; 890Sstevel@tonic-gate extern uint_t px_dvma_vmem_xfree; 900Sstevel@tonic-gate #endif /* PX_DMA_PROF */ 910Sstevel@tonic-gate extern uint_t px_disable_fdvma; 920Sstevel@tonic-gate 930Sstevel@tonic-gate extern uint_t px_iommu_ctx_lock_failure; 940Sstevel@tonic-gate extern uintptr_t px_kmem_clid; 950Sstevel@tonic-gate 96*10841SAlan.Adamson@Sun.COM extern uint_t px_max_msiq_msgs; 97*10841SAlan.Adamson@Sun.COM extern uint_t px_min_msiq_msgs; 98*10841SAlan.Adamson@Sun.COM 99287Smg140465 /* timeout length in micro seconds */ 1001147Sjchu #define PX_MSEC_TO_USEC 1000 1011147Sjchu #define PX_PME_TO_ACK_TIMEOUT (1000 * PX_MSEC_TO_USEC) 1021147Sjchu #define PX_LUP_POLL_INTERVAL (10 * PX_MSEC_TO_USEC) 1031147Sjchu #define PX_LUP_POLL_TO (10 * PX_LUP_POLL_INTERVAL) 104287Smg140465 1050Sstevel@tonic-gate #define PX_PWR_PIL 1 106118Sjchu #define PX_MAX_L1_TRIES 5 1070Sstevel@tonic-gate 1080Sstevel@tonic-gate extern uint64_t px_pme_to_ack_timeout; 1091147Sjchu extern uint64_t px_lup_poll_to; 1101147Sjchu extern uint64_t px_lup_poll_interval; 1110Sstevel@tonic-gate extern uint32_t px_pwr_pil; 112118Sjchu extern uint32_t px_max_l1_tries; 1130Sstevel@tonic-gate 1143274Set142600 /* Print and Log tunables */ 1153274Set142600 extern uint32_t px_log; 1163274Set142600 extern uint32_t px_die; 1173274Set142600 1180Sstevel@tonic-gate #ifdef __cplusplus 1190Sstevel@tonic-gate } 1200Sstevel@tonic-gate #endif 1210Sstevel@tonic-gate 1220Sstevel@tonic-gate #endif /* _SYS_PX_SPACE_H */ 123