summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/dino.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/dev/dino.c')
-rw-r--r--sys/arch/hppa/dev/dino.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c
index 780c39c45e9..8a460806f8e 100644
--- a/sys/arch/hppa/dev/dino.c
+++ b/sys/arch/hppa/dev/dino.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dino.c,v 1.28 2010/09/22 02:28:37 jsg Exp $ */
+/* $OpenBSD: dino.c,v 1.29 2010/12/04 17:06:31 miod Exp $ */
/*
* Copyright (c) 2003-2005 Michael Shalayeff
@@ -160,6 +160,7 @@ void dino_attach_hook(struct device *, struct device *,
int dino_maxdevs(void *, int);
pcitag_t dino_make_tag(void *, int, int, int);
void dino_decompose_tag(void *, pcitag_t, int *, int *, int *);
+int dino_conf_size(void *, pcitag_t);
pcireg_t dino_conf_read(void *, pcitag_t, int);
void dino_conf_write(void *, pcitag_t, int, pcireg_t);
int dino_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
@@ -317,6 +318,12 @@ dino_decompose_tag(void *v, pcitag_t tag, int *bus, int *dev, int *func)
*func= (tag >> 8) & 0x07;
}
+int
+dino_conf_size(void *v, pcitag_t tag)
+{
+ return PCI_CONFIG_SPACE_SIZE;
+}
+
pcireg_t
dino_conf_read(void *v, pcitag_t tag, int reg)
{
@@ -1639,7 +1646,7 @@ const struct hppa_bus_dma_tag dino_dmat = {
const struct hppa_pci_chipset_tag dino_pc = {
NULL,
dino_attach_hook, dino_maxdevs, dino_make_tag, dino_decompose_tag,
- dino_conf_read, dino_conf_write,
+ dino_conf_size, dino_conf_read, dino_conf_write,
dino_intr_map, dino_intr_string,
dino_intr_establish, dino_intr_disestablish,
#if NCARDBUS > 0