xref: /titanic_50/usr/src/uts/intel/sys/acpi/acpi_pci.h (revision 62a24de03df1f2399ceda704cb3874dabc98bbbd)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 
23 /*
24  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 #ifndef	_ACPI_PCI_H
29 #define	_ACPI_PCI_H
30 
31 #pragma ident	"%Z%%M%	%I%	%E% SMI"
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 /*
38  * Memory mapped configuration space address description table documented
39  * in ACPI 3.0.  These definitions are currently not included in the
40  * actbl.h from Intel.  This file will need to be removed once Intel has
41  * updated their include file with these information.
42  */
43 #define	MCFG_SIG	"MCFG"		/* Memory mapped config space address */
44 					/* description table's signature */
45 
46 #pragma pack(1)
47 
48 typedef struct cfg_base_addr_alloc {
49 	UINT64	base_addr;
50 	UINT16	group_bno;
51 	UINT8	start_bno;
52 	UINT8	end_bno;
53 	UINT32	reserved;
54 } CFG_BASE_ADDR_ALLOC;
55 
56 typedef struct mcfg_table {
57 	char	Signature[4];		/* MCFG signature */
58 	UINT32	Length;			/* Length of table, in bytes */
59 	UINT8	Revision;		/* ACPI Specification minor version # */
60 	UINT8	Checksum;		/* To make sum of entire table == 0 */
61 	char	OemId[6];		/* OEM identification */
62 	char	OemTableId[8];		/* OEM table identification */
63 	UINT32	OemRevision;		/* OEM revision number */
64 	char	CreatorId[4];		/* Table creator vendor Id */
65 	UINT32	CreatorRevision;	/* Table creator utility revision no */
66 	UINT8	Reserved[8];		/* Reserved */
67 	/* List of memory mapped cfg base address allocation structures */
68 	CFG_BASE_ADDR_ALLOC	CfgBaseAddrAllocList[1];
69 } MCFG_TABLE;
70 
71 #pragma pack()
72 
73 #ifdef	__cplusplus
74 }
75 #endif
76 
77 #endif	/* _ACPI_PCI_H */
78