px_space.h revision eae2e508a8e70b1ec407b10bd068c080651bbe5c
2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#ifndef _SYS_PX_SPACE_H
2N/A#define _SYS_PX_SPACE_H
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#define PX_SPURINTR_MSG_DEFAULT -1ull
2N/A
2N/Aextern char px_panic_hb_msg[];
2N/Aextern char px_panic_rc_msg[];
2N/Aextern char px_panic_rp_msg[];
2N/Aextern char px_panic_fab_msg[];
2N/A
2N/Aextern uint_t px_max_errorq_size;
2N/Aextern ushort_t px_command_default;
2N/Aextern uint_t px_set_latency_timer_register;
2N/Aextern uint64_t px_perr_fatal;
2N/Aextern uint64_t px_serr_fatal;
2N/Aextern hrtime_t px_intrpend_timeout;
2N/Aextern uint_t px_unclaimed_intr_max;
2N/Aextern uint_t px_unclaimed_intr_block;
2N/Aextern uint32_t px_spurintr_duration;
2N/Aextern uint64_t px_spurintr_msgs;
2N/Aextern uint_t px_stream_buf_enable;
2N/Aextern uint_t px_stream_buf_exists;
2N/Aextern uint_t px_use_contexts;
2N/Aextern uint_t px_ctx_no_active_flush;
2N/Aextern uint_t px_context_minpages;
2N/A
2N/Aextern uint_t px_mmu_error_intr_enable;
2N/Aextern uint_t px_rerun_disable;
2N/A
2N/Aextern uint_t px_error_intr_enable;
2N/Aextern uint_t px_dwsync_disable;
2N/Aextern uint_t px_intsync_disable;
2N/A
2N/Aextern uint_t px_intr_retry_intv;
2N/Aextern uint8_t px_latency_timer;
2N/Aextern uint_t px_panic_on_fatal_errors;
2N/Aextern uint_t px_thermal_intr_fatal;
2N/Aextern uint_t px_buserr_interrupt;
2N/A
2N/Aextern uint64_t px_errtrig_pa;
2N/A
2N/Aextern uint_t px_check_all_handlers;
2N/Aextern uint_t px_lock_tlb;
2N/A
2N/Aextern uint64_t px_dvma_debug_on;
2N/Aextern uint64_t px_dvma_debug_off;
2N/Aextern uint32_t px_dvma_debug_rec;
2N/Aextern uint_t px_dvma_page_cache_entries;
2N/Aextern uint_t px_dvma_page_cache_clustsz;
2N/Aextern int px_dvma_sync_before_unmap;
2N/A#ifdef PX_DMA_PROF
2N/Aextern uint_t px_dvmaft_npages;
2N/Aextern uint_t px_dvmaft_limit;
2N/Aextern uint_t px_dvmaft_free;
2N/Aextern uint_t px_dvmaft_success;
2N/Aextern uint_t px_dvmaft_exhaust;
2N/Aextern uint_t px_dvma_vmem_alloc;
2N/Aextern uint_t px_dvma_vmem_xalloc;
2N/Aextern uint_t px_dvma_vmem_free;
2N/Aextern uint_t px_dvma_vmem_xfree;
2N/A#endif /* PX_DMA_PROF */
2N/Aextern uint_t px_disable_fdvma;
2N/A
2N/Aextern uint_t px_iommu_ctx_lock_failure;
2N/Aextern uintptr_t px_kmem_clid;
2N/A
2N/A/* timeout length in micro seconds */
2N/A#define PX_MSEC_TO_USEC 1000
2N/A#define PX_PME_TO_ACK_TIMEOUT (1000 * PX_MSEC_TO_USEC)
2N/A#define PX_LUP_POLL_INTERVAL (10 * PX_MSEC_TO_USEC)
2N/A#define PX_LUP_POLL_TO (10 * PX_LUP_POLL_INTERVAL)
2N/A
2N/A#define PX_PWR_PIL 1
2N/A#define PX_MAX_L1_TRIES 5
2N/A
2N/Aextern uint64_t px_pme_to_ack_timeout;
2N/Aextern uint64_t px_lup_poll_to;
2N/Aextern uint64_t px_lup_poll_interval;
2N/Aextern uint32_t px_pwr_pil;
2N/Aextern uint32_t px_max_l1_tries;
2N/A
2N/A/* Print and Log tunables */
2N/Aextern uint32_t px_log;
2N/Aextern uint32_t px_die;
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _SYS_PX_SPACE_H */
2N/A