1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-03 17:11:32 +00:00

s/struct device */device_t/g

Submitted by:	kmacy
This commit is contained in:
Adrian Chadd 2016-05-04 23:31:52 +00:00
parent 430f7286a5
commit d17f808fab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299095
2 changed files with 6 additions and 6 deletions

View File

@ -5186,7 +5186,7 @@ find_device(struct devreq *req, device_t *devp)
}
static bool
driver_exists(struct device *bus, const char *driver)
driver_exists(device_t bus, const char *driver)
{
devclass_t dc;

View File

@ -94,7 +94,7 @@ struct resource_i {
rman_res_t r_end; /* index of the last entry (inclusive) */
u_int r_flags;
void *r_virtual; /* virtual address of this resource */
struct device *r_dev; /* device which has allocated this resource */
device_t r_dev; /* device which has allocated this resource */
struct rman *r_rm; /* resource manager from whence this came */
int r_rid; /* optional rid for this resource. */
};
@ -436,7 +436,7 @@ rman_adjust_resource(struct resource *rr, rman_res_t start, rman_res_t end)
struct resource *
rman_reserve_resource_bound(struct rman *rm, rman_res_t start, rman_res_t end,
rman_res_t count, rman_res_t bound, u_int flags,
struct device *dev)
device_t dev)
{
u_int new_rflags;
struct resource_i *r, *s, *rv;
@ -652,7 +652,7 @@ out:
struct resource *
rman_reserve_resource(struct rman *rm, rman_res_t start, rman_res_t end,
rman_res_t count, u_int flags, struct device *dev)
rman_res_t count, u_int flags, device_t dev)
{
return (rman_reserve_resource_bound(rm, start, end, count, 0, flags,
@ -911,13 +911,13 @@ rman_get_rid(struct resource *r)
}
void
rman_set_device(struct resource *r, struct device *dev)
rman_set_device(struct resource *r, device_t dev)
{
r->__r_i->r_dev = dev;
}
struct device *
device_t
rman_get_device(struct resource *r)
{