summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa.c
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2000-10-20 02:42:06 +0000
committerkato <kato@FreeBSD.org>2000-10-20 02:42:06 +0000
commit22dd9a09205d790842126088a2641c1eb71440f3 (patch)
tree3511a40fc4c73c9100187ba3193d0d4461d62e60 /sys/i386/isa/isa.c
parent137e25332f0d1c346e5e7688cd0e4bb2b7c4a928 (diff)
downloadFreeBSD-src-22dd9a09205d790842126088a2641c1eb71440f3.zip
FreeBSD-src-22dd9a09205d790842126088a2641c1eb71440f3.tar.gz
Convert the type of bus_space_handle_t of pc98 from structure into
pointer to structure. Reviewed by: nyan
Diffstat (limited to 'sys/i386/isa/isa.c')
-rw-r--r--sys/i386/isa/isa.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index ab9427d..3c7ecb9 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -187,8 +187,8 @@ isa_alloc_resourcev(device_t child, int type, int *rid,
}
}
- re->r_bushandle.bsh_res = bsre;
- re->r_bushandle.bsh_ressz = ressz;
+ re->r_bushandle->bsh_res = bsre;
+ re->r_bushandle->bsh_ressz = ressz;
return re;
}
@@ -207,8 +207,8 @@ isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_t count)
addr[i] = rman_get_start(re) + res[i];
rman_set_bustag(re, I386_BUS_SPACE_IO_IND);
- re->r_bushandle.bsh_iat = addr;
- re->r_bushandle.bsh_iatsz = count;
+ re->r_bushandle->bsh_iat = addr;
+ re->r_bushandle->bsh_iatsz = count;
return 0;
}
@@ -227,13 +227,13 @@ isa_release_resource(device_t bus, device_t child, int type, int rid,
*/
int i;
- for (i = 1; i < r->r_bushandle.bsh_ressz; i++)
+ for (i = 1; i < r->r_bushandle->bsh_ressz; i++)
resource_list_release(rl, bus, child, type, rid + i,
- r->r_bushandle.bsh_res[i]);
- if (r->r_bushandle.bsh_res != NULL)
- free(r->r_bushandle.bsh_res, M_DEVBUF);
- if (r->r_bushandle.bsh_iat != NULL)
- free(r->r_bushandle.bsh_iat, M_DEVBUF);
+ r->r_bushandle->bsh_res[i]);
+ if (r->r_bushandle->bsh_res != NULL)
+ free(r->r_bushandle->bsh_res, M_DEVBUF);
+ if (r->r_bushandle->bsh_iat != NULL)
+ free(r->r_bushandle->bsh_iat, M_DEVBUF);
#endif
return resource_list_release(rl, bus, child, type, rid, r);
}
OpenPOWER on IntegriCloud