xref: /freebsd/sys/dev/acpica/acpi_pcibvar.h (revision ba1904937d9ae0539e39001467a1519b17177118)
12ccfc932SJohn Baldwin /*-
22ccfc932SJohn Baldwin  * Copyright (c) 2000 Michael Smith
32ccfc932SJohn Baldwin  * Copyright (c) 2000 BSDi
42ccfc932SJohn Baldwin  * All rights reserved.
52ccfc932SJohn Baldwin  *
62ccfc932SJohn Baldwin  * Redistribution and use in source and binary forms, with or without
72ccfc932SJohn Baldwin  * modification, are permitted provided that the following conditions
82ccfc932SJohn Baldwin  * are met:
92ccfc932SJohn Baldwin  * 1. Redistributions of source code must retain the above copyright
102ccfc932SJohn Baldwin  *    notice, this list of conditions and the following disclaimer.
112ccfc932SJohn Baldwin  * 2. Redistributions in binary form must reproduce the above copyright
122ccfc932SJohn Baldwin  *    notice, this list of conditions and the following disclaimer in the
132ccfc932SJohn Baldwin  *    documentation and/or other materials provided with the distribution.
142ccfc932SJohn Baldwin  *
152ccfc932SJohn Baldwin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
162ccfc932SJohn Baldwin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
172ccfc932SJohn Baldwin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
182ccfc932SJohn Baldwin  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
192ccfc932SJohn Baldwin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
202ccfc932SJohn Baldwin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
212ccfc932SJohn Baldwin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
222ccfc932SJohn Baldwin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
232ccfc932SJohn Baldwin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
242ccfc932SJohn Baldwin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
252ccfc932SJohn Baldwin  * SUCH DAMAGE.
262ccfc932SJohn Baldwin  */
272ccfc932SJohn Baldwin 
282ccfc932SJohn Baldwin #ifndef	_ACPI_PCIBVAR_H_
292ccfc932SJohn Baldwin #define	_ACPI_PCIBVAR_H_
302ccfc932SJohn Baldwin 
31a885159fSNate Lawson #ifdef _KERNEL
327d23a9b3SJohn Baldwin 
332dacd5d4SJohn Baldwin void	acpi_pci_link_add_reference(device_t dev, int index, device_t pcib,
342dacd5d4SJohn Baldwin     int slot, int pin);
352dacd5d4SJohn Baldwin int	acpi_pci_link_route_interrupt(device_t dev, int index);
3667e7d085SJohn Baldwin void	acpi_pcib_fetch_prt(device_t bus, ACPI_BUFFER *prt);
378d791e5aSJohn Baldwin int	acpi_pcib_get_cpus(device_t pcib, device_t dev, enum cpu_sets op,
388d791e5aSJohn Baldwin     size_t setsize, cpuset_t *cpuset);
395e1ba6d4SJohn Baldwin int	acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
405e1ba6d4SJohn Baldwin     ACPI_BUFFER *prtbuf);
4162508c53SJohn Baldwin int	acpi_pcib_power_for_sleep(device_t pcib, device_t dev,
4262508c53SJohn Baldwin     int *pstate);
43*ba190493SAndrew Turner int	acpi_pcib_osc(device_t pcib, uint32_t *ap_osc_ctl, uint32_t osc_ctl);
447d23a9b3SJohn Baldwin 
45a885159fSNate Lawson #endif /* _KERNEL */
46e4116e93SNate Lawson 
47a885159fSNate Lawson #endif /* !_ACPI_PCIBVAR_H_ */
48