summaryrefslogtreecommitdiff
path: root/lib/igt_device.h
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2019-03-13 12:35:12 +0100
committerMichał Winiarski <michal.winiarski@intel.com>2019-03-20 10:36:36 +0100
commitbdf280f8e3e92911f51c52d4041c762c59d21abd (patch)
tree9ceecd6082e31e1e2eee60bc89971d16358a02ae /lib/igt_device.h
parentbaec59ef68a853cda115e3064a8e9c969eba6a8e (diff)
lib/igt_device: Introduce igt_device_get_card_index
And use it! But let's start small. Rather than going with "and by the way, here's the card index" from igt_sysfs_path, we're making things more explicit. v2: Drop idx comment. (Chris) Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_device.h')
-rw-r--r--lib/igt_device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_device.h b/lib/igt_device.h
index 2995f969..9d7dc2c3 100644
--- a/lib/igt_device.h
+++ b/lib/igt_device.h
@@ -31,4 +31,6 @@ void igt_device_set_master(int fd);
int __igt_device_drop_master(int fd);
void igt_device_drop_master(int fd);
+int igt_device_get_card_index(int fd);
+
#endif /* __IGT_DEVICE_H__ */