Files
kernel_arpi/include/linux/android_vendor.h
Todd Kjos 6f753c7277 ANDROID: fix copyright notice
New vendor hook files cite Google, Inc instead of Google LLC

Fixes: 7f62740112 ("ANDROID: add support for vendor hooks")
Signed-off-by: Todd Kjos <tkjos@google.com>
[cherry-pick of just android_vendor.h portion]
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If42762c4bbe6d0a7ff1cc75b64a3b224902e121c
2020-07-07 14:39:52 +02:00

33 lines
1.0 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* android_vendor.h - Android vendor data
*
* Copyright 2020 Google LLC
*
* These macros are to be used to reserve space in kernel data structures
* for use by vendor modules.
*
* These macros should be used before the kernel abi is "frozen".
* Fields can be added to various kernel structures that need space
* for functionality implemented in vendor modules. The use of
* these fields is vendor specific.
*/
#ifndef _ANDROID_VENDOR_H
#define _ANDROID_VENDOR_H
/*
* ANDROID_VENDOR_DATA
* Reserve some "padding" in a structure for potential future use.
* This normally placed at the end of a structure.
* number: the "number" of the padding variable in the structure. Start with
* 1 and go up.
*
* ANDROID_VENDOR_DATA_ARRAY
* Same as ANDROID_VENDOR_DATA but allocates an array of u64 with
* the specified size
*/
#define ANDROID_VENDOR_DATA(n) u64 android_vendor_data##n
#define ANDROID_VENDOR_DATA_ARRAY(n, s) u64 android_vendor_data##n[s]
#endif /* _ANDROID_VENDOR_H */