forked from MIrrors/gasket-driver
Now that the SPDX tag is in all gasket files, that identifies the license in a specific and legally-defined manner. So the extra GPL text wording can be removed as it is no longer needed at all. This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text. And there's unneeded stuff like the address (sometimes incorrect) for the FSF which is never needed. Cc: Rob Springer <rspringer@google.com> Cc: John Joseph <jnjoseph@google.com> Cc: Ben Chan <benchan@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2018 Google, Inc. */
|
|
#ifndef __GASKET_CONSTANTS_H__
|
|
#define __GASKET_CONSTANTS_H__
|
|
|
|
#define GASKET_FRAMEWORK_VERSION "1.1.1"
|
|
|
|
/*
|
|
* The maximum number of simultaneous device types supported by the framework.
|
|
*/
|
|
#define GASKET_FRAMEWORK_DESC_MAX 2
|
|
|
|
/* The maximum devices per each type. */
|
|
#define GASKET_DEV_MAX 256
|
|
|
|
/* The number of supported (and possible) PCI BARs. */
|
|
#define GASKET_NUM_BARS 6
|
|
|
|
/* The number of supported Gasket page tables per device. */
|
|
#define GASKET_MAX_NUM_PAGE_TABLES 1
|
|
|
|
/* Maximum length of device names (driver name + minor number suffix + NULL). */
|
|
#define GASKET_NAME_MAX 32
|
|
|
|
/* Device status enumeration. */
|
|
enum gasket_status {
|
|
/*
|
|
* A device is DEAD if it has not been initialized or has had an error.
|
|
*/
|
|
GASKET_STATUS_DEAD = 0,
|
|
/*
|
|
* A device is LAMED if the hardware is healthy but the kernel was
|
|
* unable to enable some functionality (e.g. interrupts).
|
|
*/
|
|
GASKET_STATUS_LAMED,
|
|
|
|
/* A device is ALIVE if it is ready for operation. */
|
|
GASKET_STATUS_ALIVE,
|
|
|
|
/*
|
|
* This status is set when the driver is exiting and waiting for all
|
|
* handles to be closed.
|
|
*/
|
|
GASKET_STATUS_DRIVER_EXIT,
|
|
};
|
|
|
|
#endif
|