Commit 8ee79562 authored by Dave Airlie's avatar Dave Airlie

Merge branch 'linux-5.3' of git://github.com/skeggsb/linux into drm-next

nouveau fixes and TU116 enablement.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
From: Ben Skeggs <skeggsb@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/CACAvsv5hZ3B4S9cVTPd2-Ug7dMSasLPJrWMyoDo4MOg8cbXWkA@mail.gmail.com
parents 9fb7dc73 4d352dbd
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: MIT
ccflags-y += -I $(srctree)/$(src)/include ccflags-y += -I $(srctree)/$(src)/include
ccflags-y += -I $(srctree)/$(src)/include/nvkm ccflags-y += -I $(srctree)/$(src)/include/nvkm
ccflags-y += -I $(srctree)/$(src)/nvkm ccflags-y += -I $(srctree)/$(src)/nvkm
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: MIT
nouveau-y += dispnv04/arb.o nouveau-y += dispnv04/arb.o
nouveau-y += dispnv04/crtc.o nouveau-y += dispnv04/crtc.o
nouveau-y += dispnv04/cursor.o nouveau-y += dispnv04/cursor.o
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: MIT
#include <drm/drmP.h> #include <drm/drmP.h>
#include <drm/drm_mode.h> #include <drm/drm_mode.h>
#include "nouveau_drv.h" #include "nouveau_drv.h"
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NV04_DISPLAY_H__ #ifndef __NV04_DISPLAY_H__
#define __NV04_DISPLAY_H__ #define __NV04_DISPLAY_H__
#include <subdev/bios.h> #include <subdev/bios.h>
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: MIT
nouveau-y += dispnv50/disp.o nouveau-y += dispnv50/disp.o
nouveau-y += dispnv50/lut.o nouveau-y += dispnv50/lut.o
......
...@@ -322,8 +322,13 @@ nv50_outp_atomic_check_view(struct drm_encoder *encoder, ...@@ -322,8 +322,13 @@ nv50_outp_atomic_check_view(struct drm_encoder *encoder,
switch (connector->connector_type) { switch (connector->connector_type) {
case DRM_MODE_CONNECTOR_LVDS: case DRM_MODE_CONNECTOR_LVDS:
case DRM_MODE_CONNECTOR_eDP: case DRM_MODE_CONNECTOR_eDP:
/* Force use of scaler for non-EDID modes. */ /* Don't force scaler for EDID modes with
if (adjusted_mode->type & DRM_MODE_TYPE_DRIVER) * same size as the native one (e.g. different
* refresh rate)
*/
if (adjusted_mode->hdisplay == native_mode->hdisplay &&
adjusted_mode->vdisplay == native_mode->vdisplay &&
adjusted_mode->type & DRM_MODE_TYPE_DRIVER)
break; break;
mode = native_mode; mode = native_mode;
asyc->scaler.full = true; asyc->scaler.full = true;
......
...@@ -169,14 +169,34 @@ nv50_head_atomic_check_view(struct nv50_head_atom *armh, ...@@ -169,14 +169,34 @@ nv50_head_atomic_check_view(struct nv50_head_atom *armh,
*/ */
switch (mode) { switch (mode) {
case DRM_MODE_SCALE_CENTER: case DRM_MODE_SCALE_CENTER:
asyh->view.oW = min((u16)umode->hdisplay, asyh->view.oW); /* NOTE: This will cause scaling when the input is
asyh->view.oH = min((u16)umode_vdisplay, asyh->view.oH); * larger than the output.
/* fall-through */ */
asyh->view.oW = min(asyh->view.iW, asyh->view.oW);
asyh->view.oH = min(asyh->view.iH, asyh->view.oH);
break;
case DRM_MODE_SCALE_ASPECT: case DRM_MODE_SCALE_ASPECT:
if (asyh->view.oH < asyh->view.oW) { /* Determine whether the scaling should be on width or on
* height. This is done by comparing the aspect ratios of the
* sizes. If the output AR is larger than input AR, that means
* we want to change the width (letterboxed on the
* left/right), otherwise on the height (letterboxed on the
* top/bottom).
*
* E.g. 4:3 (1.333) AR image displayed on a 16:10 (1.6) AR
* screen will have letterboxes on the left/right. However a
* 16:9 (1.777) AR image on that same screen will have
* letterboxes on the top/bottom.
*
* inputAR = iW / iH; outputAR = oW / oH
* outputAR > inputAR is equivalent to oW * iH > iW * oH
*/
if (asyh->view.oW * asyh->view.iH > asyh->view.iW * asyh->view.oH) {
/* Recompute output width, i.e. left/right letterbox */
u32 r = (asyh->view.iW << 19) / asyh->view.iH; u32 r = (asyh->view.iW << 19) / asyh->view.iH;
asyh->view.oW = ((asyh->view.oH * r) + (r / 2)) >> 19; asyh->view.oW = ((asyh->view.oH * r) + (r / 2)) >> 19;
} else { } else {
/* Recompute output height, i.e. top/bottom letterbox */
u32 r = (asyh->view.iH << 19) / asyh->view.iW; u32 r = (asyh->view.iH << 19) / asyh->view.iW;
asyh->view.oH = ((asyh->view.oW * r) + (r / 2)) >> 19; asyh->view.oH = ((asyh->view.oW * r) + (r / 2)) >> 19;
} }
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL0002_H__ #ifndef __NVIF_CL0002_H__
#define __NVIF_CL0002_H__ #define __NVIF_CL0002_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL0046_H__ #ifndef __NVIF_CL0046_H__
#define __NVIF_CL0046_H__ #define __NVIF_CL0046_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL006B_H__ #ifndef __NVIF_CL006B_H__
#define __NVIF_CL006B_H__ #define __NVIF_CL006B_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL0080_H__ #ifndef __NVIF_CL0080_H__
#define __NVIF_CL0080_H__ #define __NVIF_CL0080_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL506E_H__ #ifndef __NVIF_CL506E_H__
#define __NVIF_CL506E_H__ #define __NVIF_CL506E_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL506F_H__ #ifndef __NVIF_CL506F_H__
#define __NVIF_CL506F_H__ #define __NVIF_CL506F_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL5070_H__ #ifndef __NVIF_CL5070_H__
#define __NVIF_CL5070_H__ #define __NVIF_CL5070_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL507A_H__ #ifndef __NVIF_CL507A_H__
#define __NVIF_CL507A_H__ #define __NVIF_CL507A_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL507B_H__ #ifndef __NVIF_CL507B_H__
#define __NVIF_CL507B_H__ #define __NVIF_CL507B_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL507C_H__ #ifndef __NVIF_CL507C_H__
#define __NVIF_CL507C_H__ #define __NVIF_CL507C_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL507D_H__ #ifndef __NVIF_CL507D_H__
#define __NVIF_CL507D_H__ #define __NVIF_CL507D_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL507E_H__ #ifndef __NVIF_CL507E_H__
#define __NVIF_CL507E_H__ #define __NVIF_CL507E_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL826E_H__ #ifndef __NVIF_CL826E_H__
#define __NVIF_CL826E_H__ #define __NVIF_CL826E_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL826F_H__ #ifndef __NVIF_CL826F_H__
#define __NVIF_CL826F_H__ #define __NVIF_CL826F_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL906F_H__ #ifndef __NVIF_CL906F_H__
#define __NVIF_CL906F_H__ #define __NVIF_CL906F_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CL9097_H__ #ifndef __NVIF_CL9097_H__
#define __NVIF_CL9097_H__ #define __NVIF_CL9097_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLA06F_H__ #ifndef __NVIF_CLA06F_H__
#define __NVIF_CLA06F_H__ #define __NVIF_CLA06F_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLASS_H__ #ifndef __NVIF_CLASS_H__
#define __NVIF_CLASS_H__ #define __NVIF_CLASS_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLC36F_H__ #ifndef __NVIF_CLC36F_H__
#define __NVIF_CLC36F_H__ #define __NVIF_CLC36F_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLC37B_H__ #ifndef __NVIF_CLC37B_H__
#define __NVIF_CLC37B_H__ #define __NVIF_CLC37B_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLC37E_H__ #ifndef __NVIF_CLC37E_H__
#define __NVIF_CLC37E_H__ #define __NVIF_CLC37E_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_CLIENT_H__ #ifndef __NVIF_CLIENT_H__
#define __NVIF_CLIENT_H__ #define __NVIF_CLIENT_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_DEVICE_H__ #ifndef __NVIF_DEVICE_H__
#define __NVIF_DEVICE_H__ #define __NVIF_DEVICE_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_DRIVER_H__ #ifndef __NVIF_DRIVER_H__
#define __NVIF_DRIVER_H__ #define __NVIF_DRIVER_H__
#include <nvif/os.h> #include <nvif/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_EVENT_H__ #ifndef __NVIF_EVENT_H__
#define __NVIF_EVENT_H__ #define __NVIF_EVENT_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0000_H__ #ifndef __NVIF_IF0000_H__
#define __NVIF_IF0000_H__ #define __NVIF_IF0000_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0001_H__ #ifndef __NVIF_IF0001_H__
#define __NVIF_IF0001_H__ #define __NVIF_IF0001_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0002_H__ #ifndef __NVIF_IF0002_H__
#define __NVIF_IF0002_H__ #define __NVIF_IF0002_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0003_H__ #ifndef __NVIF_IF0003_H__
#define __NVIF_IF0003_H__ #define __NVIF_IF0003_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0004_H__ #ifndef __NVIF_IF0004_H__
#define __NVIF_IF0004_H__ #define __NVIF_IF0004_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IF0005_H__ #ifndef __NVIF_IF0005_H__
#define __NVIF_IF0005_H__ #define __NVIF_IF0005_H__
#define NV10_NVSW_NTFY_UEVENT 0x00 #define NV10_NVSW_NTFY_UEVENT 0x00
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_IOCTL_H__ #ifndef __NVIF_IOCTL_H__
#define __NVIF_IOCTL_H__ #define __NVIF_IOCTL_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_NOTIFY_H__ #ifndef __NVIF_NOTIFY_H__
#define __NVIF_NOTIFY_H__ #define __NVIF_NOTIFY_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_OBJECT_H__ #ifndef __NVIF_OBJECT_H__
#define __NVIF_OBJECT_H__ #define __NVIF_OBJECT_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NOUVEAU_OS_H__ #ifndef __NOUVEAU_OS_H__
#define __NOUVEAU_OS_H__ #define __NOUVEAU_OS_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVIF_UNPACK_H__ #ifndef __NVIF_UNPACK_H__
#define __NVIF_UNPACK_H__ #define __NVIF_UNPACK_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_CLIENT_H__ #ifndef __NVKM_CLIENT_H__
#define __NVKM_CLIENT_H__ #define __NVKM_CLIENT_H__
#define nvkm_client(p) container_of((p), struct nvkm_client, object) #define nvkm_client(p) container_of((p), struct nvkm_client, object)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DEBUG_H__ #ifndef __NVKM_DEBUG_H__
#define __NVKM_DEBUG_H__ #define __NVKM_DEBUG_H__
#define NV_DBG_FATAL 0 #define NV_DBG_FATAL 0
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DEVICE_H__ #ifndef __NVKM_DEVICE_H__
#define __NVKM_DEVICE_H__ #define __NVKM_DEVICE_H__
#include <core/oclass.h> #include <core/oclass.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_ENGINE_H__ #ifndef __NVKM_ENGINE_H__
#define __NVKM_ENGINE_H__ #define __NVKM_ENGINE_H__
#define nvkm_engine(p) container_of((p), struct nvkm_engine, subdev) #define nvkm_engine(p) container_of((p), struct nvkm_engine, subdev)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_ENUM_H__ #ifndef __NVKM_ENUM_H__
#define __NVKM_ENUM_H__ #define __NVKM_ENUM_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_EVENT_H__ #ifndef __NVKM_EVENT_H__
#define __NVKM_EVENT_H__ #define __NVKM_EVENT_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_FIRMWARE_H__ #ifndef __NVKM_FIRMWARE_H__
#define __NVKM_FIRMWARE_H__ #define __NVKM_FIRMWARE_H__
#include <core/subdev.h> #include <core/subdev.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_GPUOBJ_H__ #ifndef __NVKM_GPUOBJ_H__
#define __NVKM_GPUOBJ_H__ #define __NVKM_GPUOBJ_H__
#include <core/memory.h> #include <core/memory.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_IOCTL_H__ #ifndef __NVKM_IOCTL_H__
#define __NVKM_IOCTL_H__ #define __NVKM_IOCTL_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MEMORY_H__ #ifndef __NVKM_MEMORY_H__
#define __NVKM_MEMORY_H__ #define __NVKM_MEMORY_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MM_H__ #ifndef __NVKM_MM_H__
#define __NVKM_MM_H__ #define __NVKM_MM_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_NOTIFY_H__ #ifndef __NVKM_NOTIFY_H__
#define __NVKM_NOTIFY_H__ #define __NVKM_NOTIFY_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_OBJECT_H__ #ifndef __NVKM_OBJECT_H__
#define __NVKM_OBJECT_H__ #define __NVKM_OBJECT_H__
#include <core/oclass.h> #include <core/oclass.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_OPROXY_H__ #ifndef __NVKM_OPROXY_H__
#define __NVKM_OPROXY_H__ #define __NVKM_OPROXY_H__
#define nvkm_oproxy(p) container_of((p), struct nvkm_oproxy, base) #define nvkm_oproxy(p) container_of((p), struct nvkm_oproxy, base)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_OPTION_H__ #ifndef __NVKM_OPTION_H__
#define __NVKM_OPTION_H__ #define __NVKM_OPTION_H__
#include <core/os.h> #include <core/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_OS_H__ #ifndef __NVKM_OS_H__
#define __NVKM_OS_H__ #define __NVKM_OS_H__
#include <nvif/os.h> #include <nvif/os.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DEVICE_PCI_H__ #ifndef __NVKM_DEVICE_PCI_H__
#define __NVKM_DEVICE_PCI_H__ #define __NVKM_DEVICE_PCI_H__
#include <core/device.h> #include <core/device.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_RAMHT_H__ #ifndef __NVKM_RAMHT_H__
#define __NVKM_RAMHT_H__ #define __NVKM_RAMHT_H__
#include <core/gpuobj.h> #include <core/gpuobj.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_SUBDEV_H__ #ifndef __NVKM_SUBDEV_H__
#define __NVKM_SUBDEV_H__ #define __NVKM_SUBDEV_H__
#include <core/device.h> #include <core/device.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DEVICE_TEGRA_H__ #ifndef __NVKM_DEVICE_TEGRA_H__
#define __NVKM_DEVICE_TEGRA_H__ #define __NVKM_DEVICE_TEGRA_H__
#include <core/device.h> #include <core/device.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_BSP_H__ #ifndef __NVKM_BSP_H__
#define __NVKM_BSP_H__ #define __NVKM_BSP_H__
#include <engine/xtensa.h> #include <engine/xtensa.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_CE_H__ #ifndef __NVKM_CE_H__
#define __NVKM_CE_H__ #define __NVKM_CE_H__
#include <engine/falcon.h> #include <engine/falcon.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_CIPHER_H__ #ifndef __NVKM_CIPHER_H__
#define __NVKM_CIPHER_H__ #define __NVKM_CIPHER_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DISP_H__ #ifndef __NVKM_DISP_H__
#define __NVKM_DISP_H__ #define __NVKM_DISP_H__
#define nvkm_disp(p) container_of((p), struct nvkm_disp, engine) #define nvkm_disp(p) container_of((p), struct nvkm_disp, engine)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_DMA_H__ #ifndef __NVKM_DMA_H__
#define __NVKM_DMA_H__ #define __NVKM_DMA_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_FALCON_H__ #ifndef __NVKM_FALCON_H__
#define __NVKM_FALCON_H__ #define __NVKM_FALCON_H__
#define nvkm_falcon(p) container_of((p), struct nvkm_falcon, engine) #define nvkm_falcon(p) container_of((p), struct nvkm_falcon, engine)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_FIFO_H__ #ifndef __NVKM_FIFO_H__
#define __NVKM_FIFO_H__ #define __NVKM_FIFO_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_GR_H__ #ifndef __NVKM_GR_H__
#define __NVKM_GR_H__ #define __NVKM_GR_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MPEG_H__ #ifndef __NVKM_MPEG_H__
#define __NVKM_MPEG_H__ #define __NVKM_MPEG_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MSENC_H__ #ifndef __NVKM_MSENC_H__
#define __NVKM_MSENC_H__ #define __NVKM_MSENC_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MSPDEC_H__ #ifndef __NVKM_MSPDEC_H__
#define __NVKM_MSPDEC_H__ #define __NVKM_MSPDEC_H__
#include <engine/falcon.h> #include <engine/falcon.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MSPPP_H__ #ifndef __NVKM_MSPPP_H__
#define __NVKM_MSPPP_H__ #define __NVKM_MSPPP_H__
#include <engine/falcon.h> #include <engine/falcon.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_MSVLD_H__ #ifndef __NVKM_MSVLD_H__
#define __NVKM_MSVLD_H__ #define __NVKM_MSVLD_H__
#include <engine/falcon.h> #include <engine/falcon.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_NVDEC_H__ #ifndef __NVKM_NVDEC_H__
#define __NVKM_NVDEC_H__ #define __NVKM_NVDEC_H__
#define nvkm_nvdec(p) container_of((p), struct nvkm_nvdec, engine) #define nvkm_nvdec(p) container_of((p), struct nvkm_nvdec, engine)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_NVENC_H__ #ifndef __NVKM_NVENC_H__
#define __NVKM_NVENC_H__ #define __NVKM_NVENC_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_PM_H__ #ifndef __NVKM_PM_H__
#define __NVKM_PM_H__ #define __NVKM_PM_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_SEC_H__ #ifndef __NVKM_SEC_H__
#define __NVKM_SEC_H__ #define __NVKM_SEC_H__
#include <engine/falcon.h> #include <engine/falcon.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_SEC2_H__ #ifndef __NVKM_SEC2_H__
#define __NVKM_SEC2_H__ #define __NVKM_SEC2_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_SW_H__ #ifndef __NVKM_SW_H__
#define __NVKM_SW_H__ #define __NVKM_SW_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_VIC_H__ #ifndef __NVKM_VIC_H__
#define __NVKM_VIC_H__ #define __NVKM_VIC_H__
#include <core/engine.h> #include <core/engine.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_VP_H__ #ifndef __NVKM_VP_H__
#define __NVKM_VP_H__ #define __NVKM_VP_H__
#include <engine/xtensa.h> #include <engine/xtensa.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_XTENSA_H__ #ifndef __NVKM_XTENSA_H__
#define __NVKM_XTENSA_H__ #define __NVKM_XTENSA_H__
#define nvkm_xtensa(p) container_of((p), struct nvkm_xtensa, engine) #define nvkm_xtensa(p) container_of((p), struct nvkm_xtensa, engine)
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_BAR_H__ #ifndef __NVKM_BAR_H__
#define __NVKM_BAR_H__ #define __NVKM_BAR_H__
#include <core/subdev.h> #include <core/subdev.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVKM_BIOS_H__ #ifndef __NVKM_BIOS_H__
#define __NVKM_BIOS_H__ #define __NVKM_BIOS_H__
#include <core/subdev.h> #include <core/subdev.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_M0203_H__ #ifndef __NVBIOS_M0203_H__
#define __NVBIOS_M0203_H__ #define __NVBIOS_M0203_H__
struct nvbios_M0203T { struct nvbios_M0203T {
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_M0205_H__ #ifndef __NVBIOS_M0205_H__
#define __NVBIOS_M0205_H__ #define __NVBIOS_M0205_H__
struct nvbios_M0205T { struct nvbios_M0205T {
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_M0209_H__ #ifndef __NVBIOS_M0209_H__
#define __NVBIOS_M0209_H__ #define __NVBIOS_M0209_H__
u32 nvbios_M0209Te(struct nvkm_bios *, u32 nvbios_M0209Te(struct nvkm_bios *,
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_P0260_H__ #ifndef __NVBIOS_P0260_H__
#define __NVBIOS_P0260_H__ #define __NVBIOS_P0260_H__
u32 nvbios_P0260Te(struct nvkm_bios *, u32 nvbios_P0260Te(struct nvkm_bios *,
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_BIT_H__ #ifndef __NVBIOS_BIT_H__
#define __NVBIOS_BIT_H__ #define __NVBIOS_BIT_H__
struct bit_entry { struct bit_entry {
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_BMP_H__ #ifndef __NVBIOS_BMP_H__
#define __NVBIOS_BMP_H__ #define __NVBIOS_BMP_H__
static inline u16 static inline u16
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_BOOST_H__ #ifndef __NVBIOS_BOOST_H__
#define __NVBIOS_BOOST_H__ #define __NVBIOS_BOOST_H__
u32 nvbios_boostTe(struct nvkm_bios *, u8 *, u8 *, u8 *, u8 *, u8 *, u8 *); u32 nvbios_boostTe(struct nvkm_bios *, u8 *, u8 *, u8 *, u8 *, u8 *, u8 *);
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_CONN_H__ #ifndef __NVBIOS_CONN_H__
#define __NVBIOS_CONN_H__ #define __NVBIOS_CONN_H__
enum dcb_connector_type { enum dcb_connector_type {
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_CSTEP_H__ #ifndef __NVBIOS_CSTEP_H__
#define __NVBIOS_CSTEP_H__ #define __NVBIOS_CSTEP_H__
u32 nvbios_cstepTe(struct nvkm_bios *, u32 nvbios_cstepTe(struct nvkm_bios *,
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_DCB_H__ #ifndef __NVBIOS_DCB_H__
#define __NVBIOS_DCB_H__ #define __NVBIOS_DCB_H__
enum dcb_output_type { enum dcb_output_type {
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_DISP_H__ #ifndef __NVBIOS_DISP_H__
#define __NVBIOS_DISP_H__ #define __NVBIOS_DISP_H__
u16 nvbios_disp_table(struct nvkm_bios *, u16 nvbios_disp_table(struct nvkm_bios *,
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_DP_H__ #ifndef __NVBIOS_DP_H__
#define __NVBIOS_DP_H__ #define __NVBIOS_DP_H__
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: MIT */
#ifndef __NVBIOS_EXTDEV_H__ #ifndef __NVBIOS_EXTDEV_H__
#define __NVBIOS_EXTDEV_H__ #define __NVBIOS_EXTDEV_H__
enum nvbios_extdev_type { enum nvbios_extdev_type {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment