From 4496171313bed39e96f21bc2f9faf2868e267ae3 Mon Sep 17 00:00:00 2001 From: girish Date: Wed, 22 Nov 2006 11:47:19 -0800 Subject: FWARC/2006/175 MD definition for N2 CWQ FWARC/2006/201 sun4v error handling update FWARC/2006/425 NCS HV API Update 2 FWARC/2006/429 Niagara2 Perf Regs HV API FWARC/2006/474 pci io hv iommu attributes update FWARC/2006/481 Niagara-2 Random Number Generator API FWARC/2006/524 Niagara2 Network Interface Unit Hypervisor API FWARC/2006/556 NIU/SIU Device Tree Bindings and Machine Description Definitions FWARC/2006/567 Niagara Crypto & RNG compatible property update PSARC/2006/459 Huron 1u/2u Platform Support PSARC/2006/520 Niagara 2 Random Number Generator PSARC/2006/521 Niagara 2 Cryptographic Provider PSARC/2006/645 Niagara II NIU 10Gbit Ethernet Driver 6477049 ON support for UltraSPARC-T2 processor 6375797 Add support for SUN4V IOMMU extensions 6480942 Crypto support for UltraSPARC-T2 processor 6480959 NIU support for UltraSPARC-T2 processor 6483040 ON platform support for Huron (SPARC-Enterprise-T5120 & SPARC-Enterprise-T5220) --- usr/src/uts/common/sys/pci_impl.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'usr/src/uts/common/sys/pci_impl.h') diff --git a/usr/src/uts/common/sys/pci_impl.h b/usr/src/uts/common/sys/pci_impl.h index e5fb73d135..3e492e52ed 100644 --- a/usr/src/uts/common/sys/pci_impl.h +++ b/usr/src/uts/common/sys/pci_impl.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -123,6 +122,22 @@ extern int memlist_count(struct memlist *); #endif /* __i386 || __amd64 */ +/* + * Parent private data structure for PCI/PCI-X/PCIe devices. + */ +typedef struct pci_parent_data { + uint32_t pci_bdf; /* BDF for pci/pci-x/pcie */ + uint8_t pci_sec_bus; /* PCIE2PCI bridge's secondary bus */ + uint8_t pci_phfun; /* Phantom funs for pci-x/pcie */ +} pci_parent_data_t; + +#define PCI_GET_BDF(dip) \ + ((pci_parent_data_t *)DEVI((dip))->devi_parent_data)->pci_bdf +#define PCI_GET_SEC_BUS(dip) \ + ((pci_parent_data_t *)DEVI((dip))->devi_parent_data)->pci_sec_bus +#define PCI_GET_PHFUN(dip) \ + ((pci_parent_data_t *)DEVI((dip))->devi_parent_data)->pci_phfun + /* * PCI capability related definitions. */ -- cgit v1.2.3