summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt_sim.h
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2000-01-14 23:08:46 +0000
committergibbs <gibbs@FreeBSD.org>2000-01-14 23:08:46 +0000
commit8fe9ae191dfd796ac7c7441e8d2dbb91c556beb7 (patch)
tree01bf62b11d3f5f52a7a7c36ebda5bb97ca8d34e6 /sys/cam/cam_xpt_sim.h
parent395ce1979423b0e81acfc56912756a7e56474d81 (diff)
downloadFreeBSD-src-8fe9ae191dfd796ac7c7441e8d2dbb91c556beb7.zip
FreeBSD-src-8fe9ae191dfd796ac7c7441e8d2dbb91c556beb7.tar.gz
Clean up the xpt_sim creation to mirror how HBA drivers perform this task.
Clean up node creation in the EDT so that initialization follows member declaration. Sort registered paths by pathid so that we probe busses in order of ascending pathid. This makes hardwiring of busses without wiring individual targets do what the user expects. (submitted by tegge@FreeBSD.org) Fix an EDT node leak. Target nodes would never go away. Implement xpt_bus_deregister(). (prodded by some patches from T. Ichinoseki, but implemented differently.)
Diffstat (limited to 'sys/cam/cam_xpt_sim.h')
-rw-r--r--sys/cam/cam_xpt_sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt_sim.h b/sys/cam/cam_xpt_sim.h
index 62a53ec..04053206 100644
--- a/sys/cam/cam_xpt_sim.h
+++ b/sys/cam/cam_xpt_sim.h
@@ -38,7 +38,7 @@
/* Functions accessed by SIM drivers */
#ifdef _KERNEL
int32_t xpt_bus_register(struct cam_sim *sim, u_int32_t bus);
-int32_t xpt_bus_deregister(u_int8_t path_id);
+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);
u_int32_t xpt_freeze_devq(struct cam_path *path, u_int count);
OpenPOWER on IntegriCloud