cam_xpt.h (95ee2897e98f5d444f26ed2334cc7c439f9c16c6) | cam_xpt.h (70f2356d364fdb7e2ff5487ae03125a338defd54) |
---|---|
1/*- 2 * Data structures and definitions for dealing with the 3 * Common Access Method Transport (xpt) layer. 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 * 7 * Copyright (c) 1997 Justin T. Gibbs. 8 * All rights reserved. --- 19 unchanged lines hidden (view full) --- 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef _CAM_CAM_XPT_H 33#define _CAM_CAM_XPT_H 1 34 35#ifdef _KERNEL | 1/*- 2 * Data structures and definitions for dealing with the 3 * Common Access Method Transport (xpt) layer. 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 * 7 * Copyright (c) 1997 Justin T. Gibbs. 8 * All rights reserved. --- 19 unchanged lines hidden (view full) --- 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef _CAM_CAM_XPT_H 33#define _CAM_CAM_XPT_H 1 34 35#ifdef _KERNEL |
36#include <sys/cdefs.h> | |
37#include <cam/cam_ccb.h> 38#endif | 36#include <cam/cam_ccb.h> 37#endif |
38#include <sys/sbuf.h> |
|
39 40/* Forward Declarations */ 41union ccb; 42struct cam_periph; 43struct cam_ed; 44struct cam_sim; | 39 40/* Forward Declarations */ 41union ccb; 42struct cam_periph; 43struct cam_ed; 44struct cam_sim; |
45struct sbuf; | |
46 47/* 48 * Definition of a CAM path. Paths are created from bus, target, and lun ids 49 * via xpt_create_path and allow for reference to devices without recurring 50 * lookups in the edt. 51 */ 52struct cam_path; 53 --- 54 unchanged lines hidden (view full) --- 108int xpt_path_sbuf(struct cam_path *path, struct sbuf *sb); 109path_id_t xpt_path_path_id(struct cam_path *path); 110target_id_t xpt_path_target_id(struct cam_path *path); 111lun_id_t xpt_path_lun_id(struct cam_path *path); 112struct cam_sim *xpt_path_sim(struct cam_path *path); 113struct cam_periph *xpt_path_periph(struct cam_path *path); 114device_t xpt_path_sim_device(const struct cam_path *path); 115void xpt_print_path(struct cam_path *path); | 45 46/* 47 * Definition of a CAM path. Paths are created from bus, target, and lun ids 48 * via xpt_create_path and allow for reference to devices without recurring 49 * lookups in the edt. 50 */ 51struct cam_path; 52 --- 54 unchanged lines hidden (view full) --- 107int xpt_path_sbuf(struct cam_path *path, struct sbuf *sb); 108path_id_t xpt_path_path_id(struct cam_path *path); 109target_id_t xpt_path_target_id(struct cam_path *path); 110lun_id_t xpt_path_lun_id(struct cam_path *path); 111struct cam_sim *xpt_path_sim(struct cam_path *path); 112struct cam_periph *xpt_path_periph(struct cam_path *path); 113device_t xpt_path_sim_device(const struct cam_path *path); 114void xpt_print_path(struct cam_path *path); |
116void xpt_print_device(struct cam_ed *device); | |
117void xpt_print(struct cam_path *path, const char *fmt, ...); 118void xpt_async(uint32_t async_code, struct cam_path *path, 119 void *async_arg); 120void xpt_rescan(union ccb *ccb); 121void xpt_hold_boot(void); 122void xpt_release_boot(void); 123void xpt_lock_buses(void); 124void xpt_unlock_buses(void); --- 41 unchanged lines hidden --- | 115void xpt_print(struct cam_path *path, const char *fmt, ...); 116void xpt_async(uint32_t async_code, struct cam_path *path, 117 void *async_arg); 118void xpt_rescan(union ccb *ccb); 119void xpt_hold_boot(void); 120void xpt_release_boot(void); 121void xpt_lock_buses(void); 122void xpt_unlock_buses(void); --- 41 unchanged lines hidden --- |