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 52358Sdanice * Common Development and Distribution License (the "License"). 62358Sdanice * 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*3558Sdduvall * Copyright 2006 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_PCI_SPACE_H 270Sstevel@tonic-gate #define _SYS_PCI_SPACE_H 280Sstevel@tonic-gate 290Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 300Sstevel@tonic-gate 310Sstevel@tonic-gate #ifdef __cplusplus 320Sstevel@tonic-gate extern "C" { 330Sstevel@tonic-gate #endif 340Sstevel@tonic-gate 350Sstevel@tonic-gate #define PCI_SPURINTR_MSG_DEFAULT -1ull 360Sstevel@tonic-gate 370Sstevel@tonic-gate extern uint_t tomatillo_disallow_bypass; 380Sstevel@tonic-gate 390Sstevel@tonic-gate extern uint_t pci_interrupt_priorities_property; 400Sstevel@tonic-gate extern uint_t pci_config_space_size_zero; 410Sstevel@tonic-gate extern int pci_pbm_dma_sync_wait; 420Sstevel@tonic-gate extern int pci_dvma_sync_before_unmap; 430Sstevel@tonic-gate extern int pci_sync_lock; 440Sstevel@tonic-gate extern int tomatillo_store_store_wrka; 450Sstevel@tonic-gate extern uint_t tm_mtlb_maxpgs; 460Sstevel@tonic-gate extern uint_t tm_mtlb_gc; 470Sstevel@tonic-gate extern uint_t tm_mtlb_gc_manual; 480Sstevel@tonic-gate extern uint32_t pci_spurintr_duration; 490Sstevel@tonic-gate extern uint64_t pci_spurintr_msgs; 500Sstevel@tonic-gate 510Sstevel@tonic-gate 520Sstevel@tonic-gate extern ushort_t pci_command_default; 530Sstevel@tonic-gate extern uint_t pci_set_latency_timer_register; 540Sstevel@tonic-gate extern uint_t pci_set_cache_line_size_register; 550Sstevel@tonic-gate 560Sstevel@tonic-gate #ifdef DEBUG 570Sstevel@tonic-gate extern uint64_t pci_debug_flags; 580Sstevel@tonic-gate extern uint_t pci_warn_pp0; 590Sstevel@tonic-gate #endif 600Sstevel@tonic-gate extern uint_t pci_disable_pass1_workarounds; 610Sstevel@tonic-gate extern uint_t pci_disable_pass2_workarounds; 620Sstevel@tonic-gate extern uint_t pci_disable_pass3_workarounds; 630Sstevel@tonic-gate extern uint_t pci_disable_plus_workarounds; 640Sstevel@tonic-gate extern uint_t pci_disable_default_workarounds; 650Sstevel@tonic-gate extern uint_t ecc_error_intr_enable; 660Sstevel@tonic-gate extern uint_t pci_sbh_error_intr_enable; 670Sstevel@tonic-gate extern uint_t pci_mmu_error_intr_enable; 680Sstevel@tonic-gate extern uint_t pci_stream_buf_enable; 690Sstevel@tonic-gate extern uint_t pci_stream_buf_exists; 700Sstevel@tonic-gate extern uint_t pci_rerun_disable; 710Sstevel@tonic-gate extern uint_t pci_enable_periodic_loopback_dma; 720Sstevel@tonic-gate extern uint_t pci_enable_retry_arb; 730Sstevel@tonic-gate 740Sstevel@tonic-gate extern uint_t pci_bus_parking_enable; 750Sstevel@tonic-gate extern uint_t pci_error_intr_enable; 760Sstevel@tonic-gate extern uint_t pci_retry_disable; 770Sstevel@tonic-gate extern uint_t pci_retry_enable; 780Sstevel@tonic-gate extern uint_t pci_dwsync_disable; 790Sstevel@tonic-gate extern uint_t pci_intsync_disable; 800Sstevel@tonic-gate extern uint_t pci_b_arb_enable; 810Sstevel@tonic-gate extern uint_t pci_a_arb_enable; 820Sstevel@tonic-gate extern uint_t pci_ecc_afsr_retries; 830Sstevel@tonic-gate 840Sstevel@tonic-gate extern uint_t pci_intr_retry_intv; 850Sstevel@tonic-gate extern uint8_t pci_latency_timer; 860Sstevel@tonic-gate extern uint_t pci_panic_on_sbh_errors; 870Sstevel@tonic-gate extern uint_t pci_panic_on_fatal_errors; 880Sstevel@tonic-gate extern uint_t pci_thermal_intr_fatal; 890Sstevel@tonic-gate extern uint_t pci_buserr_interrupt; 900Sstevel@tonic-gate extern uint_t pci_set_dto_value; 910Sstevel@tonic-gate extern uint_t pci_dto_value; 920Sstevel@tonic-gate extern uint_t pci_lock_sbuf; 930Sstevel@tonic-gate extern uint_t pci_use_contexts; 940Sstevel@tonic-gate extern uint_t pci_sc_use_contexts; 950Sstevel@tonic-gate extern uint_t pci_context_minpages; 960Sstevel@tonic-gate extern uint_t pci_ctx_flush_warn; 970Sstevel@tonic-gate extern uint_t pci_ctx_unsuccess_count; 980Sstevel@tonic-gate extern uint_t pci_ctx_no_active_flush; 990Sstevel@tonic-gate extern uint_t pci_ctx_no_compat; 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate extern uint_t pci_check_all_handlers; 1020Sstevel@tonic-gate extern uint_t pci_unclaimed_intr_max; 1030Sstevel@tonic-gate extern ulong_t pci_iommu_dvma_end; 1040Sstevel@tonic-gate extern uint_t pci_lock_tlb; 1050Sstevel@tonic-gate 1060Sstevel@tonic-gate extern uint64_t pci_dvma_debug_on; 1070Sstevel@tonic-gate extern uint64_t pci_dvma_debug_off; 1080Sstevel@tonic-gate extern uint32_t pci_dvma_debug_rec; 1090Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_entries; 1100Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_clustsz; 1110Sstevel@tonic-gate #ifdef PCI_DMA_PROF 1120Sstevel@tonic-gate extern uint_t pci_dvmaft_npages; 1130Sstevel@tonic-gate extern uint_t pci_dvmaft_limit; 1140Sstevel@tonic-gate extern uint_t pci_dvmaft_free; 1150Sstevel@tonic-gate extern uint_t pci_dvmaft_success; 1160Sstevel@tonic-gate extern uint_t pci_dvmaft_exhaust; 1170Sstevel@tonic-gate extern uint_t pci_dvma_vmem_alloc; 1180Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xalloc; 1190Sstevel@tonic-gate extern uint_t pci_dvma_vmem_free; 1200Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xfree; 1210Sstevel@tonic-gate #endif 1220Sstevel@tonic-gate extern uint_t pci_disable_fdvma; 1230Sstevel@tonic-gate 1240Sstevel@tonic-gate extern uint_t pci_iommu_ctx_lock_failure; 1250Sstevel@tonic-gate extern uint_t pci_preserve_iommu_tsb; 1260Sstevel@tonic-gate 1270Sstevel@tonic-gate extern uint64_t pci_perr_enable; 1280Sstevel@tonic-gate extern uint64_t pci_serr_enable; 1290Sstevel@tonic-gate extern uint64_t pci_perr_fatal; 1300Sstevel@tonic-gate extern uint64_t pci_serr_fatal; 1310Sstevel@tonic-gate extern hrtime_t pci_intrpend_timeout; 1320Sstevel@tonic-gate extern hrtime_t pci_sync_buf_timeout; 1330Sstevel@tonic-gate extern hrtime_t pci_cdma_intr_timeout; 1340Sstevel@tonic-gate extern uint32_t pci_cdma_intr_count; 1350Sstevel@tonic-gate 1360Sstevel@tonic-gate extern uint32_t pci_dto_fault_warn; 1370Sstevel@tonic-gate extern uint64_t pci_dto_intr_enable; 1380Sstevel@tonic-gate extern uint64_t pci_dto_count; 1390Sstevel@tonic-gate extern uint64_t pci_errtrig_pa; 1400Sstevel@tonic-gate 1410Sstevel@tonic-gate extern uintptr_t pci_kmem_clid; 1420Sstevel@tonic-gate extern uint_t pci_intr_dma_sync; 1430Sstevel@tonic-gate extern uint_t pci_xmits_sc_max_prf; 1440Sstevel@tonic-gate extern uint64_t xmits_error_intr_enable; 1450Sstevel@tonic-gate extern uint_t xmits_perr_recov_int_enable; 1460Sstevel@tonic-gate extern uint_t xmits_max_transactions; 1470Sstevel@tonic-gate extern uint_t xmits_max_read_bytes; 1481295Sdanice extern uint_t xmits_upper_retry_counter; 1492358Sdanice extern uint_t xmits_pcix_diag_bugcntl_pcix; 1502358Sdanice extern uint_t xmits_pcix_diag_bugcntl_pci; 1510Sstevel@tonic-gate 1520Sstevel@tonic-gate extern int pci_dvma_remap_enabled; 1530Sstevel@tonic-gate extern kthread_t *pci_reloc_thread; 1540Sstevel@tonic-gate extern kmutex_t pci_reloc_mutex; 1550Sstevel@tonic-gate extern kcondvar_t pci_reloc_cv; 1560Sstevel@tonic-gate extern int pci_reloc_presuspend; 1570Sstevel@tonic-gate extern int pci_reloc_suspend; 1580Sstevel@tonic-gate extern id_t pci_dvma_cbid; 1590Sstevel@tonic-gate extern id_t pci_fast_dvma_cbid; 1600Sstevel@tonic-gate extern int pci_dma_panic_on_leak; 1610Sstevel@tonic-gate 1620Sstevel@tonic-gate #ifdef __cplusplus 1630Sstevel@tonic-gate } 1640Sstevel@tonic-gate #endif 1650Sstevel@tonic-gate 1660Sstevel@tonic-gate #endif /* _SYS_PCI_SPACE_H */ 167