xref: /titanic_41/usr/src/uts/intel/io/pci/pcihrt.h (revision ae115bc77f6fcde83175c75b4206dc2e50747966)
1*ae115bc7Smrj /*
2*ae115bc7Smrj  * CDDL HEADER START
3*ae115bc7Smrj  *
4*ae115bc7Smrj  * The contents of this file are subject to the terms of the
5*ae115bc7Smrj  * Common Development and Distribution License, Version 1.0 only
6*ae115bc7Smrj  * (the "License").  You may not use this file except in compliance
7*ae115bc7Smrj  * with the License.
8*ae115bc7Smrj  *
9*ae115bc7Smrj  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*ae115bc7Smrj  * or http://www.opensolaris.org/os/licensing.
11*ae115bc7Smrj  * See the License for the specific language governing permissions
12*ae115bc7Smrj  * and limitations under the License.
13*ae115bc7Smrj  *
14*ae115bc7Smrj  * When distributing Covered Code, include this CDDL HEADER in each
15*ae115bc7Smrj  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*ae115bc7Smrj  * If applicable, add the following below this CDDL HEADER, with the
17*ae115bc7Smrj  * fields enclosed by brackets "[]" replaced with your own identifying
18*ae115bc7Smrj  * information: Portions Copyright [yyyy] [name of copyright owner]
19*ae115bc7Smrj  *
20*ae115bc7Smrj  * CDDL HEADER END
21*ae115bc7Smrj  */
22*ae115bc7Smrj /*
23*ae115bc7Smrj  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*ae115bc7Smrj  * Use is subject to license terms.
25*ae115bc7Smrj  */
26*ae115bc7Smrj 
27*ae115bc7Smrj /*
28*ae115bc7Smrj  * pcihrt.h -- PCI Hot-Plug Resource Table
29*ae115bc7Smrj  */
30*ae115bc7Smrj 
31*ae115bc7Smrj #ifndef	_PCIHRT_H
32*ae115bc7Smrj #define	_PCIHRT_H
33*ae115bc7Smrj 
34*ae115bc7Smrj #pragma ident	"%Z%%M%	%I%	%E% SMI"
35*ae115bc7Smrj 
36*ae115bc7Smrj #ifdef	__cplusplus
37*ae115bc7Smrj extern "C" {
38*ae115bc7Smrj #endif
39*ae115bc7Smrj 
40*ae115bc7Smrj struct hrt_hdr { /* PCI Hot-Plug Configuration Resource Table header */
41*ae115bc7Smrj 	uint32_t hrt_sig;	/* $HRT 				*/
42*ae115bc7Smrj 	uint16_t hrt_avail_imap; /* Bitmap of unused IRQs		*/
43*ae115bc7Smrj 	uint16_t hrt_used_imap;	/* Bitmap of IRQs used by PCI 		*/
44*ae115bc7Smrj 	uchar_t	hrt_entry_cnt;	/* no. of PCI hot-plug slot entries	*/
45*ae115bc7Smrj 	uchar_t	hrt_ver;	/* version no. = 1			*/
46*ae115bc7Smrj 	uchar_t	hrt_resv0;	/* reserved				*/
47*ae115bc7Smrj 	uchar_t	hrt_resv1;	/* reserved				*/
48*ae115bc7Smrj 	uchar_t	hrt_resv2;	/* reserved				*/
49*ae115bc7Smrj 	uchar_t	hrt_resv3;	/* reserved				*/
50*ae115bc7Smrj 	uchar_t	hrt_resv4;	/* reserved				*/
51*ae115bc7Smrj 	uchar_t	hrt_resv5;	/* reserved				*/
52*ae115bc7Smrj };
53*ae115bc7Smrj 
54*ae115bc7Smrj struct php_entry {	/* PCI hot-plug slot entry */
55*ae115bc7Smrj 	uchar_t	php_devno;	/* PCI dev/func no. of the slot		*/
56*ae115bc7Smrj 	uchar_t	php_pri_bus;	/* Primary bus of this slot		*/
57*ae115bc7Smrj 	uchar_t	php_sec_bus;	/* Secondary bus of this slot		*/
58*ae115bc7Smrj 	uchar_t	php_subord_bus;	/* Max Subordinate bus of this slot	*/
59*ae115bc7Smrj 	uint16_t php_io_start;	/* allocated I/O space starting addr	*/
60*ae115bc7Smrj 	uint16_t php_io_size;	/* allocated I/O space size in bytes	*/
61*ae115bc7Smrj 	uint16_t php_mem_start;	/* allocated Memory space start addr 	*/
62*ae115bc7Smrj 	uint16_t php_mem_size;	/* allocated Memory space size in 64k	*/
63*ae115bc7Smrj 	uint16_t php_pfmem_start; /* allocated Prefetchable Memory start */
64*ae115bc7Smrj 	uint16_t php_pfmem_size; /* allocated Prefetchable size in 64k	*/
65*ae115bc7Smrj };
66*ae115bc7Smrj 
67*ae115bc7Smrj #ifdef	__cplusplus
68*ae115bc7Smrj }
69*ae115bc7Smrj #endif
70*ae115bc7Smrj 
71*ae115bc7Smrj #endif	/* _PCIHRT_H */
72