1/*- 2 * Copyright (c) 2000 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * Copyright (c) 2000, 2001 Michael Smith 5 * Copyright (c) 2000 BSDi 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/acpica/acpi.c 83366 2001-09-12 08:38:13Z julian $ |
30 */ 31 32#include "opt_acpi.h" 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/proc.h> 36#include <sys/lock.h> 37#include <sys/malloc.h> --- 1547 unchanged lines hidden (view full) --- 1585 1586 if (hp != NULL) { 1587 TAILQ_REMOVE(&acpi_ioctl_hooks, hp, link); 1588 free(hp, M_ACPIDEV); 1589 } 1590} 1591 1592static int |
1593acpiopen(dev_t dev, int flag, int fmt, struct thread *td) |
1594{ 1595 return(0); 1596} 1597 1598static int |
1599acpiclose(dev_t dev, int flag, int fmt, struct thread *td) |
1600{ 1601 return(0); 1602} 1603 1604static int |
1605acpiioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) |
1606{ 1607 struct acpi_softc *sc; 1608 struct acpi_ioctl_hook *hp; 1609 int error, xerror, state; 1610 1611 ACPI_LOCK; 1612 1613 error = state = 0; --- 218 unchanged lines hidden --- |