xref: /freebsd/sys/arm64/include/pci_cfgreg.h (revision 1587a9db92c03c738bb3f0fc5874b43c961e7c99)
1e7c14c38SZbigniew Bodek /*-
2e7c14c38SZbigniew Bodek  * Copyright (c) 2015 The FreeBSD Foundation
3e7c14c38SZbigniew Bodek  *
4e7c14c38SZbigniew Bodek  * Redistribution and use in source and binary forms, with or without
5e7c14c38SZbigniew Bodek  * modification, are permitted provided that the following conditions
6e7c14c38SZbigniew Bodek  * are met:
7e7c14c38SZbigniew Bodek  * 1. Redistributions of source code must retain the above copyright
8e7c14c38SZbigniew Bodek  * notice, this list of conditions and the following disclaimer.
9e7c14c38SZbigniew Bodek  * 2. Redistributions in binary form must reproduce the above copyright
10e7c14c38SZbigniew Bodek  * notice, this list of conditions and the following disclaimer in the
11e7c14c38SZbigniew Bodek  * documentation and/or other materials provided with the distribution.
12e7c14c38SZbigniew Bodek  *
13e7c14c38SZbigniew Bodek  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14e7c14c38SZbigniew Bodek  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15e7c14c38SZbigniew Bodek  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16e7c14c38SZbigniew Bodek  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17e7c14c38SZbigniew Bodek  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18e7c14c38SZbigniew Bodek  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19e7c14c38SZbigniew Bodek  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20e7c14c38SZbigniew Bodek  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21e7c14c38SZbigniew Bodek  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22e7c14c38SZbigniew Bodek  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23e7c14c38SZbigniew Bodek  * SUCH DAMAGE.
24e7c14c38SZbigniew Bodek  */
25e7c14c38SZbigniew Bodek 
26e7c14c38SZbigniew Bodek #ifndef _MACHINE_PCI_CFGREG_H
27e7c14c38SZbigniew Bodek #define	_MACHINE_PCI_CFGREG_H
28e7c14c38SZbigniew Bodek 
29e7c14c38SZbigniew Bodek int pci_cfgregopen(void);
30*1587a9dbSJohn Baldwin uint32_t pci_cfgregread(int, int, int, int, int, int);
31*1587a9dbSJohn Baldwin void pci_cfgregwrite(int, int, int, int, int, uint32_t, int);
32e7c14c38SZbigniew Bodek 
33e7c14c38SZbigniew Bodek #endif /* !_MACHINE_PCI_CFGREG_H */
34