radeon_vcrtcm_ctl: initial import

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
radeon_vcrtcm_ctl: remove all the extra newlines.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
radeon_vcrtcm_ctl: move files to their new home

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
pimmgr_tool: initial commit

Initial prototype of the userspace utility for interacting with
pimmgr to instantiate/destroy PCONs.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: handle error conditions

Notify when ioctl returns an error on instantiate.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
radeon_vcrtcm_ctl: modify to use pconid

Modify utility to use pconid rather than major, minor, flow triple.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: change ioctl scheme

Change ioctl scheme to be more flexible and report errors better.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: implement info command

Implement a simple info command to show all current PIMS and their
PCONs.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: remove a debug printf

Annoying.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: fix bug in destroy

Bug in destroy due to parsing argument as a long (not long enough).

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: cleanup output

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: remove dead function

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
radeon_vcrtcm_ctl: use strtoll to parse pconid arg

Use strtoll instead of strtol to parse pconid argument.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: add PCON description to info

Output the PCON description as part of the info listing.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: add error code for ioctls

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr_tool: rename utility to just "pimmgr"

Simplify name.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr: add help command and add fields to ops

Add an explicit help command and add some fields to struct operation to
include some information useful for the help output.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr: make failure message more verbose

We should identify the device file name and strerror() if we fail to
open the pimmgr device file.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
udev_rules/pimmgr: new udev rule for pimmgr device

Create udev rule to set the permissions of the pimmgr device file to ensure
that the pimmgr utility does not need root permissions to run properly.

Also, create a separate directory for this and future udev rules and include
a Makefile for installing them onto a system.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>
pimmgr: open device file write-only

We should open the pimmgr device file write-only.

Signed-off-by: William Katsak <william.katsak@alcatel-lucent.com>