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