summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt_sim.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-06-17 05:55:54 +0000
committerscottl <scottl@FreeBSD.org>2007-06-17 05:55:54 +0000
commitff584e70faf04177b3d2b50035e4e0031ad7e655 (patch)
tree1f069a0af9a8c28e09089c8dc789bcd435a94cce /sys/cam/cam_xpt_sim.h
parent001175ac64443d5853311173ea76dffb961d6c9f (diff)
downloadFreeBSD-src-ff584e70faf04177b3d2b50035e4e0031ad7e655.zip
FreeBSD-src-ff584e70faf04177b3d2b50035e4e0031ad7e655.tar.gz
Prepare for future integration between CAM and newbus. xpt_bus_register
now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE.
Diffstat (limited to 'sys/cam/cam_xpt_sim.h')
-rw-r--r--sys/cam/cam_xpt_sim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt_sim.h b/sys/cam/cam_xpt_sim.h
index 603c9ef..d824093 100644
--- a/sys/cam/cam_xpt_sim.h
+++ b/sys/cam/cam_xpt_sim.h
@@ -37,7 +37,8 @@
/* Functions accessed by SIM drivers */
#ifdef _KERNEL
-int32_t xpt_bus_register(struct cam_sim *sim, u_int32_t bus);
+int32_t xpt_bus_register(struct cam_sim *sim, device_t parent,
+ u_int32_t bus);
int32_t xpt_bus_deregister(path_id_t path_id);
u_int32_t xpt_freeze_simq(struct cam_sim *sim, u_int count);
void xpt_release_simq(struct cam_sim *sim, int run_queue);
OpenPOWER on IntegriCloud