/*-1* Data structures and definitions for dealing with the2* Common Access Method Transport (xpt) layer from peripheral3* drivers.4*5* SPDX-License-Identifier: BSD-2-Clause6*7* Copyright (c) 1997 Justin T. Gibbs.8* All rights reserved.9*10* Redistribution and use in source and binary forms, with or without11* modification, are permitted provided that the following conditions12* are met:13* 1. Redistributions of source code must retain the above copyright14* notice, this list of conditions, and the following disclaimer,15* without modification, immediately at the beginning of the file.16* 2. The name of the author may not be used to endorse or promote products17* derived from this software without specific prior written permission.18*19* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND20* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE21* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE22* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR23* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL24* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS25* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)26* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT27* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY28* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF29* SUCH DAMAGE.30*/3132#ifndef _CAM_CAM_XPT_PERIPH_H33#define _CAM_CAM_XPT_PERIPH_H 13435#include <cam/cam_queue.h>36#include <cam/cam_xpt.h>3738/* Functions accessed by the peripheral drivers */39#ifdef _KERNEL40void xpt_release_ccb(union ccb *released_ccb);41void xpt_schedule(struct cam_periph *perph, uint32_t new_priority);42int32_t xpt_add_periph(struct cam_periph *periph);43void xpt_remove_periph(struct cam_periph *periph);44void xpt_announce_periph(struct cam_periph *periph,45char *announce_string);46void xpt_announce_periph_sbuf(struct cam_periph *periph,47struct sbuf *sb,48char *announce_string);49void xpt_announce_quirks(struct cam_periph *periph,50int quirks, char *bit_string);51void xpt_announce_quirks_sbuf(struct cam_periph *periph,52struct sbuf *sb,53int quirks, char *bit_string);54void xpt_denounce_periph(struct cam_periph *periph);55void xpt_denounce_periph_sbuf(struct cam_periph *periph, struct sbuf *sb);56#endif5758#endif /* _CAM_CAM_XPT_PERIPH_H */596061