pci_cfgacc_4v.c revision c0da627439dfb642fb41ab7d78406fc69d2c64b2
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* 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
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Common PCI configuration space access routines
*/
#include <sys/sysmacros.h>
#include <sys/pcie_impl.h>
#include <sys/pci_cfgacc_4v.h>
/* RC BDF Shift in a Phyiscal Address */
#define RC_RA_BDF_SHIFT 8
static boolean_t
{
/* do not support 64 bit pci config space access */
}
/*
*/
static uint64_t
{
return ((uint64_t)-1);
return (data);
}
static void
{
pci_cfg_data_t wdata = { 0 };
return;
}
void
{
/* is request valid? */
if (!pci_cfgacc_valid(req)) {
return;
}
} else {
case 1:
break;
case 2:
break;
case 4:
break;
default:
break;
}
}
}