1/* 2 * Data structures and definitions for SCSI Interface Modules (SIMs). 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $Id: cam_sim.h,v 1.1 1998/09/15 06:33:23 gibbs Exp $ |
29 */ 30 31#ifndef _CAM_CAM_SIM_H 32#define _CAM_CAM_SIM_H 1 33 34#ifdef KERNEL 35 36/* --- 14 unchanged lines hidden (view full) --- 51struct cam_devq * cam_simq_alloc(u_int32_t max_sim_transactions); 52void cam_simq_free(struct cam_devq *devq); 53 54struct cam_sim * cam_sim_alloc(sim_action_func sim_action, 55 sim_poll_func sim_poll, 56 char *sim_name, 57 void *softc, 58 u_int32_t unit, |
59 int max_dev_transactions, 60 int max_tagged_dev_transactions, |
61 struct cam_devq *queue); 62void cam_sim_free(struct cam_sim *sim, int free_devq); 63 64/* Optional sim attributes may be set with these. */ |
65void cam_sim_set_path(struct cam_sim *sim, u_int32_t path_id); 66 67 68 69/* Convenience routines for accessing sim attributes. */ 70static __inline u_int32_t cam_sim_path(struct cam_sim *sim); 71static __inline char * cam_sim_name(struct cam_sim *sim); 72static __inline void * cam_sim_softc(struct cam_sim *sim); --- 15 unchanged lines hidden (view full) --- 88struct cam_sim { 89 sim_action_func sim_action; 90 sim_poll_func sim_poll; 91 char *sim_name; 92 void *softc; 93 u_int32_t path_id;/* The Boot device may set this to 0? */ 94 u_int32_t unit_number; 95 u_int32_t bus_id; |
96 int max_tagged_dev_openings; 97 int max_dev_openings; |
98 u_int32_t flags; 99#define CAM_SIM_REL_TIMEOUT_PENDING 0x01 100 struct callout_handle c_handle; 101 struct cam_devq *devq; /* Device Queue to use for this SIM */ 102}; 103 104static __inline u_int32_t 105cam_sim_path(struct cam_sim *sim) --- 30 unchanged lines hidden --- |