apple-properties.c (b19efcabb587e5470a423ef778905f47e5a47f1a) | apple-properties.c (3b9274ea1c0279b369212ccd440c9d61efdfa562) |
---|---|
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 * Note, all properties are considered as u8 arrays. 7 * To get a value of any of them the caller must use device_property_read_u8_array(). 8 */ --- 17 unchanged lines hidden (view full) --- 26 return 0; 27} 28 29__setup("dump_apple_properties", dump_properties_enable); 30 31struct dev_header { 32 u32 len; 33 u32 prop_count; | 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 * Note, all properties are considered as u8 arrays. 7 * To get a value of any of them the caller must use device_property_read_u8_array(). 8 */ --- 17 unchanged lines hidden (view full) --- 26 return 0; 27} 28 29__setup("dump_apple_properties", dump_properties_enable); 30 31struct dev_header { 32 u32 len; 33 u32 prop_count; |
34 struct efi_dev_path path[0]; | 34 struct efi_dev_path path[]; |
35 /* 36 * followed by key/value pairs, each key and value preceded by u32 len, 37 * len includes itself, value may be empty (in which case its len is 4) 38 */ 39}; 40 41struct properties_header { 42 u32 len; 43 u32 version; 44 u32 dev_count; | 35 /* 36 * followed by key/value pairs, each key and value preceded by u32 len, 37 * len includes itself, value may be empty (in which case its len is 4) 38 */ 39}; 40 41struct properties_header { 42 u32 len; 43 u32 version; 44 u32 dev_count; |
45 struct dev_header dev_header[0]; | 45 struct dev_header dev_header[]; |
46}; 47 48static void __init unmarshal_key_value_pairs(struct dev_header *dev_header, 49 struct device *dev, void *ptr, 50 struct property_entry entry[]) 51{ 52 int i; 53 --- 179 unchanged lines hidden --- | 46}; 47 48static void __init unmarshal_key_value_pairs(struct dev_header *dev_header, 49 struct device *dev, void *ptr, 50 struct property_entry entry[]) 51{ 52 int i; 53 --- 179 unchanged lines hidden --- |