]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - drivers/gpu/drm/nouveau/core/subdev/pwr/fuc/nvd0.fuc
drm/nouveau/pwr: initial implementation
[mirror_ubuntu-zesty-kernel.git] / drivers / gpu / drm / nouveau / core / subdev / pwr / fuc / nvd0.fuc
CommitLineData
ff4b42c7
BS
1/*
2 * Copyright 2013 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Authors: Ben Skeggs
23 */
24
25#define NVKM_PPWR_CHIPSET GF119
26
27//#define NVKM_FALCON_PC24
28#define NVKM_FALCON_UNSHIFTED_IO
29//#define NVKM_FALCON_MMIO_UAS
30//#define NVKM_FALCON_MMIO_TRAP
31
32#include "macros.fuc"
33
34.section #nvd0_pwr_data
35#define INCLUDE_PROC
36#include "kernel.fuc"
37#include "host.fuc"
38#include "memx.fuc"
39#include "perf.fuc"
40#include "test.fuc"
41#include "idle.fuc"
42#undef INCLUDE_PROC
43
44#define INCLUDE_DATA
45#include "kernel.fuc"
46#include "host.fuc"
47#include "memx.fuc"
48#include "perf.fuc"
49#include "test.fuc"
50#include "idle.fuc"
51#undef INCLUDE_DATA
52.align 256
53
54.section #nvd0_pwr_code
55#define INCLUDE_CODE
56#include "kernel.fuc"
57#include "host.fuc"
58#include "memx.fuc"
59#include "perf.fuc"
60#include "test.fuc"
61#include "idle.fuc"
62#undef INCLUDE_CODE
63.align 256