linux/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c

/*
 * Copyright 2012 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Ben Skeggs
 */
#include "priv.h"
#include "acpi.h"

#include <core/option.h>

#include <subdev/bios.h>
#include <subdev/therm.h>

static DEFINE_MUTEX(nv_devices_mutex);
static LIST_HEAD(nv_devices);

static struct nvkm_device *
nvkm_device_find_locked(u64 handle)
{}

struct nvkm_device *
nvkm_device_find(u64 handle)
{}

int
nvkm_device_list(u64 *name, int size)
{}

static const struct nvkm_device_chip
null_chipset =;

static const struct nvkm_device_chip
nv4_chipset =;

static const struct nvkm_device_chip
nv5_chipset =;

static const struct nvkm_device_chip
nv10_chipset =;

static const struct nvkm_device_chip
nv11_chipset =;

static const struct nvkm_device_chip
nv15_chipset =;

static const struct nvkm_device_chip
nv17_chipset =;

static const struct nvkm_device_chip
nv18_chipset =;

static const struct nvkm_device_chip
nv1a_chipset =;

static const struct nvkm_device_chip
nv1f_chipset =;

static const struct nvkm_device_chip
nv20_chipset =;

static const struct nvkm_device_chip
nv25_chipset =;

static const struct nvkm_device_chip
nv28_chipset =;

static const struct nvkm_device_chip
nv2a_chipset =;

static const struct nvkm_device_chip
nv30_chipset =;

static const struct nvkm_device_chip
nv31_chipset =;

static const struct nvkm_device_chip
nv34_chipset =;

static const struct nvkm_device_chip
nv35_chipset =;

static const struct nvkm_device_chip
nv36_chipset =;

static const struct nvkm_device_chip
nv40_chipset =;

static const struct nvkm_device_chip
nv41_chipset =;

static const struct nvkm_device_chip
nv42_chipset =;

static const struct nvkm_device_chip
nv43_chipset =;

static const struct nvkm_device_chip
nv44_chipset =;

static const struct nvkm_device_chip
nv45_chipset =;

static const struct nvkm_device_chip
nv46_chipset =;

static const struct nvkm_device_chip
nv47_chipset =;

static const struct nvkm_device_chip
nv49_chipset =;

static const struct nvkm_device_chip
nv4a_chipset =;

static const struct nvkm_device_chip
nv4b_chipset =;

static const struct nvkm_device_chip
nv4c_chipset =;

static const struct nvkm_device_chip
nv4e_chipset =;

static const struct nvkm_device_chip
nv50_chipset =;

static const struct nvkm_device_chip
nv63_chipset =;

static const struct nvkm_device_chip
nv67_chipset =;

static const struct nvkm_device_chip
nv68_chipset =;

static const struct nvkm_device_chip
nv84_chipset =;

static const struct nvkm_device_chip
nv86_chipset =;

static const struct nvkm_device_chip
nv92_chipset =;

static const struct nvkm_device_chip
nv94_chipset =;

static const struct nvkm_device_chip
nv96_chipset =;

static const struct nvkm_device_chip
nv98_chipset =;

static const struct nvkm_device_chip
nva0_chipset =;

static const struct nvkm_device_chip
nva3_chipset =;

static const struct nvkm_device_chip
nva5_chipset =;

static const struct nvkm_device_chip
nva8_chipset =;

static const struct nvkm_device_chip
nvaa_chipset =;

static const struct nvkm_device_chip
nvac_chipset =;

static const struct nvkm_device_chip
nvaf_chipset =;

static const struct nvkm_device_chip
nvc0_chipset =;

static const struct nvkm_device_chip
nvc1_chipset =;

static const struct nvkm_device_chip
nvc3_chipset =;

static const struct nvkm_device_chip
nvc4_chipset =;

static const struct nvkm_device_chip
nvc8_chipset =;

static const struct nvkm_device_chip
nvce_chipset =;

static const struct nvkm_device_chip
nvcf_chipset =;

static const struct nvkm_device_chip
nvd7_chipset =;

static const struct nvkm_device_chip
nvd9_chipset =;

static const struct nvkm_device_chip
nve4_chipset =;

static const struct nvkm_device_chip
nve6_chipset =;

static const struct nvkm_device_chip
nve7_chipset =;

static const struct nvkm_device_chip
nvea_chipset =;

static const struct nvkm_device_chip
nvf0_chipset =;

static const struct nvkm_device_chip
nvf1_chipset =;

static const struct nvkm_device_chip
nv106_chipset =;

static const struct nvkm_device_chip
nv108_chipset =;

static const struct nvkm_device_chip
nv117_chipset =;

static const struct nvkm_device_chip
nv118_chipset =;

static const struct nvkm_device_chip
nv120_chipset =;

static const struct nvkm_device_chip
nv124_chipset =;

static const struct nvkm_device_chip
nv126_chipset =;

static const struct nvkm_device_chip
nv12b_chipset =;

static const struct nvkm_device_chip
nv130_chipset =;

static const struct nvkm_device_chip
nv132_chipset =;

static const struct nvkm_device_chip
nv134_chipset =;

static const struct nvkm_device_chip
nv136_chipset =;

static const struct nvkm_device_chip
nv137_chipset =;

static const struct nvkm_device_chip
nv138_chipset =;

static const struct nvkm_device_chip
nv13b_chipset =;

static const struct nvkm_device_chip
nv140_chipset =;

static const struct nvkm_device_chip
nv162_chipset =;

static const struct nvkm_device_chip
nv164_chipset =;

static const struct nvkm_device_chip
nv166_chipset =;

static const struct nvkm_device_chip
nv167_chipset =;

static const struct nvkm_device_chip
nv168_chipset =;

static const struct nvkm_device_chip
nv170_chipset =;

static const struct nvkm_device_chip
nv172_chipset =;

static const struct nvkm_device_chip
nv173_chipset =;

static const struct nvkm_device_chip
nv174_chipset =;

static const struct nvkm_device_chip
nv176_chipset =;

static const struct nvkm_device_chip
nv177_chipset =;

static const struct nvkm_device_chip
nv192_chipset =;

static const struct nvkm_device_chip
nv193_chipset =;

static const struct nvkm_device_chip
nv194_chipset =;

static const struct nvkm_device_chip
nv196_chipset =;

static const struct nvkm_device_chip
nv197_chipset =;

struct nvkm_subdev *
nvkm_device_subdev(struct nvkm_device *device, int type, int inst)
{}

struct nvkm_engine *
nvkm_device_engine(struct nvkm_device *device, int type, int inst)
{}

int
nvkm_device_fini(struct nvkm_device *device, bool suspend)
{}

static int
nvkm_device_preinit(struct nvkm_device *device)
{}

int
nvkm_device_init(struct nvkm_device *device)
{}

void
nvkm_device_del(struct nvkm_device **pdevice)
{}

/* returns true if the GPU is in the CPU native byte order */
static inline bool
nvkm_device_endianness(struct nvkm_device *device)
{}

int
nvkm_device_ctor(const struct nvkm_device_func *func,
		 const struct nvkm_device_quirk *quirk,
		 struct device *dev, enum nvkm_device_type type, u64 handle,
		 const char *name, const char *cfg, const char *dbg,
		 bool detect, bool mmio, u64 subdev_mask,
		 struct nvkm_device *device)
{}