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 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYS_PCI_TYPES_H 28 #define _SYS_PCI_TYPES_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #define HI32(x) ((uint32_t)(((uint64_t)(x)) >> 32)) 37 #define LO32(x) ((uint32_t)(x)) 38 #define NAMEINST(dip) ddi_driver_name(dip), ddi_get_instance(dip) 39 #define NAMEADDR(dip) ddi_node_name(dip), ddi_get_name_addr(dip) 40 41 typedef uint16_t pci_ign_t; 42 typedef struct pci pci_t; 43 typedef struct pci_common pci_common_t; 44 typedef struct pci_errstate pci_errstate_t; 45 typedef struct iommu_errstate iommu_errstate_t; 46 typedef struct ecc_errstate ecc_errstate_t; 47 typedef struct pbm_errstate pbm_errstate_t; 48 typedef struct cb_errstate cb_errstate_t; 49 50 /* 51 * external global function prototypes 52 */ 53 extern int pf_is_memory(pfn_t); 54 extern void do_shutdown(); 55 extern void power_down(); 56 extern void set_intr_mapping_reg(int, uint64_t *, int); 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /* _SYS_PCI_TYPES_H */ 63