19da57d7bSbt150084 /*
29da57d7bSbt150084 * CDDL HEADER START
39da57d7bSbt150084 *
4*73cd555cSBin Tu - Sun Microsystems - Beijing China * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
59da57d7bSbt150084 * The contents of this file are subject to the terms of the
69da57d7bSbt150084 * Common Development and Distribution License (the "License").
79da57d7bSbt150084 * You may not use this file except in compliance with the License.
89da57d7bSbt150084 *
99da57d7bSbt150084 * You can obtain a copy of the license at:
109da57d7bSbt150084 * http://www.opensolaris.org/os/licensing.
119da57d7bSbt150084 * See the License for the specific language governing permissions
129da57d7bSbt150084 * and limitations under the License.
139da57d7bSbt150084 *
149da57d7bSbt150084 * When using or redistributing this file, you may do so under the
159da57d7bSbt150084 * License only. No other modification of this header is permitted.
169da57d7bSbt150084 *
179da57d7bSbt150084 * If applicable, add the following below this CDDL HEADER, with the
189da57d7bSbt150084 * fields enclosed by brackets "[]" replaced with your own identifying
199da57d7bSbt150084 * information: Portions Copyright [yyyy] [name of copyright owner]
209da57d7bSbt150084 *
219da57d7bSbt150084 * CDDL HEADER END
229da57d7bSbt150084 */
239da57d7bSbt150084
249da57d7bSbt150084 /*
25*73cd555cSBin Tu - Sun Microsystems - Beijing China * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26*73cd555cSBin Tu - Sun Microsystems - Beijing China * Use is subject to license terms.
279da57d7bSbt150084 */
289da57d7bSbt150084
299da57d7bSbt150084 #include "ixgbe_osdep.h"
309da57d7bSbt150084 #include "ixgbe_api.h"
319da57d7bSbt150084
329da57d7bSbt150084 uint16_t
ixgbe_read_pci_cfg(struct ixgbe_hw * hw,uint32_t reg)339da57d7bSbt150084 ixgbe_read_pci_cfg(struct ixgbe_hw *hw, uint32_t reg)
349da57d7bSbt150084 {
359da57d7bSbt150084 return (pci_config_get16(OS_DEP(hw)->cfg_handle, reg));
369da57d7bSbt150084 }
37*73cd555cSBin Tu - Sun Microsystems - Beijing China
38*73cd555cSBin Tu - Sun Microsystems - Beijing China void
ixgbe_write_pci_cfg(struct ixgbe_hw * hw,uint32_t reg,uint32_t val)39*73cd555cSBin Tu - Sun Microsystems - Beijing China ixgbe_write_pci_cfg(struct ixgbe_hw *hw, uint32_t reg, uint32_t val)
40*73cd555cSBin Tu - Sun Microsystems - Beijing China {
41*73cd555cSBin Tu - Sun Microsystems - Beijing China pci_config_put16(OS_DEP(hw)->cfg_handle, reg, val);
42*73cd555cSBin Tu - Sun Microsystems - Beijing China }
43