aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-07-03 20:48:01 +0000
committerWarner Losh <imp@FreeBSD.org>2004-07-03 20:48:01 +0000
commit8acf75a06d94632ca88dff5b966663e6df9d2a4f (patch)
treeb4d846d8c5843671489367323b32a50ff7f01e03 /sys/sparc64/fhc/fhc.c
parent8b68b82381f127b67933c6f1f4a158e6542a2b32 (diff)
downloadsrc-8acf75a06d94632ca88dff5b966663e6df9d2a4f.tar.gz
src-8acf75a06d94632ca88dff5b966663e6df9d2a4f.zip
Use the rman_* functions in preference to reaching into struct resource.
Remove __RMAN_RESOURCE_VISIBLE after compilation confirms it is now not needed.
Notes
Notes: svn path=/head/; revision=131535
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index e6cde2ae4d59..883fb28657e7 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -237,7 +237,7 @@ fhc_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
fc->fc_bh = sc->sc_bh[rid];
bus_space_write_4(sc->sc_bt[rid], sc->sc_bh[rid], FHC_IMAP,
- r->r_start);
+ rman_get_start(r));
bus_space_read_4(sc->sc_bt[rid], sc->sc_bh[rid], FHC_IMAP);
error = bus_generic_setup_intr(bus, child, r, flags, fhc_intr_stub,
@@ -251,7 +251,7 @@ fhc_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
bus_space_write_4(sc->sc_bt[rid], sc->sc_bh[rid], FHC_ICLR, 0x0);
bus_space_write_4(sc->sc_bt[rid], sc->sc_bh[rid], FHC_IMAP,
- INTMAP_ENABLE(r->r_start, PCPU_GET(mid)));
+ INTMAP_ENABLE(rman_get_start(r), PCPU_GET(mid)));
bus_space_read_4(sc->sc_bt[rid], sc->sc_bh[rid], FHC_IMAP);
return (error);