linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c

/*
 * Copyright 2012 The Nouveau community
 *
 * 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: Martin Peres
 */
#include "priv.h"

#include <core/option.h>
#include <subdev/pmu.h>

int
nvkm_therm_temp_get(struct nvkm_therm *therm)
{}

static int
nvkm_therm_update_trip(struct nvkm_therm *therm)
{}

static int
nvkm_therm_compute_linear_duty(struct nvkm_therm *therm, u8 linear_min_temp,
                               u8 linear_max_temp)
{}

static int
nvkm_therm_update_linear(struct nvkm_therm *therm)
{}

static int
nvkm_therm_update_linear_fallback(struct nvkm_therm *therm)
{}

static void
nvkm_therm_update(struct nvkm_therm *therm, int mode)
{}

int
nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir)
{}

static void
nvkm_therm_alarm(struct nvkm_alarm *alarm)
{}

int
nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode)
{}

int
nvkm_therm_attr_get(struct nvkm_therm *therm, enum nvkm_therm_attr_type type)
{}

int
nvkm_therm_attr_set(struct nvkm_therm *therm,
		    enum nvkm_therm_attr_type type, int value)
{}

void
nvkm_therm_clkgate_enable(struct nvkm_therm *therm)
{}

void
nvkm_therm_clkgate_fini(struct nvkm_therm *therm, bool suspend)
{}

static void
nvkm_therm_clkgate_oneinit(struct nvkm_therm *therm)
{}

static void
nvkm_therm_intr(struct nvkm_subdev *subdev)
{}

static int
nvkm_therm_fini(struct nvkm_subdev *subdev, bool suspend)
{}

static int
nvkm_therm_oneinit(struct nvkm_subdev *subdev)
{}

static int
nvkm_therm_init(struct nvkm_subdev *subdev)
{}

void
nvkm_therm_clkgate_init(struct nvkm_therm *therm,
			const struct nvkm_therm_clkgate_pack *p)
{}

static void *
nvkm_therm_dtor(struct nvkm_subdev *subdev)
{}

static const struct nvkm_subdev_func
nvkm_therm =;

void
nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, enum nvkm_subdev_type type,
		int inst, const struct nvkm_therm_func *func)
{}

int
nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
		enum nvkm_subdev_type type, int inst, struct nvkm_therm **ptherm)
{}