2005-08-02 02:41:07 +02:00
|
|
|
noinst_LTLIBRARIES = liblinux.la
|
|
|
|
|
2005-09-20 00:44:49 +02:00
|
|
|
if LINUX_ALPHA
|
2007-01-10 17:04:20 +01:00
|
|
|
noinst_LTLIBRARIES += liblinuxev56.la
|
|
|
|
PLATFORM_PCI_SUPPORT = \
|
2005-11-18 23:43:50 +01:00
|
|
|
$(srcdir)/lnx_axp.c \
|
2005-09-20 00:44:49 +02:00
|
|
|
$(srcdir)/../shared/xf86Axp.c
|
2007-01-10 17:04:20 +01:00
|
|
|
|
2007-08-20 12:57:06 +02:00
|
|
|
liblinuxev56_la_CFLAGS = $(AM_CFLAGS) -mcpu=ev56
|
2007-01-10 17:04:20 +01:00
|
|
|
|
|
|
|
liblinuxev56_la_SOURCES = lnx_ev56.c
|
2005-09-20 00:44:49 +02:00
|
|
|
endif
|
2005-08-02 02:41:07 +02:00
|
|
|
|
2006-05-09 20:04:29 +02:00
|
|
|
if LNXACPI
|
2006-11-04 17:59:39 +01:00
|
|
|
ACPI_SRCS = lnx_acpi.c lnx_apm.c
|
2006-05-09 20:04:29 +02:00
|
|
|
XORG_CFLAGS += -DHAVE_ACPI
|
|
|
|
endif
|
|
|
|
|
|
|
|
if LNXAPM
|
2006-11-04 17:59:39 +01:00
|
|
|
APM_SRCS = lnx_apm.c
|
2006-05-09 20:04:29 +02:00
|
|
|
XORG_CFLAGS += -DHAVE_APM
|
|
|
|
endif
|
|
|
|
|
2014-01-07 12:15:12 +01:00
|
|
|
if SYSTEMD_LOGIND
|
|
|
|
LOGIND_SRCS = systemd-logind.c
|
|
|
|
XORG_CFLAGS += $(DBUS_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2008-06-27 11:20:56 +02:00
|
|
|
liblinux_la_SOURCES = lnx_init.c lnx_video.c \
|
xfree86: use udev to provide device enumeration for kms devices (v10)
On Linux in order for future hotplug work, we are required to interface
to udev to detect device creation/removal. In order to try and get
some earlier testing on this, this patch adds the ability to use
udev for device enumeration on Linux.
At startup the list of drm/kms devices is probed and this info is
used to load drivers.
A new driver probing method is introduced that passes the udev
device info to the driver for probing.
The probing integrates with the pci probing code and will fallback
to the pci probe and old school probe functions in turn.
The flags parameter to the probe function will be used later
to provide hotplug and gpu screen flags for the driver to behave
in a different way.
This patch changes the driver ABI, all drivers should at least
be set with a NULL udev probe function after this commit.
v2: rename to platform bus, now with 100% less udev specific,
this version passes config_odev_attribs around which are an array
of id/string pairs, then the udev code can attach the set of attribs
it understands, the OS specific code can attach its attrib, and then
the core/drivers can lookup the required attribs.
also add MATCH_PCI_DEVICES macro.
This version is mainly to address concerns raised by ajax.
v3: Address comments from Peter.
fix whitespace that snuck in.
rework to use a linked list with some core functions that
xf86 wraps.
v4: add free list, fix struct whitespace.
ajax this address most of your issues?
v5: drop probe ifdef, fix logic issue
v6: some overhaul after more testing.
Implement primaryBus for platform devices.
document hotplug.h dev attribs - drop sysname attrib
fix build with udev kms disabled
make probing work like the PCI probe code,
match against bus id if one exists, or primary device.
RFC: add new bus id support "PLAT:syspath". we probably
want to match on this a bit different, or use a different
property maybe. I was mainly wanting this for use with
specifying usb devices in xorg.conf directly, but PLAT:path
could also work I suppose.
v6.1: add missing noop platform function
v7: fix two interactions with pci probing and slot claiming, prevents
pci and platform trying to load two drivers for same slot.
v8: test with zaphod mode on -ati driver, fixup resulting issue
clean up common probe code into another function, change busid
matching to allow dropping end of strings.
v9: fix platform probing logic so it actually works.
v9.1: fix pdev init to NULL properly.
v10: address most of Keith's concerns.
v4 was thanks to Reviewed-by: Adam Jackson <ajax@redhat.com>
v5 was Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-08 15:26:47 +02:00
|
|
|
lnx_agp.c lnx_kmod.c lnx_bell.c lnx_platform.c \
|
2005-07-02 20:59:44 +02:00
|
|
|
$(srcdir)/../shared/VTsw_usl.c \
|
|
|
|
$(srcdir)/../shared/posix_tty.c \
|
|
|
|
$(srcdir)/../shared/vidmem.c \
|
|
|
|
$(srcdir)/../shared/sigio.c \
|
2006-11-04 17:59:39 +01:00
|
|
|
$(ACPI_SRCS) \
|
|
|
|
$(APM_SRCS) \
|
2014-01-07 12:15:12 +01:00
|
|
|
$(LOGIND_SRCS) \
|
2005-08-02 02:41:07 +02:00
|
|
|
$(PLATFORM_PCI_SUPPORT)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2006-11-07 21:49:28 +01:00
|
|
|
AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(DIX_CFLAGS) $(XORG_CFLAGS) $(PLATFORM_DEFINES)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2013-08-06 05:08:13 +02:00
|
|
|
AM_CPPFLAGS = $(XORG_INCS) $(PLATFORM_INCLUDES) $(LIBDRM_CFLAGS)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2005-09-21 01:32:21 +02:00
|
|
|
$(srcdir)/../shared/xf86Axp.h
|
2007-01-10 17:04:20 +01:00
|
|
|
|
|
|
|
if LINUX_ALPHA
|
|
|
|
liblinux_la_LIBADD = liblinuxev56.la
|
|
|
|
endif
|