We will eventually have a separate enum value for opening inputs vs
opening actual devices, so change enum now
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Previously, messages were not being sent/received properly
(incomplete). Ecore_Drm library will now send us messages in 2 parts
(opcode & data) so we need to change the message receiving code to
reflect that.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Calls to ecore_drm_device_open will now send a message to the slave
process to open the drm device.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Previously, sending messages & fds did not quite work right...messages
were not being fully sent.
This fixes the problem by breaking the Ecore_Drm_Message into 2 parts
(iovs). Now we will send the opcode as one iov, and the data as another.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This adds a function call into ecore_drm library to discover the
default graphics card to use for drm.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
error.
This adds udev support for graphics card device enumeration. Udev will
also be used in ecore_drm for "other" devices too....
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This adds the start of an ecore_drm_device file with functions that
will pertain to graphics devices (opening, closing, etc).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Udev header is needed so we can do drm device discovery (among other
devices).
NB: The structure for Ecore_Drm_Device is NOT exposed to users of the
API currently. It may stay opaque....unclear yet. This structure is
NOT finalized !!! Do not try to use it !!
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This change adds a 'seat' parameter to the ecore_drm_device_find
function for located devices on a specific seat. This also adds a new
API function for freeing any returned Ecor_Drm_Device structure
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This adds the ability for ecore_drm to launch the
ecore_drm slave process (for privileged device access), and to send
messages from ecore_drm library to the slave process.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This adds a structure to be used for passing messages between
ecore_drm library and the ecore_drm_launch slave process. Also added
here is an enum for Operations, and an enum for Operation Results.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This adds the ability for ecore_drm_launch to accept and act on any
messages sent from ecore_drm library. This includes the ability to
pass file descriptors from ecore_drm library to the slave process for
opening/closing/etc.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This fixes the Ecore_Drm Makefile to install the ecore_drm_launch
slave process into a directory using MODULE_ARCH
Signed-off-by: Chris Michael <cp.michael@samsung.com>