summaryrefslogtreecommitdiff
path: root/src/intel_driver.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-02 18:19:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-02 18:24:47 +0100
commit79785920485d0327d5512db0ed6f81bf4d4eeb90 (patch)
tree060939c89a8d1e3c1d57dd1ebcb7312a5f40a153 /src/intel_driver.h
parentdb1edf0e10c6d3665d3bb2ffd381b1ba722cad95 (diff)
intel: Pass the platform device along to the open routines
This allows us to pass along more metadata along with the platform device in future. Currently we pass the device path, but in a hosted environment we should be passing along the authorized fd from the host. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.h')
-rw-r--r--src/intel_driver.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel_driver.h b/src/intel_driver.h
index e54054fe..9f4c4e50 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -1,6 +1,8 @@
#ifndef INTEL_DRIVER_H
#define INTEL_DRIVER_H
+struct xf86_platform_device;
+
#define INTEL_VERSION 4000
#define INTEL_NAME "intel"
#define INTEL_DRIVER_NAME "intel"
@@ -120,7 +122,9 @@ 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_open_device(int entity_num,
+ const struct pci_device *pci,
+ struct xf86_platform_device *dev);
int intel_get_device(ScrnInfoPtr scrn);
const char *intel_get_client_name(ScrnInfoPtr scrn);
int intel_get_master(ScrnInfoPtr scrn);