cam_xpt_periph.h (147723) | cam_xpt_periph.h (168752) |
---|---|
1/*- 2 * Data structures and definitions for dealing with the 3 * Common Access Method Transport (xpt) layer from peripheral 4 * drivers. 5 * 6 * Copyright (c) 1997 Justin T. Gibbs. 7 * All rights reserved. 8 * --- 13 unchanged lines hidden (view full) --- 22 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Data structures and definitions for dealing with the 3 * Common Access Method Transport (xpt) layer from peripheral 4 * drivers. 5 * 6 * Copyright (c) 1997 Justin T. Gibbs. 7 * All rights reserved. 8 * --- 13 unchanged lines hidden (view full) --- 22 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/cam/cam_xpt_periph.h 147723 2005-07-01 15:21:30Z avatar $ | 30 * $FreeBSD: head/sys/cam/cam_xpt_periph.h 168752 2007-04-15 08:49:19Z scottl $ |
31 */ 32 33#ifndef _CAM_CAM_XPT_PERIPH_H 34#define _CAM_CAM_XPT_PERIPH_H 1 35 36#include <cam/cam_xpt.h> 37 38/* Functions accessed by the peripheral drivers */ 39#ifdef _KERNEL 40void xpt_polled_action(union ccb *ccb); | 31 */ 32 33#ifndef _CAM_CAM_XPT_PERIPH_H 34#define _CAM_CAM_XPT_PERIPH_H 1 35 36#include <cam/cam_xpt.h> 37 38/* Functions accessed by the peripheral drivers */ 39#ifdef _KERNEL 40void xpt_polled_action(union ccb *ccb); |
41union ccb *xpt_alloc_ccb(void); 42union ccb *xpt_alloc_ccb_nowait(void); | 41union ccb *xpt_alloc_ccb(struct cam_sim *sim); 42union ccb *xpt_alloc_ccb_nowait(struct cam_sim *sim); |
43void xpt_free_ccb(union ccb *free_ccb); 44void xpt_release_ccb(union ccb *released_ccb); 45void xpt_schedule(struct cam_periph *perph, u_int32_t new_priority); 46int32_t xpt_add_periph(struct cam_periph *periph); 47void xpt_remove_periph(struct cam_periph *periph); 48void xpt_announce_periph(struct cam_periph *periph, 49 char *announce_string); 50#endif 51 52#endif /* _CAM_CAM_XPT_PERIPH_H */ | 43void xpt_free_ccb(union ccb *free_ccb); 44void xpt_release_ccb(union ccb *released_ccb); 45void xpt_schedule(struct cam_periph *perph, u_int32_t new_priority); 46int32_t xpt_add_periph(struct cam_periph *periph); 47void xpt_remove_periph(struct cam_periph *periph); 48void xpt_announce_periph(struct cam_periph *periph, 49 char *announce_string); 50#endif 51 52#endif /* _CAM_CAM_XPT_PERIPH_H */ |