1777Sschwartz /* 2777Sschwartz * CDDL HEADER START 3777Sschwartz * 4777Sschwartz * The contents of this file are subject to the terms of the 5*10923SEvan.Yan@Sun.COM * Common Development and Distribution License (the "License"). 6*10923SEvan.Yan@Sun.COM * You may not use this file except in compliance with the License. 7777Sschwartz * 8777Sschwartz * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9777Sschwartz * or http://www.opensolaris.org/os/licensing. 10777Sschwartz * See the License for the specific language governing permissions 11777Sschwartz * and limitations under the License. 12777Sschwartz * 13777Sschwartz * When distributing Covered Code, include this CDDL HEADER in each 14777Sschwartz * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15777Sschwartz * If applicable, add the following below this CDDL HEADER, with the 16777Sschwartz * fields enclosed by brackets "[]" replaced with your own identifying 17777Sschwartz * information: Portions Copyright [yyyy] [name of copyright owner] 18777Sschwartz * 19777Sschwartz * CDDL HEADER END 20777Sschwartz */ 21777Sschwartz /* 22*10923SEvan.Yan@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23777Sschwartz * Use is subject to license terms. 24777Sschwartz */ 25777Sschwartz 26777Sschwartz #ifndef _SYS_PCI_TOOLS_EXT_H 27777Sschwartz #define _SYS_PCI_TOOLS_EXT_H 28777Sschwartz 29777Sschwartz #ifdef __cplusplus 30777Sschwartz extern "C" { 31777Sschwartz #endif 32777Sschwartz 33777Sschwartz /* This file contains pcitool defs exported to other modules of a PCI driver. */ 34777Sschwartz 35777Sschwartz /* 36777Sschwartz * Functions exported from the pci_tools.c module. 37777Sschwartz */ 38777Sschwartz extern int pcitool_dev_reg_ops(dev_t dev, void *arg, int cmd, int mode); 39777Sschwartz extern int pcitool_bus_reg_ops(dev_t dev, void *arg, int cmd, int mode); 40777Sschwartz extern int pcitool_intr_admn(dev_t dev, void *arg, int cmd, int mode); 41777Sschwartz extern int pcitool_init(dev_info_t *dip); 42777Sschwartz extern void pcitool_uninit(dev_info_t *dip); 43777Sschwartz 44777Sschwartz #ifdef __cplusplus 45777Sschwartz } 46777Sschwartz #endif 47777Sschwartz 48777Sschwartz #endif /* _SYS_PCI_TOOLS_EXT_H */ 49