Deleted Added
full compact
acpi_video.c (197648) acpi_video.c (199337)
1/*-
2 * Copyright (c) 2002-2003 Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
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

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

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: acpi_vid.c,v 1.4 2003/10/13 10:07:36 taku Exp $
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2003 Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
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

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

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: acpi_vid.c,v 1.4 2003/10/13 10:07:36 taku Exp $
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_video.c 197648 2009-09-30 17:05:26Z jhb $");
30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_video.c 199337 2009-11-16 21:47:12Z jkim $");
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37#include <sys/power.h>
38#include <sys/queue.h>

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

834 argset.count = res->Package.Count;
835 goto out;
836 }
837 argset.callback = callback;
838 argset.context = context;
839 argset.dod_pkg = res;
840 argset.count = 0;
841 status = AcpiWalkNamespace(ACPI_TYPE_DEVICE, handle, 1,
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37#include <sys/power.h>
38#include <sys/queue.h>

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

834 argset.count = res->Package.Count;
835 goto out;
836 }
837 argset.callback = callback;
838 argset.context = context;
839 argset.dod_pkg = res;
840 argset.count = 0;
841 status = AcpiWalkNamespace(ACPI_TYPE_DEVICE, handle, 1,
842 vid_enum_outputs_subr, &argset, NULL);
842 vid_enum_outputs_subr, NULL, &argset, NULL);
843 if (ACPI_FAILURE(status))
844 printf("failed walking down %s - %s\n",
845 acpi_name(handle), AcpiFormatException(status));
846out:
847 if (dod_buf.Pointer != NULL)
848 AcpiOsFree(dod_buf.Pointer);
849 return (argset.count);
850}

--- 106 unchanged lines hidden ---
843 if (ACPI_FAILURE(status))
844 printf("failed walking down %s - %s\n",
845 acpi_name(handle), AcpiFormatException(status));
846out:
847 if (dod_buf.Pointer != NULL)
848 AcpiOsFree(dod_buf.Pointer);
849 return (argset.count);
850}

--- 106 unchanged lines hidden ---