drm/nouveau/pm: add concept of sources
commite82661e23c60fc41424ca138820d729d8e4a2226
authorSamuel Pitoiset <samuel.pitoisetœgmail.com>
Sun, 7 Jun 2015 20:40:22 +0000 (7 22:40 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:39:59 +0000 (28 12:39 +1000)
tree8ca3d53e9cee415b21738248d2ad379d4e43e2ac
parent40a3b22c92ac3dad5adc818a84671bfb00303731
drm/nouveau/pm: add concept of sources

A source (or multiplexer) is a tuple addr+mask+shift which allows to
control a block of signals. The maximum number of sources that a signal
can define is arbitrary limited to 8 and this should be large enough.
This patch allows to define multi-level of sources for a signal.

Each different sources are stored to a global list and will be exposed
to the userspace through the nvif interface in order to avoid conflicts.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/engine/pm.h
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h