/*
* 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.
*/
#include <sys/sysmacros.h>
#include <sys/hypervisor_api.h>
#include <sys/pci_cfgacc.h>
#include <sys/pci_cfgacc_4v.h>
#include <px_obj.h>
#include <sys/machsystm.h>
#include "px_lib4v.h"
#define MPS_SET 0
int op);
{
}
{
}
{
int deadcount = 0;
return (H_ENOACCESS);
return (H_ENOACCESS);
return (H_ENOACCESS);
return (H_ENOACCESS);
(pci_cfg_data_t *)&hdr);
hdr_cap_id = 0;
while ((hdr_next_ptr != PCI_CAP_NEXT_PTR_NULL) &&
(hdr_cap_id != PCI_CAP_ID_PCI_E)) {
if (hdr_next_ptr < 0x40)
break;
(pci_cfg_data_t *)&hdr);
if (deadcount++ > 100)
break;
}
if (hdr_cap_id != PCI_CAP_ID_PCI_E)
return (H_ENOACCESS);
/* Write the MPS */
4, dataw);
} else {
/* Read the MPS Capabilities */
}
return (H_EOK);
}