summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/pci/vgafb_pcivar.h
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-09-06 02:12:16 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-09-06 02:12:16 +0000
commit718bc35a3f6871a578a50f52a9ddc382d4be6a7d (patch)
treec525a5c21d4782932817d545040509f5e5e3efc6 /sys/arch/powerpc/pci/vgafb_pcivar.h
parentcf7329ef2a79c45d2fd0312719e16fafb8360649 (diff)
Add machine specific vga framebuffer code. Probably should be machine
independant, but not now.
Diffstat (limited to 'sys/arch/powerpc/pci/vgafb_pcivar.h')
-rw-r--r--sys/arch/powerpc/pci/vgafb_pcivar.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/arch/powerpc/pci/vgafb_pcivar.h b/sys/arch/powerpc/pci/vgafb_pcivar.h
new file mode 100644
index 00000000000..ac6d110e893
--- /dev/null
+++ b/sys/arch/powerpc/pci/vgafb_pcivar.h
@@ -0,0 +1,41 @@
+/* $OpenBSD: vgafb_pcivar.h,v 1.1 2000/09/06 02:12:15 rahnds Exp $ */
+/* $NetBSD: vga_pcivar.h,v 1.1 1996/11/19 04:38:36 cgd Exp $ */
+
+/*
+ * Copyright (c) 1995, 1996 Carnegie-Mellon University.
+ * All rights reserved.
+ *
+ * Author: Chris G. Demetriou
+ *
+ * Permission to use, copy, modify and distribute this software and
+ * its documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie the
+ * rights to redistribute these changes.
+ */
+
+#define DEVICE_IS_VGA_PCI(class, id) \
+ (((PCI_CLASS(class) == PCI_CLASS_DISPLAY && \
+ PCI_SUBCLASS(class) == PCI_SUBCLASS_DISPLAY_VGA) || \
+ (PCI_CLASS(class) == PCI_CLASS_PREHISTORIC && \
+ PCI_SUBCLASS(class) == PCI_SUBCLASS_PREHISTORIC_VGA)) ? 1 : 0)
+
+void vgafb_pci_console __P((bus_space_tag_t,
+ u_int32_t ioaddr, u_int32_t iosize,
+ bus_space_tag_t,
+ u_int32_t memaddr, u_int32_t memsize,
+ pci_chipset_tag_t, int, int, int));