diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-18 19:22:24 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-18 19:22:24 +0000 |
commit | 88c1a45c7766cdc0921e9b16235fd3f48bcb81ac (patch) | |
tree | b760019e8b5055218e7d290b64bc0308b182efc7 /sys/arch/i386/pci/pci_machdep.h | |
parent | b66a90f056a003d62a99e7d226a0dc078f155cd7 (diff) |
Merge of NetBSD 960317
Diffstat (limited to 'sys/arch/i386/pci/pci_machdep.h')
-rw-r--r-- | sys/arch/i386/pci/pci_machdep.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.h b/sys/arch/i386/pci/pci_machdep.h index 56708780ab6..43adfb2dfcb 100644 --- a/sys/arch/i386/pci/pci_machdep.h +++ b/sys/arch/i386/pci/pci_machdep.h @@ -1,4 +1,5 @@ -/* $NetBSD: pci_machdep.h,v 1.3 1995/04/17 12:08:00 cgd Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.2 1996/04/18 19:22:23 niklas Exp $ */ +/* $NetBSD: pci_machdep.h,v 1.4 1996/03/14 02:37:59 cgd Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -60,5 +61,25 @@ typedef union { */ typedef u_int32_t pcireg_t; +/* + * PCs which use Configuration Mechanism #2 are limited to 16 + * devices per bus. + */ +#define PCI_MAX_DEVICE_NUMBER (pci_mode == 2 ? 16 : 32) + +/* + * Hook for PCI bus attach function to do any necessary machine-specific + * operations. + */ + +#define pci_md_attach_hook(parent, sc, pba) \ + do { \ + if (pba->pba_bus == 0) \ + printf(": configuration mode %d", pci_mode); \ + } while (0); + +/* + * Miscellaneous variables and functions. + */ extern int pci_mode; extern int pci_mode_detect __P((void)); |