xserver/hw/xfree86/common
Adam Jackson 245e7e0361 xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES)
This is a really awkward interface, since we're calling it well before
the driver knows what device it's going to drive.  Drivers with both KMS
and UMS support therefore don't know whether to say they need I/O port
access or not, and have to assume they do.

With this change we now call it only to query whether port access might
be needed; we don't use that to determine whether to call a driver's
probe function or not, instead we call them unconditionally.  If the
driver doesn't check whether port access was enabled, they might crash
ungracefully.  To accomodate this, we move xorgHWAccess to be explicitly
intentionally exported (sigh xf86Priv.h) so that drivers can check that
before they attempt port access.

v2: Move initial xf86EnableIO() nearer the logic that determines whether
to call it, suggested by Simon Farnsworth.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-20 11:07:27 -04:00
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Remove XAA 2012-07-10 00:41:57 -07:00
compiler.h Provide prototypes for Mmio functions for Solaris Studio on SPARC 2012-06-05 16:28:54 -07:00
dgaproc.h DGA: Remove excessive module-induced indirection 2012-07-09 23:40:55 -07:00
extramodes Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
modeline2c.awk Remove some OS/2 leftovers. 2009-04-06 10:58:47 -04:00
vesamodes
vidmodeproc.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
xaarop.h xfree86: Drop some dead XAA decls from SDK headers 2012-07-25 14:03:31 -07:00
xf86.h xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES) 2012-09-20 11:07:27 -04:00
xf86AutoConfig.c xf86: include xf86platformBus.h in xf86AutoConfig.c 2012-07-12 19:23:42 -07:00
xf86Build.h.in
xf86Bus.c xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES) 2012-09-20 11:07:27 -04:00
xf86Bus.h xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86Config.c Move DRI2 from external module to built-in 2012-07-10 00:31:01 -07:00
xf86Config.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Configure.c xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES) 2012-09-20 11:07:27 -04:00
xf86Cursor.c xfree86: drop ddx-specific SIGIO blocking 2012-07-03 15:56:35 +10:00
xf86DGA.c DGA: Remove excessive module-induced indirection 2012-07-09 23:40:55 -07:00
xf86DPMS.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86Events.c xf86: call enter/leave VT for gpu screens as well 2012-09-04 16:16:17 +10:00
xf86Extensions.c Remove unused setupFunc from extensions 2012-07-10 00:31:02 -07:00
xf86Extensions.h xf86: Re-export extension disable flags 2012-07-16 18:24:49 -07:00
xf86Globals.c xfree86: add autoAddGPU option (v2) 2012-07-06 10:35:20 +01:00
xf86Helper.c xfree86: add DDX gpu screen support. (v3) 2012-07-06 10:35:19 +01:00
xf86InPriv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Init.c xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES) 2012-09-20 11:07:27 -04:00
xf86Mode.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86Module.h xfree86: Bump extension ABI to 7.0 2012-08-17 16:17:19 -07:00
xf86Opt.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Option.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Optionstr.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86PM.c xfree86: drop ddx-specific SIGIO blocking 2012-07-03 15:56:35 +10:00
xf86PciInfo.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Priv.h xfree86: Change the semantics of driverFunc(GET_REQUIRED_HW_INTERFACES) 2012-09-20 11:07:27 -04:00
xf86Privstr.h xfree86: add autoAddGPU option (v2) 2012-07-06 10:35:20 +01:00
xf86RandR.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86VGAarbiter.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86VGAarbiter.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiterPriv.h api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86VidMode.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86Xinput.c xfree86: fix mouse wheel support for DGA clients 2012-05-23 16:06:27 +10:00
xf86Xinput.h xfree86: constify InputDriverPtr->driverName and default_options 2012-07-02 22:34:33 -07:00
xf86cmap.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86cmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbBus.c xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86fbman.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86fbman.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86noBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86pciBus.c xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86pciBus.h xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86platformBus.c randr: add provider object and provider property support (v6) 2012-07-06 22:16:02 +01:00
xf86platformBus.h xfree86: add platform bus hotplug support (v3) 2012-07-06 10:35:20 +01:00
xf86sbusBus.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
xf86sbusBus.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86str.h xfree86: add framework for provider support in ddx. (v4) 2012-07-06 22:16:08 +01:00
xf86vmode.c Move XFree86-VidMode from extmod to built-in 2012-07-10 00:00:58 -07:00
xf86xv.c Xv: Remove excessive module-induced indirection 2012-07-09 23:28:37 -07:00
xf86xv.h Move Xv and XvMC from extmod to built-in 2012-07-09 23:28:37 -07:00
xf86xvmc.c Xv: Remove excessive module-induced indirection 2012-07-09 23:28:37 -07:00
xf86xvmc.h Xv: Remove excessive module-induced indirection 2012-07-09 23:28:37 -07:00
xf86xvpriv.h xfree86: fix new warnings introduced in rebase. 2012-06-05 10:33:23 -07:00
xisb.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgHelper.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgVersion.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00