cam_sim.h (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | cam_sim.h (c447342094276b4d604449bb776063c7b88c4992) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD$ 29 */ 30 31#ifndef _CAM_CAM_SIM_H 32#define _CAM_CAM_SIM_H 1 33 | 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 --- 17 unchanged lines hidden (view full) --- 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD$ 29 */ 30 31#ifndef _CAM_CAM_SIM_H 32#define _CAM_CAM_SIM_H 1 33 |
34#ifdef KERNEL | 34#ifdef _KERNEL |
35 36/* 37 * The sim driver creates a sim for each controller. The sim device 38 * queue is separately created in order to allow resource sharing between 39 * sims. For instance, a driver may create one sim for each channel of 40 * a multi-channel controller and use the same queue for each channel. 41 * In this way, the queue resources are shared across all the channels 42 * of the multi-channel controller. --- 83 unchanged lines hidden (view full) --- 126} 127 128static __inline u_int32_t 129cam_sim_bus(struct cam_sim *sim) 130{ 131 return (sim->bus_id); 132} 133 | 35 36/* 37 * The sim driver creates a sim for each controller. The sim device 38 * queue is separately created in order to allow resource sharing between 39 * sims. For instance, a driver may create one sim for each channel of 40 * a multi-channel controller and use the same queue for each channel. 41 * In this way, the queue resources are shared across all the channels 42 * of the multi-channel controller. --- 83 unchanged lines hidden (view full) --- 126} 127 128static __inline u_int32_t 129cam_sim_bus(struct cam_sim *sim) 130{ 131 return (sim->bus_id); 132} 133 |
134#endif /* KERNEL */ | 134#endif /* _KERNEL */ |
135#endif /* _CAM_CAM_SIM_H */ | 135#endif /* _CAM_CAM_SIM_H */ |