cam_sim.h (39212) | cam_sim.h (46581) |
---|---|
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 * | 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$ | 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, | 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 u_int32_t max_dev_transactions, 60 u_int32_t max_tagged_dev_transactions, | 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. */ | 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_basexfer_speed(struct cam_sim *sim, 66 u_int32_t base_xfer_speed); | |
67void cam_sim_set_path(struct cam_sim *sim, u_int32_t path_id); 68 69 70 71/* Convenience routines for accessing sim attributes. */ 72static __inline u_int32_t cam_sim_path(struct cam_sim *sim); 73static __inline char * cam_sim_name(struct cam_sim *sim); 74static __inline void * cam_sim_softc(struct cam_sim *sim); --- 15 unchanged lines hidden (view full) --- 90struct cam_sim { 91 sim_action_func sim_action; 92 sim_poll_func sim_poll; 93 char *sim_name; 94 void *softc; 95 u_int32_t path_id;/* The Boot device may set this to 0? */ 96 u_int32_t unit_number; 97 u_int32_t bus_id; | 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; |
98 u_int32_t base_transfer_speed; /* in kB/s */ 99 u_int32_t max_tagged_dev_openings; 100 u_int32_t max_dev_openings; | 96 int max_tagged_dev_openings; 97 int max_dev_openings; |
101 u_int32_t flags; 102#define CAM_SIM_REL_TIMEOUT_PENDING 0x01 103 struct callout_handle c_handle; 104 struct cam_devq *devq; /* Device Queue to use for this SIM */ 105}; 106 107static __inline u_int32_t 108cam_sim_path(struct cam_sim *sim) --- 30 unchanged lines hidden --- | 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 --- |