summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/pcibus.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-11-15 18:25:17 +0000
committerdfr <dfr@FreeBSD.org>1998-11-15 18:25:17 +0000
commit3331f029dcf961b9a0c91921698fab3803776e51 (patch)
tree8e5245e8023a95c64c3eaa73287b1b208e40849a /sys/alpha/pci/pcibus.h
parent3c5010b4ae34919c54feb47ed85143578ae236cb (diff)
downloadFreeBSD-src-3331f029dcf961b9a0c91921698fab3803776e51.zip
FreeBSD-src-3331f029dcf961b9a0c91921698fab3803776e51.tar.gz
* Add hooks to allow the X server to access I/O ports and memory.
* Update drivers to the latest version of the bus interface. The ISA drivers' use of the new resource api is minimal. Garrett has some much cleaner drivers which should be more easily shared between i386 and alpha. This has only been tested on cia based machines. It should work on lca and apecs but I might have broken something.
Diffstat (limited to 'sys/alpha/pci/pcibus.h')
-rw-r--r--sys/alpha/pci/pcibus.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/sys/alpha/pci/pcibus.h b/sys/alpha/pci/pcibus.h
index eb56cec..38b51b7 100644
--- a/sys/alpha/pci/pcibus.h
+++ b/sys/alpha/pci/pcibus.h
@@ -23,19 +23,17 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: pcibus.h,v 1.1 1998/06/10 10:55:38 dfr Exp $
*/
-typedef int alpha_pci_maxdevs_t(pcicfgregs*);
-typedef int alpha_pci_cfgread_t(pcicfgregs*, int, int);
-typedef void alpha_pci_cfgwrite_t(pcicfgregs*, int, int, int);
-
-struct alpha_pci_ops {
- alpha_pci_maxdevs_t* maxdevs;
- alpha_pci_cfgread_t* cfgread;
- alpha_pci_cfgwrite_t* cfgwrite;
-};
-
-struct alpha_pci_softc {
- struct alpha_pci_ops* ops;
-};
+void pci_init_resources(void);
+struct resource *pci_alloc_resource(device_t bus, device_t child,
+ int type, int *rid,
+ u_long start, u_long end, u_long count,
+ u_int flags);
+int pci_activate_resource(device_t bus, device_t child, int type, int rid,
+ struct resource *r);
+int pci_deactivate_resource(device_t bus, device_t child, int type, int rid,
+ struct resource *r);
+int pci_release_resource(device_t bus, device_t child, int type, int rid,
+ struct resource *r);
OpenPOWER on IntegriCloud