diff options
| author | dyoung <dyoung@NetBSD.org> | 2010-04-28 19:17:03 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2010-04-28 19:17:03 +0000 |
| commit | 30b2d68d20ff9f4bf182ba96df108cec01e1b0df (patch) | |
| tree | 5e231dcd38ede2dbe2c6d60f6101074413f7389a /sys/dev/pci | |
| parent | d184555b354020d071306e7255762d618c9977d1 (diff) | |
On x86, change the bus_space_tag_t to a pointer to a struct
bus_space_tag. For now, bus_space_tag's only member is
bst_type, the type of space, which is either X86_BUS_SPACE_IO
or X86_BUS_SPACE_MEM. In the future, new bus_space_tag members
will refer to override-functions installed by a new function,
bus_space_tag_create(9).
Add pointers to constant struct bus_space_tag, x86_bus_space_io and
x86_bus_space_mem. Use them to replace most uses of X86_BUS_SPACE_IO
and X86_BUS_SPACE_MEM.
Add an x86-specific bus_space_is_equal(9) implementation that compares
the two tags' bst_type.
Diffstat (limited to 'sys/dev/pci')
| -rw-r--r-- | sys/dev/pci/puccn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/puccn.c b/sys/dev/pci/puccn.c index cd85333d50c..917e3a9642b 100644 --- a/sys/dev/pci/puccn.c +++ b/sys/dev/pci/puccn.c @@ -1,4 +1,4 @@ -/* $NetBSD: puccn.c,v 1.9 2007/01/13 18:59:31 cube Exp $ */ +/* $NetBSD: puccn.c,v 1.10 2010/04/28 19:17:05 dyoung Exp $ */ /* * Derived from pci.c @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: puccn.c,v 1.9 2007/01/13 18:59:31 cube Exp $"); +__KERNEL_RCSID(0, "$NetBSD: puccn.c,v 1.10 2010/04/28 19:17:05 dyoung Exp $"); #include "opt_kgdb.h" @@ -76,7 +76,7 @@ int cpu_comcnprobe(struct consdev *cn, struct pci_attach_args *pa) { pci_mode_detect(); - pa->pa_iot = X86_BUS_SPACE_IO; + pa->pa_iot = x86_bus_space_io; pa->pa_pc = 0; pa->pa_tag = pci_make_tag(0, 0, 31, 0); return 0; |
