xref: /onnv-gate/usr/src/uts/sun4u/sys/pci/pci_space.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate  * Use is subject to license terms.
25*0Sstevel@tonic-gate  */
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate #ifndef	_SYS_PCI_SPACE_H
28*0Sstevel@tonic-gate #define	_SYS_PCI_SPACE_H
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate #ifdef	__cplusplus
33*0Sstevel@tonic-gate extern "C" {
34*0Sstevel@tonic-gate #endif
35*0Sstevel@tonic-gate 
36*0Sstevel@tonic-gate #define	PCI_SPURINTR_MSG_DEFAULT -1ull
37*0Sstevel@tonic-gate 
38*0Sstevel@tonic-gate extern uint_t tomatillo_disallow_bypass;
39*0Sstevel@tonic-gate 
40*0Sstevel@tonic-gate extern uint_t pci_interrupt_priorities_property;
41*0Sstevel@tonic-gate extern uint_t pci_config_space_size_zero;
42*0Sstevel@tonic-gate extern int pci_pbm_dma_sync_wait;
43*0Sstevel@tonic-gate extern int pci_dvma_sync_before_unmap;
44*0Sstevel@tonic-gate extern int pci_sync_lock;
45*0Sstevel@tonic-gate extern int tomatillo_store_store_wrka;
46*0Sstevel@tonic-gate extern uint_t tm_mtlb_maxpgs;
47*0Sstevel@tonic-gate extern uint_t tm_mtlb_gc;
48*0Sstevel@tonic-gate extern uint_t tm_mtlb_gc_manual;
49*0Sstevel@tonic-gate extern uint32_t pci_spurintr_duration;
50*0Sstevel@tonic-gate extern uint64_t pci_spurintr_msgs;
51*0Sstevel@tonic-gate 
52*0Sstevel@tonic-gate 
53*0Sstevel@tonic-gate extern ushort_t pci_command_default;
54*0Sstevel@tonic-gate extern uint_t pci_set_latency_timer_register;
55*0Sstevel@tonic-gate extern uint_t pci_set_cache_line_size_register;
56*0Sstevel@tonic-gate 
57*0Sstevel@tonic-gate #ifdef DEBUG
58*0Sstevel@tonic-gate extern uint64_t pci_debug_flags;
59*0Sstevel@tonic-gate extern uint_t pci_warn_pp0;
60*0Sstevel@tonic-gate #endif
61*0Sstevel@tonic-gate extern uint_t pci_disable_pass1_workarounds;
62*0Sstevel@tonic-gate extern uint_t pci_disable_pass2_workarounds;
63*0Sstevel@tonic-gate extern uint_t pci_disable_pass3_workarounds;
64*0Sstevel@tonic-gate extern uint_t pci_disable_plus_workarounds;
65*0Sstevel@tonic-gate extern uint_t pci_disable_default_workarounds;
66*0Sstevel@tonic-gate extern uint_t ecc_error_intr_enable;
67*0Sstevel@tonic-gate extern uint_t pci_sbh_error_intr_enable;
68*0Sstevel@tonic-gate extern uint_t pci_mmu_error_intr_enable;
69*0Sstevel@tonic-gate extern uint_t pci_stream_buf_enable;
70*0Sstevel@tonic-gate extern uint_t pci_stream_buf_exists;
71*0Sstevel@tonic-gate extern uint_t pci_rerun_disable;
72*0Sstevel@tonic-gate extern uint_t pci_enable_periodic_loopback_dma;
73*0Sstevel@tonic-gate extern uint_t pci_enable_retry_arb;
74*0Sstevel@tonic-gate 
75*0Sstevel@tonic-gate extern uint_t pci_bus_parking_enable;
76*0Sstevel@tonic-gate extern uint_t pci_error_intr_enable;
77*0Sstevel@tonic-gate extern uint_t pci_retry_disable;
78*0Sstevel@tonic-gate extern uint_t pci_retry_enable;
79*0Sstevel@tonic-gate extern uint_t pci_dwsync_disable;
80*0Sstevel@tonic-gate extern uint_t pci_intsync_disable;
81*0Sstevel@tonic-gate extern uint_t pci_b_arb_enable;
82*0Sstevel@tonic-gate extern uint_t pci_a_arb_enable;
83*0Sstevel@tonic-gate extern uint_t pci_ecc_afsr_retries;
84*0Sstevel@tonic-gate 
85*0Sstevel@tonic-gate extern uint_t pci_intr_retry_intv;
86*0Sstevel@tonic-gate extern uint8_t pci_latency_timer;
87*0Sstevel@tonic-gate extern uint_t pci_panic_on_sbh_errors;
88*0Sstevel@tonic-gate extern uint_t pci_panic_on_fatal_errors;
89*0Sstevel@tonic-gate extern uint_t pci_thermal_intr_fatal;
90*0Sstevel@tonic-gate extern uint_t pci_buserr_interrupt;
91*0Sstevel@tonic-gate extern uint_t pci_set_dto_value;
92*0Sstevel@tonic-gate extern uint_t pci_dto_value;
93*0Sstevel@tonic-gate extern uint_t pci_lock_sbuf;
94*0Sstevel@tonic-gate extern uint_t pci_use_contexts;
95*0Sstevel@tonic-gate extern uint_t pci_sc_use_contexts;
96*0Sstevel@tonic-gate extern uint_t pci_context_minpages;
97*0Sstevel@tonic-gate extern uint_t pci_ctx_flush_warn;
98*0Sstevel@tonic-gate extern uint_t pci_ctx_unsuccess_count;
99*0Sstevel@tonic-gate extern uint_t pci_ctx_no_active_flush;
100*0Sstevel@tonic-gate extern uint_t pci_ctx_no_compat;
101*0Sstevel@tonic-gate 
102*0Sstevel@tonic-gate extern uint_t pci_check_all_handlers;
103*0Sstevel@tonic-gate extern uint_t pci_unclaimed_intr_max;
104*0Sstevel@tonic-gate extern ulong_t pci_iommu_dvma_end;
105*0Sstevel@tonic-gate extern uint_t pci_lock_tlb;
106*0Sstevel@tonic-gate 
107*0Sstevel@tonic-gate extern uint64_t pci_dvma_debug_on;
108*0Sstevel@tonic-gate extern uint64_t pci_dvma_debug_off;
109*0Sstevel@tonic-gate extern uint32_t pci_dvma_debug_rec;
110*0Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_entries;
111*0Sstevel@tonic-gate extern uint_t pci_dvma_page_cache_clustsz;
112*0Sstevel@tonic-gate #ifdef PCI_DMA_PROF
113*0Sstevel@tonic-gate extern uint_t pci_dvmaft_npages;
114*0Sstevel@tonic-gate extern uint_t pci_dvmaft_limit;
115*0Sstevel@tonic-gate extern uint_t pci_dvmaft_free;
116*0Sstevel@tonic-gate extern uint_t pci_dvmaft_success;
117*0Sstevel@tonic-gate extern uint_t pci_dvmaft_exhaust;
118*0Sstevel@tonic-gate extern uint_t pci_dvma_vmem_alloc;
119*0Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xalloc;
120*0Sstevel@tonic-gate extern uint_t pci_dvma_vmem_free;
121*0Sstevel@tonic-gate extern uint_t pci_dvma_vmem_xfree;
122*0Sstevel@tonic-gate #endif
123*0Sstevel@tonic-gate extern uint_t pci_disable_fdvma;
124*0Sstevel@tonic-gate 
125*0Sstevel@tonic-gate extern uint_t pci_iommu_ctx_lock_failure;
126*0Sstevel@tonic-gate extern uint_t pci_preserve_iommu_tsb;
127*0Sstevel@tonic-gate 
128*0Sstevel@tonic-gate extern uint64_t pci_perr_enable;
129*0Sstevel@tonic-gate extern uint64_t pci_serr_enable;
130*0Sstevel@tonic-gate extern uint64_t pci_perr_fatal;
131*0Sstevel@tonic-gate extern uint64_t pci_serr_fatal;
132*0Sstevel@tonic-gate extern hrtime_t pci_intrpend_timeout;
133*0Sstevel@tonic-gate extern hrtime_t pci_sync_buf_timeout;
134*0Sstevel@tonic-gate extern hrtime_t pci_cdma_intr_timeout;
135*0Sstevel@tonic-gate extern uint32_t pci_cdma_intr_count;
136*0Sstevel@tonic-gate 
137*0Sstevel@tonic-gate extern uint32_t pci_dto_fault_warn;
138*0Sstevel@tonic-gate extern uint64_t pci_dto_intr_enable;
139*0Sstevel@tonic-gate extern uint64_t pci_dto_count;
140*0Sstevel@tonic-gate extern uint64_t pci_errtrig_pa;
141*0Sstevel@tonic-gate 
142*0Sstevel@tonic-gate extern uintptr_t pci_kmem_clid;
143*0Sstevel@tonic-gate extern uint_t pci_intr_dma_sync;
144*0Sstevel@tonic-gate extern uint_t pci_xmits_sc_max_prf;
145*0Sstevel@tonic-gate extern uint64_t xmits_error_intr_enable;
146*0Sstevel@tonic-gate extern uint_t xmits_perr_recov_int_enable;
147*0Sstevel@tonic-gate extern uint_t xmits_max_transactions;
148*0Sstevel@tonic-gate extern uint_t xmits_max_read_bytes;
149*0Sstevel@tonic-gate 
150*0Sstevel@tonic-gate extern int pci_dvma_remap_enabled;
151*0Sstevel@tonic-gate extern kthread_t *pci_reloc_thread;
152*0Sstevel@tonic-gate extern kmutex_t pci_reloc_mutex;
153*0Sstevel@tonic-gate extern kcondvar_t pci_reloc_cv;
154*0Sstevel@tonic-gate extern int pci_reloc_presuspend;
155*0Sstevel@tonic-gate extern int pci_reloc_suspend;
156*0Sstevel@tonic-gate extern id_t pci_dvma_cbid;
157*0Sstevel@tonic-gate extern id_t pci_fast_dvma_cbid;
158*0Sstevel@tonic-gate extern int pci_dma_panic_on_leak;
159*0Sstevel@tonic-gate 
160*0Sstevel@tonic-gate #ifdef	__cplusplus
161*0Sstevel@tonic-gate }
162*0Sstevel@tonic-gate #endif
163*0Sstevel@tonic-gate 
164*0Sstevel@tonic-gate #endif	/* _SYS_PCI_SPACE_H */
165