License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2016-05-19 23:22:55 +00:00
|
|
|
#ifndef __NOUVEAU_DRV_H__
|
|
|
|
#define __NOUVEAU_DRV_H__
|
2012-07-06 02:14:00 +00:00
|
|
|
|
2012-07-31 06:16:21 +00:00
|
|
|
#define DRIVER_AUTHOR "Nouveau Project"
|
|
|
|
#define DRIVER_EMAIL "nouveau@lists.freedesktop.org"
|
|
|
|
|
|
|
|
#define DRIVER_NAME "nouveau"
|
2017-10-31 17:56:19 +00:00
|
|
|
#define DRIVER_DESC "nVidia Riva/TNT/GeForce/Quadro/Tesla/Tegra K1+"
|
2012-07-31 06:16:21 +00:00
|
|
|
#define DRIVER_DATE "20120801"
|
|
|
|
|
|
|
|
#define DRIVER_MAJOR 1
|
2015-08-20 04:54:23 +00:00
|
|
|
#define DRIVER_MINOR 3
|
2015-11-03 02:40:13 +00:00
|
|
|
#define DRIVER_PATCHLEVEL 1
|
2013-03-27 21:25:52 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 1.1.1:
|
|
|
|
* - added support for tiled system memory buffer objects
|
|
|
|
* - added support for NOUVEAU_GETPARAM_GRAPH_UNITS on [nvc0,nve0].
|
|
|
|
* - added support for compressed memory storage types on [nvc0,nve0].
|
|
|
|
* - added support for software methods 0x600,0x644,0x6ac on nvc0
|
|
|
|
* to control registers on the MPs to enable performance counters,
|
|
|
|
* and to control the warp error enable mask (OpenGL requires out of
|
|
|
|
* bounds access to local memory to be silently ignored / return 0).
|
2014-08-06 04:09:44 +00:00
|
|
|
* 1.1.2:
|
|
|
|
* - fixes multiple bugs in flip completion events and timestamping
|
2014-08-09 18:10:31 +00:00
|
|
|
* 1.2.0:
|
|
|
|
* - object api exposed to userspace
|
|
|
|
* - fermi,kepler,maxwell zbc
|
2014-09-10 14:15:23 +00:00
|
|
|
* 1.2.1:
|
|
|
|
* - allow concurrent access to bo's mapped read/write.
|
2015-03-04 00:17:08 +00:00
|
|
|
* 1.2.2:
|
|
|
|
* - add NOUVEAU_GEM_DOMAIN_COHERENT flag
|
2015-08-20 04:54:23 +00:00
|
|
|
* 1.3.0:
|
|
|
|
* - NVIF ABI modified, safe because only (current) users are test
|
|
|
|
* programs that get directly linked with NVKM.
|
2015-11-03 02:40:13 +00:00
|
|
|
* 1.3.1:
|
|
|
|
* - implemented limited ABI16/NVIF interop
|
2013-03-27 21:25:52 +00:00
|
|
|
*/
|
2012-07-31 06:16:21 +00:00
|
|
|
|
2016-11-09 17:17:44 +00:00
|
|
|
#include <linux/notifier.h>
|
|
|
|
|
2014-08-09 18:10:22 +00:00
|
|
|
#include <nvif/client.h>
|
|
|
|
#include <nvif/device.h>
|
2015-11-24 05:34:51 +00:00
|
|
|
#include <nvif/ioctl.h>
|
2017-10-31 17:56:19 +00:00
|
|
|
#include <nvif/mmu.h>
|
2017-10-31 17:56:20 +00:00
|
|
|
#include <nvif/vmm.h>
|
2014-08-09 18:10:22 +00:00
|
|
|
|
2017-04-24 04:50:29 +00:00
|
|
|
#include <drm/drmP.h>
|
2012-07-06 02:14:00 +00:00
|
|
|
|
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
Pull drm merge (part 1) from Dave Airlie:
"So first of all my tree and uapi stuff has a conflict mess, its my
fault as the nouveau stuff didn't hit -next as were trying to rebase
regressions out of it before we merged.
Highlights:
- SH mobile modesetting driver and associated helpers
- some DRM core documentation
- i915 modesetting rework, haswell hdmi, haswell and vlv fixes, write
combined pte writing, ilk rc6 support,
- nouveau: major driver rework into a hw core driver, makes features
like SLI a lot saner to implement,
- psb: add eDP/DP support for Cedarview
- radeon: 2 layer page tables, async VM pte updates, better PLL
selection for > 2 screens, better ACPI interactions
The rest is general grab bag of fixes.
So why part 1? well I have the exynos pull req which came in a bit
late but was waiting for me to do something they shouldn't have and it
looks fairly safe, and David Howells has some more header cleanups
he'd like me to pull, that seem like a good idea, but I'd like to get
this merge out of the way so -next dosen't get blocked."
Tons of conflicts mostly due to silly include line changes, but mostly
mindless. A few other small semantic conflicts too, noted from Dave's
pre-merged branch.
* 'drm-next' of git://people.freedesktop.org/~airlied/linux: (447 commits)
drm/nv98/crypt: fix fuc build with latest envyas
drm/nouveau/devinit: fixup various issues with subdev ctor/init ordering
drm/nv41/vm: fix and enable use of "real" pciegart
drm/nv44/vm: fix and enable use of "real" pciegart
drm/nv04/dmaobj: fixup vm target handling in preparation for nv4x pcie
drm/nouveau: store supported dma mask in vmmgr
drm/nvc0/ibus: initial implementation of subdev
drm/nouveau/therm: add support for fan-control modes
drm/nouveau/hwmon: rename pwm0* to pmw1* to follow hwmon's rules
drm/nouveau/therm: calculate the pwm divisor on nv50+
drm/nouveau/fan: rewrite the fan tachometer driver to get more precision, faster
drm/nouveau/therm: move thermal-related functions to the therm subdev
drm/nouveau/bios: parse the pwm divisor from the perf table
drm/nouveau/therm: use the EXTDEV table to detect i2c monitoring devices
drm/nouveau/therm: rework thermal table parsing
drm/nouveau/gpio: expose the PWM/TOGGLE parameter found in the gpio vbios table
drm/nouveau: fix pm initialization order
drm/nouveau/bios: check that fixed tvdac gpio data is valid before using it
drm/nouveau: log channel debug/error messages from client object rather than drm client
drm/nouveau: have drm debugging macros build on top of core macros
...
2012-10-04 06:29:23 +00:00
|
|
|
#include <drm/ttm/ttm_bo_api.h>
|
|
|
|
#include <drm/ttm/ttm_bo_driver.h>
|
|
|
|
#include <drm/ttm/ttm_placement.h>
|
|
|
|
#include <drm/ttm/ttm_memory.h>
|
|
|
|
#include <drm/ttm/ttm_module.h>
|
|
|
|
#include <drm/ttm/ttm_page_alloc.h>
|
2012-07-19 22:17:34 +00:00
|
|
|
|
2014-08-09 18:10:23 +00:00
|
|
|
#include "uapi/drm/nouveau_drm.h"
|
|
|
|
|
2012-07-19 22:17:34 +00:00
|
|
|
struct nouveau_channel;
|
2014-06-26 05:33:32 +00:00
|
|
|
struct platform_device;
|
2012-07-19 22:17:34 +00:00
|
|
|
|
|
|
|
#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
|
|
|
|
|
|
|
|
#include "nouveau_fence.h"
|
2012-07-31 06:16:21 +00:00
|
|
|
#include "nouveau_bios.h"
|
2017-10-31 17:56:19 +00:00
|
|
|
#include "nouveau_vmm.h"
|
2012-07-19 22:17:34 +00:00
|
|
|
|
|
|
|
struct nouveau_drm_tile {
|
|
|
|
struct nouveau_fence *fence;
|
|
|
|
bool used;
|
|
|
|
};
|
|
|
|
|
2014-08-09 18:10:22 +00:00
|
|
|
enum nouveau_drm_object_route {
|
2015-11-24 05:34:51 +00:00
|
|
|
NVDRM_OBJECT_NVIF = NVIF_IOCTL_V0_OWNER_NVIF,
|
2014-08-09 18:10:22 +00:00
|
|
|
NVDRM_OBJECT_USIF,
|
|
|
|
NVDRM_OBJECT_ABI16,
|
2015-11-24 05:34:51 +00:00
|
|
|
NVDRM_OBJECT_ANY = NVIF_IOCTL_V0_OWNER_ANY,
|
2014-08-09 18:10:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum nouveau_drm_notify_route {
|
|
|
|
NVDRM_NOTIFY_NVIF = 0,
|
|
|
|
NVDRM_NOTIFY_USIF
|
|
|
|
};
|
|
|
|
|
2012-07-06 02:14:00 +00:00
|
|
|
enum nouveau_drm_handle {
|
2013-10-15 01:52:56 +00:00
|
|
|
NVDRM_CHAN = 0xcccc0000, /* |= client chid */
|
2013-11-13 00:58:51 +00:00
|
|
|
NVDRM_NVSW = 0x55550000,
|
2012-07-06 02:14:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct nouveau_cli {
|
2014-08-09 18:10:22 +00:00
|
|
|
struct nvif_client base;
|
2017-10-31 17:56:19 +00:00
|
|
|
struct nouveau_drm *drm;
|
2016-05-18 03:36:34 +00:00
|
|
|
struct mutex mutex;
|
|
|
|
|
2016-05-18 03:57:42 +00:00
|
|
|
struct nvif_device device;
|
2017-10-31 17:56:19 +00:00
|
|
|
struct nvif_mmu mmu;
|
2017-10-31 17:56:19 +00:00
|
|
|
struct nouveau_vmm vmm;
|
2017-10-31 17:56:20 +00:00
|
|
|
const struct nvif_mclass *mem;
|
2016-05-18 03:57:42 +00:00
|
|
|
|
2012-07-06 02:14:00 +00:00
|
|
|
struct list_head head;
|
2012-07-19 22:17:34 +00:00
|
|
|
void *abi16;
|
2014-08-09 18:10:31 +00:00
|
|
|
struct list_head objects;
|
|
|
|
struct list_head notifys;
|
2015-08-20 04:54:13 +00:00
|
|
|
char name[32];
|
2017-10-31 17:56:19 +00:00
|
|
|
|
2017-10-31 17:56:20 +00:00
|
|
|
struct work_struct work;
|
|
|
|
struct list_head worker;
|
2017-10-31 17:56:19 +00:00
|
|
|
struct mutex lock;
|
2012-07-06 02:14:00 +00:00
|
|
|
};
|
|
|
|
|
2017-10-31 17:56:20 +00:00
|
|
|
struct nouveau_cli_work {
|
|
|
|
void (*func)(struct nouveau_cli_work *);
|
|
|
|
struct nouveau_cli *cli;
|
|
|
|
struct list_head head;
|
|
|
|
|
|
|
|
struct dma_fence *fence;
|
|
|
|
struct dma_fence_cb cb;
|
|
|
|
};
|
|
|
|
|
|
|
|
void nouveau_cli_work_queue(struct nouveau_cli *, struct dma_fence *,
|
|
|
|
struct nouveau_cli_work *);
|
|
|
|
|
2012-07-19 22:17:34 +00:00
|
|
|
static inline struct nouveau_cli *
|
|
|
|
nouveau_cli(struct drm_file *fpriv)
|
|
|
|
{
|
|
|
|
return fpriv ? fpriv->driver_priv : NULL;
|
|
|
|
}
|
|
|
|
|
2014-08-09 18:10:22 +00:00
|
|
|
#include <nvif/object.h>
|
|
|
|
#include <nvif/device.h>
|
2014-08-09 18:10:22 +00:00
|
|
|
|
2012-07-06 02:14:00 +00:00
|
|
|
struct nouveau_drm {
|
2017-10-31 17:56:19 +00:00
|
|
|
struct nouveau_cli master;
|
2012-07-06 02:14:00 +00:00
|
|
|
struct nouveau_cli client;
|
|
|
|
struct drm_device *dev;
|
|
|
|
|
|
|
|
struct list_head clients;
|
2012-07-11 00:44:20 +00:00
|
|
|
|
|
|
|
struct {
|
2015-08-20 04:54:23 +00:00
|
|
|
struct agp_bridge_data *bridge;
|
2012-07-11 00:44:20 +00:00
|
|
|
u32 base;
|
|
|
|
u32 size;
|
2015-08-20 04:54:23 +00:00
|
|
|
bool cma;
|
2012-07-11 00:44:20 +00:00
|
|
|
} agp;
|
2012-07-19 22:17:34 +00:00
|
|
|
|
|
|
|
/* TTM interface support */
|
|
|
|
struct {
|
|
|
|
struct drm_global_reference mem_global_ref;
|
|
|
|
struct ttm_bo_global_ref bo_global_ref;
|
|
|
|
struct ttm_bo_device bdev;
|
|
|
|
atomic_t validate_sequence;
|
|
|
|
int (*move)(struct nouveau_channel *,
|
|
|
|
struct ttm_buffer_object *,
|
|
|
|
struct ttm_mem_reg *, struct ttm_mem_reg *);
|
2013-07-08 00:40:35 +00:00
|
|
|
struct nouveau_channel *chan;
|
2014-08-09 18:10:22 +00:00
|
|
|
struct nvif_object copy;
|
2012-07-19 22:17:34 +00:00
|
|
|
int mtrr;
|
2017-10-31 17:56:20 +00:00
|
|
|
int type_vram;
|
|
|
|
int type_host;
|
|
|
|
int type_ncoh;
|
2012-07-19 22:17:34 +00:00
|
|
|
} ttm;
|
|
|
|
|
|
|
|
/* GEM interface support */
|
|
|
|
struct {
|
|
|
|
u64 vram_available;
|
|
|
|
u64 gart_available;
|
|
|
|
} gem;
|
|
|
|
|
|
|
|
/* synchronisation */
|
|
|
|
void *fence;
|
|
|
|
|
|
|
|
/* context for accelerated drm-internal operations */
|
2012-08-06 09:38:25 +00:00
|
|
|
struct nouveau_channel *cechan;
|
2012-07-19 22:17:34 +00:00
|
|
|
struct nouveau_channel *channel;
|
2015-01-14 05:36:34 +00:00
|
|
|
struct nvkm_gpuobj *notify;
|
2012-07-19 22:17:34 +00:00
|
|
|
struct nouveau_fbdev *fbcon;
|
2014-08-09 18:10:22 +00:00
|
|
|
struct nvif_object nvsw;
|
|
|
|
struct nvif_object ntfy;
|
2015-08-20 04:54:18 +00:00
|
|
|
struct nvif_notify flip;
|
2012-07-19 22:17:34 +00:00
|
|
|
|
|
|
|
/* nv10-nv40 tiling regions */
|
|
|
|
struct {
|
|
|
|
struct nouveau_drm_tile reg[15];
|
|
|
|
spinlock_t lock;
|
|
|
|
} tile;
|
2012-07-25 23:12:47 +00:00
|
|
|
|
2012-07-31 06:16:21 +00:00
|
|
|
/* modesetting */
|
|
|
|
struct nvbios vbios;
|
|
|
|
struct nouveau_display *display;
|
2012-07-25 23:12:47 +00:00
|
|
|
struct backlight_device *backlight;
|
drm/nouveau/bl: Assign different names to interfaces
Currently, every backlight interface created by Nouveau uses the same name,
nv_backlight. This leads to a sysfs warning as it tries to create an already
existing folder. This patch adds a incremented number to the name, but keeps
the initial name as nv_backlight, to avoid possibly breaking userspace; the
second interface will be named nv_backlight1, and so on.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86539
v2:
* Switch to using ida for generating unique IDs, as suggested by Ilia Mirkin;
* Allocate backlight name on the stack, as suggested by Ilia Mirkin;
* Move `nouveau_get_backlight_name()` to avoid forward declaration, as
suggested by Ilia Mirkin;
* Fix reference to bug report formatting, as reported by Nick Tenney.
v3:
* Define a macro for the size of the backlight name, to avoid defining
it multiple times;
* Use snprintf in place of sprintf.
v4:
* Do not create similarly named interfaces when reaching the maximum
amount of unique names, but fail instead, as pointed out by Lukas Wunner
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2016-12-07 23:57:08 +00:00
|
|
|
struct list_head bl_connectors;
|
2016-11-21 16:50:54 +00:00
|
|
|
struct work_struct hpd_work;
|
2017-01-12 02:25:24 +00:00
|
|
|
struct work_struct fbcon_work;
|
|
|
|
int fbcon_new_state;
|
2016-11-09 17:17:44 +00:00
|
|
|
#ifdef CONFIG_ACPI
|
|
|
|
struct notifier_block acpi_nb;
|
|
|
|
#endif
|
2012-07-31 06:16:21 +00:00
|
|
|
|
|
|
|
/* power management */
|
2013-10-14 23:44:02 +00:00
|
|
|
struct nouveau_hwmon *hwmon;
|
2015-07-30 09:52:23 +00:00
|
|
|
struct nouveau_debugfs *debugfs;
|
2012-09-10 04:20:51 +00:00
|
|
|
|
2016-08-25 00:57:07 +00:00
|
|
|
/* led management */
|
|
|
|
struct nouveau_led *led;
|
|
|
|
|
2012-09-10 04:20:51 +00:00
|
|
|
/* display power reference */
|
|
|
|
bool have_disp_power_ref;
|
|
|
|
|
|
|
|
struct dev_pm_domain vga_pm_domain;
|
|
|
|
struct pci_dev *hdmi_device;
|
2012-07-06 02:14:00 +00:00
|
|
|
};
|
|
|
|
|
2012-07-19 22:17:34 +00:00
|
|
|
static inline struct nouveau_drm *
|
|
|
|
nouveau_drm(struct drm_device *dev)
|
|
|
|
{
|
2012-07-31 06:16:21 +00:00
|
|
|
return dev->dev_private;
|
|
|
|
}
|
|
|
|
|
2012-11-02 01:04:28 +00:00
|
|
|
int nouveau_pmops_suspend(struct device *);
|
|
|
|
int nouveau_pmops_resume(struct device *);
|
2017-06-02 04:38:07 +00:00
|
|
|
bool nouveau_pmops_runtime(void);
|
2012-07-06 02:14:00 +00:00
|
|
|
|
2015-09-04 10:59:31 +00:00
|
|
|
#include <nvkm/core/tegra.h>
|
|
|
|
|
2014-06-26 05:33:32 +00:00
|
|
|
struct drm_device *
|
2015-09-04 10:59:31 +00:00
|
|
|
nouveau_platform_device_create(const struct nvkm_device_tegra_func *,
|
|
|
|
struct platform_device *, struct nvkm_device **);
|
2014-06-26 05:33:32 +00:00
|
|
|
void nouveau_drm_device_remove(struct drm_device *dev);
|
|
|
|
|
2014-08-09 18:10:22 +00:00
|
|
|
#define NV_PRINTK(l,c,f,a...) do { \
|
|
|
|
struct nouveau_cli *_cli = (c); \
|
2017-10-31 17:56:19 +00:00
|
|
|
dev_##l(_cli->drm->dev->dev, "%s: "f, _cli->name, ##a); \
|
2014-08-09 18:10:22 +00:00
|
|
|
} while(0)
|
2015-08-20 04:54:13 +00:00
|
|
|
#define NV_FATAL(drm,f,a...) NV_PRINTK(crit, &(drm)->client, f, ##a)
|
|
|
|
#define NV_ERROR(drm,f,a...) NV_PRINTK(err, &(drm)->client, f, ##a)
|
2014-08-09 18:10:22 +00:00
|
|
|
#define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a)
|
|
|
|
#define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a)
|
2015-08-20 04:54:13 +00:00
|
|
|
#define NV_DEBUG(drm,f,a...) do { \
|
|
|
|
if (unlikely(drm_debug & DRM_UT_DRIVER)) \
|
|
|
|
NV_PRINTK(info, &(drm)->client, f, ##a); \
|
|
|
|
} while(0)
|
2016-11-04 07:20:36 +00:00
|
|
|
#define NV_ATOMIC(drm,f,a...) do { \
|
|
|
|
if (unlikely(drm_debug & DRM_UT_ATOMIC)) \
|
|
|
|
NV_PRINTK(info, &(drm)->client, f, ##a); \
|
|
|
|
} while(0)
|
2012-07-06 02:14:00 +00:00
|
|
|
|
2012-10-31 02:11:15 +00:00
|
|
|
extern int nouveau_modeset;
|
|
|
|
|
2012-07-06 02:14:00 +00:00
|
|
|
#endif
|