summaryrefslogtreecommitdiff
path: root/sys/dev/pci/vga_pcivar.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-22 20:58:31 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-22 20:58:31 +0000
commitd065c7b528dfed5d862c8795d93c82e408e6b233 (patch)
tree9c3058f1f3836323b1a1b51d744ab4f932a38f19 /sys/dev/pci/vga_pcivar.h
parent7b959cd690cfec8cb2bcccda87e50741c8e2440a (diff)
Split out the bar functions required to attach drm(4) to share them
with macppc's vgafb(4) and maybe later on sparc64 drivers too. suggested by and ok kettenis@
Diffstat (limited to 'sys/dev/pci/vga_pcivar.h')
-rw-r--r--sys/dev/pci/vga_pcivar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/vga_pcivar.h b/sys/dev/pci/vga_pcivar.h
index 249004a1d93..defbc7a1ddb 100644
--- a/sys/dev/pci/vga_pcivar.h
+++ b/sys/dev/pci/vga_pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga_pcivar.h,v 1.14 2010/08/08 17:21:07 miod Exp $ */
+/* $OpenBSD: vga_pcivar.h,v 1.15 2012/08/22 20:58:30 mpi Exp $ */
/* $NetBSD: vga_pcivar.h,v 1.1 1998/03/22 15:16:19 drochner Exp $ */
/*
@@ -85,11 +85,16 @@ struct vga_pci_softc {
int vga_pci_cnattach(bus_space_tag_t, bus_space_tag_t,
pci_chipset_tag_t, int, int, int);
+void vga_pci_bar_init(struct vga_pci_softc *, struct pci_attach_args *);
struct vga_pci_bar *vga_pci_bar_info(struct vga_pci_softc *, int);
struct vga_pci_bar *vga_pci_bar_map(struct vga_pci_softc *, int,
bus_size_t, int);
void vga_pci_bar_unmap(struct vga_pci_bar*);
+#if NDRM > 0
+int drmsubmatch(struct device *, void *, void *);
+#endif
+
#ifdef VESAFB
int vesafb_find_mode(struct vga_pci_softc *, int, int, int);
void vesafb_set_mode(struct vga_pci_softc *, int);