summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus/puc_cardbus.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-03-27 20:04:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-03-27 20:04:04 +0000
commit21b0b497188e035770e07570c2576e6b17f6162b (patch)
treee14ce391521dc6a786d899fd1229ecf5e116f0a8 /sys/dev/cardbus/puc_cardbus.c
parent7a7a0dd0679765c36528d91de139a78f950b7cc6 (diff)
Bring back cardbus_chipset_tag_t which is in practice a
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t which can be passed to the normal pci functions. Suggested by and ok kettenis@
Diffstat (limited to 'sys/dev/cardbus/puc_cardbus.c')
-rw-r--r--sys/dev/cardbus/puc_cardbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cardbus/puc_cardbus.c b/sys/dev/cardbus/puc_cardbus.c
index f023fdc0786..40022107a54 100644
--- a/sys/dev/cardbus/puc_cardbus.c
+++ b/sys/dev/cardbus/puc_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: puc_cardbus.c,v 1.4 2010/03/22 22:28:27 jsg Exp $ */
+/* $OpenBSD: puc_cardbus.c,v 1.5 2010/03/27 20:04:03 jsg Exp $ */
/*
* Copyright (c) 2006 Michael Shalayeff
@@ -57,7 +57,7 @@ puc_cardbus_match(struct device *parent, void *match, void *aux)
{
struct cardbus_attach_args *ca = aux;
struct cardbus_devfunc *ct = ca->ca_ct;
- pci_chipset_tag_t cc = ct->ct_cc;
+ cardbus_chipset_tag_t cc = ct->ct_cc;
cardbus_function_tag_t cf = ct->ct_cf;
pcireg_t bhlc, reg;
@@ -85,7 +85,7 @@ puc_cardbus_attach(struct device *parent, struct device *self, void *aux)
struct puc_softc *sc = &csc->sc_psc;
struct cardbus_attach_args *ca = aux;
struct cardbus_devfunc *ct = ca->ca_ct;
- pci_chipset_tag_t cc = ct->ct_cc;
+ cardbus_chipset_tag_t cc = ct->ct_cc;
cardbus_function_tag_t cf = ct->ct_cf;
struct puc_attach_args paa;
pcireg_t reg;