summaryrefslogtreecommitdiff
path: root/src/intel_driver.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-22 17:30:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-23 07:33:56 +0100
commit7ec0378b64e88923ba1c4eba043488685aa3a795 (patch)
tree1d11f3c1bbc292083fb2f8fd86c40d40fe21d921 /src/intel_driver.h
parent41badce186fe0f6e8f49e30b6c1c251027161e35 (diff)
sna: Only open the /dev/dri/cardX device once
Merge the device open in the main driver with the probing so that we can open the path explicitly passed in by the PlatformProbe and keep that fd around for the main driver and so avoid a later search. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.h')
-rw-r--r--src/intel_driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel_driver.h b/src/intel_driver.h
index 32f623b2..ed58444f 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -311,5 +311,12 @@ void intel_detect_chipset(ScrnInfoPtr scrn,
EntityInfoPtr ent,
struct pci_device *pci);
+int intel_open_device(int entity_num, const struct pci_device *pci, const char *path);
+int intel_get_device(ScrnInfoPtr scrn);
+int intel_get_master(ScrnInfoPtr scrn);
+int intel_put_master(ScrnInfoPtr scrn);
+void intel_put_device(ScrnInfoPtr scrn);
+
+void __intel_uxa_release_device(ScrnInfoPtr scrn);
#endif /* INTEL_DRIVER_H */