xref: /illumos-gate/usr/src/uts/sun4u/sys/pci/pci_space.h (revision 825808ce)
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
557026b47Sdanice  * Common Development and Distribution License (the "License").
657026b47Sdanice  * 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*825808ceSdduvall  * Copyright 2006 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_PCI_SPACE_H
277c478bd9Sstevel@tonic-gate #define	_SYS_PCI_SPACE_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
327c478bd9Sstevel@tonic-gate extern "C" {
337c478bd9Sstevel@tonic-gate #endif
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate #define	PCI_SPURINTR_MSG_DEFAULT -1ull
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate extern uint_t tomatillo_disallow_bypass;
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate extern uint_t pci_interrupt_priorities_property;
407c478bd9Sstevel@tonic-gate extern uint_t pci_config_space_size_zero;
417c478bd9Sstevel@tonic-gate extern int pci_pbm_dma_sync_wait;
427c478bd9Sstevel@tonic-gate extern int pci_dvma_sync_before_unmap;
437c478bd9Sstevel@tonic-gate extern int pci_sync_lock;
447c478bd9Sstevel@tonic-gate extern int tomatillo_store_store_wrka;
457c478bd9Sstevel@tonic-gate extern uint_t tm_mtlb_maxpgs;
467c478bd9Sstevel@tonic-gate extern uint_t tm_mtlb_gc;
477c478bd9Sstevel@tonic-gate extern uint_t tm_mtlb_gc_manual;
487c478bd9Sstevel@tonic-gate extern uint32_t pci_spurintr_duration;
497c478bd9Sstevel@tonic-gate extern uint64_t pci_spurintr_msgs;
507c478bd9Sstevel@tonic-gate 
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate extern ushort_t pci_command_default;
537c478bd9Sstevel@tonic-gate extern uint_t pci_set_latency_timer_register;
547c478bd9Sstevel@tonic-gate extern uint_t pci_set_cache_line_size_register;
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate #ifdef DEBUG
577c478bd9Sstevel@tonic-gate extern uint64_t pci_debug_flags;
587c478bd9Sstevel@tonic-gate extern uint_t pci_warn_pp0;
597c478bd9Sstevel@tonic-gate #endif
607c478bd9Sstevel@tonic-gate extern uint_t pci_disable_pass1_workarounds;
617c478bd9Sstevel@tonic-gate extern uint_t pci_disable_pass2_workarounds;
627c478bd9Sstevel@tonic-gate extern uint_t pci_disable_pass3_workarounds;
637c478bd9Sstevel@tonic-gate extern uint_t pci_disable_plus_workarounds;
647c478bd9Sstevel@tonic-gate extern uint_t pci_disable_default_workarounds;
657c478bd9Sstevel@tonic-gate extern uint_t ecc_error_intr_enable;
667c478bd9Sstevel@tonic-gate extern uint_t pci_sbh_error_intr_enable;
677c478bd9Sstevel@tonic-gate extern uint_t pci_mmu_error_intr_enable;
687c478bd9Sstevel@tonic-gate extern uint_t pci_stream_buf_enable;
697c478bd9Sstevel@tonic-gate extern uint_t pci_stream_buf_exists;
707c478bd9Sstevel@tonic-gate extern uint_t pci_rerun_disable;
717c478bd9Sstevel@tonic-gate extern uint_t pci_enable_periodic_loopback_dma;
727c478bd9Sstevel@tonic-gate extern uint_t pci_enable_retry_arb;
737c478bd9Sstevel@tonic-gate 
747c478bd9Sstevel@tonic-gate extern uint_t pci_bus_parking_enable;
757c478bd9Sstevel@tonic-gate extern uint_t pci_error_intr_enable;
767c478bd9Sstevel@tonic-gate extern uint_t pci_retry_disable;
777c478bd9Sstevel@tonic-gate extern uint_t pci_retry_enable;
787c478bd9Sstevel@tonic-gate extern uint_t pci_dwsync_disable;
797c478bd9Sstevel@tonic-gate extern uint_t pci_intsync_disable;
807c478bd9Sstevel@tonic-gate extern uint_t pci_b_arb_enable;
817c478bd9Sstevel@tonic-gate extern uint_t pci_a_arb_enable;
827c478bd9Sstevel@tonic-gate extern uint_t pci_ecc_afsr_retries;
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate extern uint_t pci_intr_retry_intv;
857c478bd9Sstevel@tonic-gate extern uint8_t pci_latency_timer;
867c478bd9Sstevel@tonic-gate extern uint_t pci_panic_on_sbh_errors;
877c478bd9Sstevel@tonic-gate extern uint_t pci_panic_on_fatal_errors;
887c478bd9Sstevel@tonic-gate extern uint_t pci_thermal_intr_fatal;
897c478bd9Sstevel@tonic-gate extern uint_t pci_buserr_interrupt;
907c478bd9Sstevel@tonic-gate extern uint_t pci_set_dto_value;
917c478bd9Sstevel@tonic-gate extern uint_t pci_dto_value;
927c478bd9Sstevel@tonic-gate extern uint_t pci_lock_sbuf;
937c478bd9Sstevel@tonic-gate extern uint_t pci_use_contexts;
947c478bd9Sstevel@tonic-gate extern uint_t pci_sc_use_contexts;
957c478bd9Sstevel@tonic-gate extern uint_t pci_context_minpages;
967c478bd9Sstevel@tonic-gate extern uint_t pci_ctx_flush_warn;
977c478bd9Sstevel@tonic-gate extern uint_t pci_ctx_unsuccess_count;
987c478bd9Sstevel@tonic-gate extern uint_t pci_ctx_no_active_flush;
997c478bd9Sstevel@tonic-gate extern uint_t pci_ctx_no_compat;
1007c478bd9Sstevel@tonic-gate 
1017c478bd9Sstevel@tonic-gate extern uint_t pci_check_all_handlers;
1027c478bd9Sstevel@tonic-gate extern uint_t pci_unclaimed_intr_max;
1037c478bd9Sstevel@tonic-gate extern ulong_t pci_iommu_dvma_end;
1047c478bd9Sstevel@tonic-gate extern uint_t pci_lock_tlb;
1057c478bd9Sstevel@tonic-gate 
1067c478bd9Sstevel@tonic-gate extern uint64_t pci_dvma_debug_on;
1077c478bd9Sstevel@tonic-gate extern uint64_t pci_dvma_debug_off;
1087c478bd9Sstevel@tonic-gate extern uint32_t pci_dvma_debug_rec;
1097c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_entries;
1107c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_clustsz;
1117c478bd9Sstevel@tonic-gate #ifdef PCI_DMA_PROF
1127c478bd9Sstevel@tonic-gate extern uint_t pci_dvmaft_npages;
1137c478bd9Sstevel@tonic-gate extern uint_t pci_dvmaft_limit;
1147c478bd9Sstevel@tonic-gate extern uint_t pci_dvmaft_free;
1157c478bd9Sstevel@tonic-gate extern uint_t pci_dvmaft_success;
1167c478bd9Sstevel@tonic-gate extern uint_t pci_dvmaft_exhaust;
1177c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_vmem_alloc;
1187c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xalloc;
1197c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_vmem_free;
1207c478bd9Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xfree;
1217c478bd9Sstevel@tonic-gate #endif
1227c478bd9Sstevel@tonic-gate extern uint_t pci_disable_fdvma;
1237c478bd9Sstevel@tonic-gate 
1247c478bd9Sstevel@tonic-gate extern uint_t pci_iommu_ctx_lock_failure;
1257c478bd9Sstevel@tonic-gate extern uint_t pci_preserve_iommu_tsb;
1267c478bd9Sstevel@tonic-gate 
1277c478bd9Sstevel@tonic-gate extern uint64_t pci_perr_enable;
1287c478bd9Sstevel@tonic-gate extern uint64_t pci_serr_enable;
1297c478bd9Sstevel@tonic-gate extern uint64_t pci_perr_fatal;
1307c478bd9Sstevel@tonic-gate extern uint64_t pci_serr_fatal;
1317c478bd9Sstevel@tonic-gate extern hrtime_t pci_intrpend_timeout;
1327c478bd9Sstevel@tonic-gate extern hrtime_t pci_sync_buf_timeout;
1337c478bd9Sstevel@tonic-gate extern hrtime_t pci_cdma_intr_timeout;
1347c478bd9Sstevel@tonic-gate extern uint32_t pci_cdma_intr_count;
1357c478bd9Sstevel@tonic-gate 
1367c478bd9Sstevel@tonic-gate extern uint32_t pci_dto_fault_warn;
1377c478bd9Sstevel@tonic-gate extern uint64_t pci_dto_intr_enable;
1387c478bd9Sstevel@tonic-gate extern uint64_t pci_dto_count;
1397c478bd9Sstevel@tonic-gate extern uint64_t pci_errtrig_pa;
1407c478bd9Sstevel@tonic-gate 
1417c478bd9Sstevel@tonic-gate extern uintptr_t pci_kmem_clid;
1427c478bd9Sstevel@tonic-gate extern uint_t pci_intr_dma_sync;
1437c478bd9Sstevel@tonic-gate extern uint_t pci_xmits_sc_max_prf;
1447c478bd9Sstevel@tonic-gate extern uint64_t xmits_error_intr_enable;
1457c478bd9Sstevel@tonic-gate extern uint_t xmits_perr_recov_int_enable;
1467c478bd9Sstevel@tonic-gate extern uint_t xmits_max_transactions;
1477c478bd9Sstevel@tonic-gate extern uint_t xmits_max_read_bytes;
148810a4a70Sdanice extern uint_t xmits_upper_retry_counter;
14957026b47Sdanice extern uint_t xmits_pcix_diag_bugcntl_pcix;
15057026b47Sdanice extern uint_t xmits_pcix_diag_bugcntl_pci;
1517c478bd9Sstevel@tonic-gate 
1527c478bd9Sstevel@tonic-gate extern int pci_dvma_remap_enabled;
1537c478bd9Sstevel@tonic-gate extern kthread_t *pci_reloc_thread;
1547c478bd9Sstevel@tonic-gate extern kmutex_t pci_reloc_mutex;
1557c478bd9Sstevel@tonic-gate extern kcondvar_t pci_reloc_cv;
1567c478bd9Sstevel@tonic-gate extern int pci_reloc_presuspend;
1577c478bd9Sstevel@tonic-gate extern int pci_reloc_suspend;
1587c478bd9Sstevel@tonic-gate extern id_t pci_dvma_cbid;
1597c478bd9Sstevel@tonic-gate extern id_t pci_fast_dvma_cbid;
1607c478bd9Sstevel@tonic-gate extern int pci_dma_panic_on_leak;
1617c478bd9Sstevel@tonic-gate 
1627c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
1637c478bd9Sstevel@tonic-gate }
1647c478bd9Sstevel@tonic-gate #endif
1657c478bd9Sstevel@tonic-gate 
1667c478bd9Sstevel@tonic-gate #endif	/* _SYS_PCI_SPACE_H */
167