ixgbe_osdep.c revision 73cd555c10e70dac413ae4b40de8450a291750ac
1N/A/*
1N/A * CDDL HEADER START
1N/A *
1N/A * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
1N/A * The contents of this file are subject to the terms of the
1N/A * Common Development and Distribution License (the "License").
1N/A * You may not use this file except in compliance with the License.
1N/A *
1N/A * You can obtain a copy of the license at:
1N/A * http://www.opensolaris.org/os/licensing.
1N/A * See the License for the specific language governing permissions
1N/A * and limitations under the License.
1N/A *
1N/A * When using or redistributing this file, you may do so under the
1N/A * License only. No other modification of this header is permitted.
1N/A *
1N/A * If applicable, add the following below this CDDL HEADER, with the
1N/A * fields enclosed by brackets "[]" replaced with your own identifying
1N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1N/A *
1N/A * CDDL HEADER END
1N/A */
1N/A
1N/A/*
1N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1N/A * Use is subject to license terms.
1N/A */
1N/A
1N/A#include "ixgbe_osdep.h"
1N/A#include "ixgbe_api.h"
1N/A
1N/Auint16_t
1N/Aixgbe_read_pci_cfg(struct ixgbe_hw *hw, uint32_t reg)
1N/A{
1N/A return (pci_config_get16(OS_DEP(hw)->cfg_handle, reg));
1N/A}
1N/A
1N/Avoid
1N/Aixgbe_write_pci_cfg(struct ixgbe_hw *hw, uint32_t reg, uint32_t val)
1N/A{
1N/A pci_config_put16(OS_DEP(hw)->cfg_handle, reg, val);
1N/A}
1N/A