acpi_pci.h revision 1.13
11.13Sjmcneill/* $NetBSD: acpi_pci.h,v 1.13 2022/10/14 22:10:15 jmcneill Exp $ */ 21.1Scegger 31.1Scegger/* 41.1Scegger * Copyright (c) 2009 The NetBSD Foundation, Inc. 51.1Scegger * All rights reserved. 61.1Scegger * 71.1Scegger * This code is derived from software contributed to The NetBSD Foundation 81.1Scegger * by Christoph Egger. 91.1Scegger * 101.1Scegger * Redistribution and use in source and binary forms, with or without 111.1Scegger * modification, are permitted provided that the following conditions 121.1Scegger * are met: 131.1Scegger * 1. Redistributions of source code must retain the above copyright 141.1Scegger * notice, this list of conditions and the following disclaimer. 151.1Scegger * 2. The name of the author may not be used to endorse or promote products 161.1Scegger * derived from this software without specific prior written permission. 171.1Scegger * 181.1Scegger * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 191.1Scegger * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 201.1Scegger * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 211.1Scegger * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 221.1Scegger * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 231.1Scegger * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 241.1Scegger * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 251.1Scegger * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 261.1Scegger * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 271.1Scegger * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 281.1Scegger * SUCH DAMAGE. 291.1Scegger */ 301.1Scegger 311.1Scegger#ifndef _SYS_DEV_ACPI_ACPI_PCI_H 321.1Scegger#define _SYS_DEV_ACPI_ACPI_PCI_H 331.1Scegger 341.6SjruohoACPI_STATUS acpi_pcidev_scan(struct acpi_devnode *); 351.12SjmcneillACPI_STATUS acpi_pcidev_pciroot_bus(ACPI_HANDLE, uint16_t *); 361.11SjmcneillACPI_STATUS acpi_pcidev_ppb_downbus(pci_chipset_tag_t, 371.11Sjmcneill uint16_t, uint16_t, uint16_t, 381.7Sjruoho uint16_t, uint16_t *); 391.6Sjruohostruct acpi_devnode *acpi_pcidev_find(uint16_t, uint16_t, 401.6Sjruoho uint16_t, uint16_t); 411.11Sjmcneillpci_chipset_tag_t acpi_pcidev_get_tag(uint16_t, uint16_t, 421.11Sjmcneill uint16_t, uint16_t); 431.8Sjruohodevice_t acpi_pcidev_find_dev(struct acpi_devnode *); 441.9Sjmcneillstruct acpi_devnode *acpi_pciroot_find(uint16_t, uint16_t); 451.1Scegger 461.3Sjruoho#endif /* !_SYS_DEV_ACPI_ACPI_PCI_H */ 47