From 298ff43a0b9eb3b34a8ebda8734bcc0a9551cf55 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Thu, 16 Mar 2006 21:32:35 +0000 Subject: Move the agpgart handling code to a separate file. Ansify some remaining function declarations in vga_pci.c. ok miod@, dim@. --- sys/dev/pci/vga_pcivar.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/vga_pcivar.h') diff --git a/sys/dev/pci/vga_pcivar.h b/sys/dev/pci/vga_pcivar.h index 4a297cd86d3..491a781d975 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.5 2002/07/12 20:17:03 mickey Exp $ */ +/* $OpenBSD: vga_pcivar.h,v 1.6 2006/03/16 21:32:34 matthieu Exp $ */ /* $NetBSD: vga_pcivar.h,v 1.1 1998/03/22 15:16:19 drochner Exp $ */ /* @@ -67,7 +67,7 @@ struct vga_pci_softc { #if 0 struct vga_config *sc_vc; /* VGA configuration */ #endif - +#ifdef PCIAGP /* agp stuff */ bus_space_tag_t sc_bt, sc_memt; bus_space_handle_t sc_bh; @@ -91,8 +91,10 @@ struct vga_pci_softc { u_int32_t sc_allocated; /* amount allocated */ enum agp_acquire_state sc_state; struct agp_memory_list sc_memory; /* list of allocated memory */ +#endif }; +#ifdef PCIAGP struct agp_product { int ap_vendor; int ap_product; @@ -102,6 +104,11 @@ struct agp_product { /* MD-defined */ extern const struct agp_product agp_products[]; +void agp_attach(struct device *, struct device *, void *); +paddr_t agp_mmap(void *, off_t, int); +int agp_ioctl(void *, u_long, caddr_t, int, struct proc *); +#endif /* PCIAGP */ + int vga_pci_cnattach(bus_space_tag_t, bus_space_tag_t, pci_chipset_tag_t, int, int, int); -- cgit v1.2.3