summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-08-02 19:26:09 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:47:03 +1000
commitbea87e2da8588e1d1ac7fd0192ced15fd20eb569 (patch)
tree22a4fc93dc9502ff910df8f470e9e3b463b5d83e
parent6cb4529621a644e6830442583094d4016eccf485 (diff)
fix macppc build
-rw-r--r--sys/dev/pci/drm/radeon/radeon_kms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c
index cb961745076..0382a3b3a66 100644
--- a/sys/dev/pci/drm/radeon/radeon_kms.c
+++ b/sys/dev/pci/drm/radeon/radeon_kms.c
@@ -1539,7 +1539,7 @@ radeondrm_attach_kms(struct device *parent, struct device *self, void *aux)
#ifdef __sparc64__
extern int fbnode;
-#else
+#elif !defined(__macppc__)
extern int vga_console_attached;
#endif
@@ -1562,7 +1562,9 @@ radeondrm_attach_kms(struct device *parent, struct device *self, void *aux)
& (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE))
== (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE)) {
rdev->console = 1;
+#ifndef __macppc__
vga_console_attached = 1;
+#endif
}
#endif
@@ -1679,7 +1681,7 @@ radeondrm_forcedetach(struct radeon_device *rdev)
struct pci_softc *sc = (struct pci_softc *)rdev->dev.dv_parent;
pcitag_t tag = rdev->pa_tag;
-#ifndef __sparc64__
+#if !defined(__sparc64__) && !defined(__macppc__)
if (rdev->console) {
extern int vga_console_attached;
vga_console_attached = 0;