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 (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 * Copyright 2016 Joyent, Inc. 25 */ 26 27 #ifndef _ACPI_PCI_H 28 #define _ACPI_PCI_H 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 /* 35 * Memory mapped configuration space address description table documented 36 * in ACPI 3.0. These definitions are currently not the same as in the 37 * actbl2.h from Intel. This file might be removed if the code can be ported 38 * to use the definition provided by Intel. 39 */ 40 #pragma pack(1) 41 42 typedef struct cfg_base_addr_alloc { 43 UINT64 base_addr; 44 UINT16 segment; 45 UINT8 start_bno; 46 UINT8 end_bno; 47 UINT32 reserved; 48 } CFG_BASE_ADDR_ALLOC; 49 50 typedef struct mcfg_table { 51 char Signature[4]; /* MCFG signature */ 52 UINT32 Length; /* Length of table, in bytes */ 53 UINT8 Revision; /* ACPI Specification minor version # */ 54 UINT8 Checksum; /* To make sum of entire table == 0 */ 55 char OemId[6]; /* OEM identification */ 56 char OemTableId[8]; /* OEM table identification */ 57 UINT32 OemRevision; /* OEM revision number */ 58 char CreatorId[4]; /* Table creator vendor Id */ 59 UINT32 CreatorRevision; /* Table creator utility revision no */ 60 UINT8 Reserved[8]; /* Reserved */ 61 /* List of memory mapped cfg base address allocation structures */ 62 CFG_BASE_ADDR_ALLOC CfgBaseAddrAllocList[1]; 63 } MCFG_TABLE; 64 65 #pragma pack() 66 67 #ifdef __cplusplus 68 } 69 #endif 70 71 #endif /* _ACPI_PCI_H */ 72