Deleted Added
full compact
acpiconf.c (170976) acpiconf.c (193531)
1/*-
2 * Copyright (c) 1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: acpiconf.c,v 1.5 2000/08/08 14:12:19 iwasaki Exp $
1/*-
2 * Copyright (c) 1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: acpiconf.c,v 1.5 2000/08/08 14:12:19 iwasaki Exp $
27 * $FreeBSD: head/usr.sbin/acpi/acpiconf/acpiconf.c 170976 2007-06-21 22:50:37Z njl $
27 * $FreeBSD: head/usr.sbin/acpi/acpiconf/acpiconf.c 193531 2009-06-05 18:50:45Z jkim $
28 */
29
30#include <sys/param.h>
31
32#include <err.h>
33#include <fcntl.h>
34#include <stdio.h>
35#include <sys/ioctl.h>
36#include <sysexits.h>
37#include <unistd.h>
38
39#include <dev/acpica/acpiio.h>
28 */
29
30#include <sys/param.h>
31
32#include <err.h>
33#include <fcntl.h>
34#include <stdio.h>
35#include <sys/ioctl.h>
36#include <sysexits.h>
37#include <unistd.h>
38
39#include <dev/acpica/acpiio.h>
40#include <contrib/dev/acpica/acpi.h>
41
40
41#include <contrib/dev/acpica/include/acpi.h>
42
42#define ACPIDEV "/dev/acpi"
43
44static int acpifd;
45
46static void
47acpi_init(void)
48{
49 acpifd = open(ACPIDEV, O_RDWR);

--- 178 unchanged lines hidden ---
43#define ACPIDEV "/dev/acpi"
44
45static int acpifd;
46
47static void
48acpi_init(void)
49{
50 acpifd = open(ACPIDEV, O_RDWR);

--- 178 unchanged lines hidden ---