diff options
Diffstat (limited to 'sys/arch/alpha/pci/apecs_pci.c')
-rw-r--r-- | sys/arch/alpha/pci/apecs_pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/alpha/pci/apecs_pci.c b/sys/arch/alpha/pci/apecs_pci.c index 9ef26cbf121..a0b5bd1d139 100644 --- a/sys/arch/alpha/pci/apecs_pci.c +++ b/sys/arch/alpha/pci/apecs_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apecs_pci.c,v 1.10 2006/03/26 20:23:08 brad Exp $ */ +/* $OpenBSD: apecs_pci.c,v 1.11 2010/12/04 17:06:31 miod Exp $ */ /* $NetBSD: apecs_pci.c,v 1.10 1996/11/13 21:13:25 cgd Exp $ */ /* @@ -48,6 +48,7 @@ int apecs_bus_maxdevs(void *, int); pcitag_t apecs_make_tag(void *, int, int, int); void apecs_decompose_tag(void *, pcitag_t, int *, int *, int *); +int apecs_conf_size(void *, pcitag_t); pcireg_t apecs_conf_read(void *, pcitag_t, int); void apecs_conf_write(void *, pcitag_t, int, pcireg_t); @@ -62,6 +63,7 @@ apecs_pci_init(pc, v) pc->pc_bus_maxdevs = apecs_bus_maxdevs; pc->pc_make_tag = apecs_make_tag; pc->pc_decompose_tag = apecs_decompose_tag; + pc->pc_conf_size = apecs_conf_size; pc->pc_conf_read = apecs_conf_read; pc->pc_conf_write = apecs_conf_write; } @@ -106,6 +108,12 @@ apecs_decompose_tag(cpv, tag, bp, dp, fp) *fp = (tag >> 8) & 0x7; } +int +apecs_conf_size(void *cpv, pcitag_t tag) +{ + return PCI_CONFIG_SPACE_SIZE; +} + pcireg_t apecs_conf_read(cpv, tag, offset) void *cpv; |