summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tht.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-07-22 03:53:07 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-07-22 03:53:07 +0000
commited072ac0ffa5ca474cdaccb340e83268bb44b846 (patch)
tree6c822ed36b88053c4770ab98c6ec03e068a34be0 /sys/dev/pci/if_tht.c
parent7eb6c07caf1423902ef35e7f2d2be7a4cdcf5fca (diff)
the softc variable is sc, not sp.
Diffstat (limited to 'sys/dev/pci/if_tht.c')
-rw-r--r--sys/dev/pci/if_tht.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 1e9d0d70ace..2b8a77abc94 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.106 2007/05/28 06:34:06 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.107 2007/07/22 03:53:06 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1801,10 +1801,10 @@ tht_write_region(struct tht_softc *sc, bus_size_t r, void *buf, size_t len)
}
int
-tht_wait_eq(struct tht_softc *sp, bus_size_t r, u_int32_t m, u_int32_t v,
+tht_wait_eq(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
int timeout)
{
- while ((tht_read(sp, r) & m) != v) {
+ while ((tht_read(sc, r) & m) != v) {
if (timeout == 0)
return (0);
@@ -1816,10 +1816,10 @@ tht_wait_eq(struct tht_softc *sp, bus_size_t r, u_int32_t m, u_int32_t v,
}
int
-tht_wait_ne(struct tht_softc *sp, bus_size_t r, u_int32_t m, u_int32_t v,
+tht_wait_ne(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
int timeout)
{
- while ((tht_read(sp, r) & m) == v) {
+ while ((tht_read(sc, r) & m) == v) {
if (timeout == 0)
return (0);