acpi_pcibvar.h revision 138033
1102447Sjhb/*- 2102447Sjhb * Copyright (c) 2000 Michael Smith 3102447Sjhb * Copyright (c) 2000 BSDi 4102447Sjhb * All rights reserved. 5102447Sjhb * 6102447Sjhb * Redistribution and use in source and binary forms, with or without 7102447Sjhb * modification, are permitted provided that the following conditions 8102447Sjhb * are met: 9102447Sjhb * 1. Redistributions of source code must retain the above copyright 10102447Sjhb * notice, this list of conditions and the following disclaimer. 11102447Sjhb * 2. Redistributions in binary form must reproduce the above copyright 12102447Sjhb * notice, this list of conditions and the following disclaimer in the 13102447Sjhb * documentation and/or other materials provided with the distribution. 14102447Sjhb * 15102447Sjhb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16102447Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17102447Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18102447Sjhb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19102447Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20102447Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21102447Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22102447Sjhb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23102447Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24102447Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25102447Sjhb * SUCH DAMAGE. 26102447Sjhb * 27102447Sjhb * $FreeBSD: head/sys/dev/acpica/acpi_pcibvar.h 138033 2004-11-23 22:26:44Z jhb $ 28102447Sjhb */ 29102447Sjhb 30102447Sjhb#ifndef _ACPI_PCIBVAR_H_ 31102447Sjhb#define _ACPI_PCIBVAR_H_ 32102447Sjhb 33102447Sjhbint acpi_pcib_attach(device_t bus, ACPI_BUFFER *prt, int busno); 34138033Sjhbint acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin, 35138033Sjhb ACPI_BUFFER *prtbuf); 36133500Snjlint acpi_pcib_resume(device_t dev); 37102447Sjhb 38133500Snjl#define MAX_POSSIBLE_INTERRUPTS 16 39133500Snjl#define MAX_ISA_INTERRUPTS 16 40133500Snjl#define MAX_ACPI_INTERRUPTS 255 41133500Snjl 42138033Sjhbvoid acpi_pci_link_add_reference(device_t dev, int index, device_t pcib, 43138033Sjhb int slot, int pin); 44138033Sjhbint acpi_pci_link_route_interrupt(device_t dev, int index); 45133500Snjl 46102447Sjhb#endif 47