1139790Simp/*-
2203884Smarcel * Copyright (c) 2010 Marcel Moolenaar <marcel@FreeBSD.org>
384124Sdfr * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
484124Sdfr * All rights reserved.
584124Sdfr *
684124Sdfr * Redistribution and use in source and binary forms, with or without
784124Sdfr * modification, are permitted provided that the following conditions
884124Sdfr * are met:
984124Sdfr * 1. Redistributions of source code must retain the above copyright
1084124Sdfr *    notice unmodified, this list of conditions, and the following
1184124Sdfr *    disclaimer.
1284124Sdfr * 2. Redistributions in binary form must reproduce the above copyright
1384124Sdfr *    notice, this list of conditions and the following disclaimer in the
1484124Sdfr *    documentation and/or other materials provided with the distribution.
1584124Sdfr *
1684124Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1784124Sdfr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1884124Sdfr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1984124Sdfr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2084124Sdfr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2184124Sdfr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2284124Sdfr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2384124Sdfr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2484124Sdfr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2584124Sdfr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2684124Sdfr *
2784124Sdfr * $FreeBSD$
2884124Sdfr */
2984124Sdfr
30203884Smarcel#ifndef _MACHINE_PCI_CFGREG_H_
31203884Smarcel#define	_MACHINE_PCI_CFGREG_H_
32203884Smarcel
33203884Smarcelint	pci_cfgregopen(void);
34203884Smarceluint32_t pci_cfgregread(int bus, int slot, int func, int reg, int len);
35203884Smarcelvoid	pci_cfgregwrite(int bus, int slot, int func, int reg, uint32_t data,
36203884Smarcel    int bytes);
37203884Smarcel
38203884Smarcel#endif /* _MACHINE_PCI_CFGREG_H_ */
39