summaryrefslogtreecommitdiffstats
path: root/sys/pci/pcivar.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-10-06 14:18:40 +0000
committerdfr <dfr@FreeBSD.org>1998-10-06 14:18:40 +0000
commit685a5b889f6d81b2b242340f505aceacc862b28e (patch)
treeb7a83790377c30fcb1ccae004877f46dc78bea77 /sys/pci/pcivar.h
parent5c811970f93597f910f75c2df6a06a262c02984f (diff)
downloadFreeBSD-src-685a5b889f6d81b2b242340f505aceacc862b28e.zip
FreeBSD-src-685a5b889f6d81b2b242340f505aceacc862b28e.tar.gz
Add functions for accessing dense and bwx memory for pci devices. These
routines are necessary to allow the use of certain types of hardware on the alpha, particularly a Myrinet card. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/pci/pcivar.h')
-rw-r--r--sys/pci/pcivar.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h
index f18b2b9..13e9991 100644
--- a/sys/pci/pcivar.h
+++ b/sys/pci/pcivar.h
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcivar.h,v 1.20 1998/08/13 19:12:20 gibbs Exp $
+ * $Id: pcivar.h,v 1.21 1998/09/15 08:21:09 gibbs Exp $
*
*/
@@ -178,7 +178,10 @@ void pci_drvattach(struct pci_devinfo *dinfo);
int pci_cfgopen (void);
int pci_cfgread (pcicfgregs *cfg, int reg, int bytes);
void pci_cfgwrite (pcicfgregs *cfg, int reg, int data, int bytes);
-
+#ifdef __alpha__
+vm_offset_t pci_cvt_to_dense (vm_offset_t);
+vm_offset_t pci_cvt_to_bwx (vm_offset_t);
+#endif /* __alpha__ */
/* for compatibility to FreeBSD-2.2 version of PCI code */
#ifdef PCI_COMPAT
@@ -218,6 +221,8 @@ void pci_conf_write (pcici_t tag, u_long reg, u_long data);
void pci_configure (void);
int pci_map_port (pcici_t tag, u_long reg, pci_port_t* pa);
int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
+int pci_map_dense (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
+int pci_map_bwx (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
int pci_unmap_int (pcici_t tag);
int pci_register_lkm (struct pci_device *dvp, int if_revision);
OpenPOWER on IntegriCloud