apple-properties.c (762f99f4f3cb41a775b5157dd761217beba65873) apple-properties.c (9feaf8b387ee0ece9c1d7add308776b502a35d0c)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * apple-properties.c - EFI device properties on Macs
4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de>
5 *
6 * Properties are stored either as:
7 * u8 arrays which can be retrieved with device_property_read_u8_array() or
8 * booleans which can be queried with device_property_present().

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

19#include <linux/ucs2_string.h>
20#include <asm/setup.h>
21
22static bool dump_properties __initdata;
23
24static int __init dump_properties_enable(char *arg)
25{
26 dump_properties = true;
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * apple-properties.c - EFI device properties on Macs
4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de>
5 *
6 * Properties are stored either as:
7 * u8 arrays which can be retrieved with device_property_read_u8_array() or
8 * booleans which can be queried with device_property_present().

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

19#include <linux/ucs2_string.h>
20#include <asm/setup.h>
21
22static bool dump_properties __initdata;
23
24static int __init dump_properties_enable(char *arg)
25{
26 dump_properties = true;
27 return 0;
27 return 1;
28}
29
30__setup("dump_apple_properties", dump_properties_enable);
31
32struct dev_header {
33 u32 len;
34 u32 prop_count;
35 struct efi_dev_path path[];

--- 202 unchanged lines hidden ---
28}
29
30__setup("dump_apple_properties", dump_properties_enable);
31
32struct dev_header {
33 u32 len;
34 u32 prop_count;
35 struct efi_dev_path path[];

--- 202 unchanged lines hidden ---