![]() |
|
|||
0001 /* 0002 * Inline routines shareable across OS platforms. 0003 * 0004 * Copyright (c) 1994-2001 Justin T. Gibbs. 0005 * Copyright (c) 2000-2001 Adaptec Inc. 0006 * All rights reserved. 0007 * 0008 * Redistribution and use in source and binary forms, with or without 0009 * modification, are permitted provided that the following conditions 0010 * are met: 0011 * 1. Redistributions of source code must retain the above copyright 0012 * notice, this list of conditions, and the following disclaimer, 0013 * without modification. 0014 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 0015 * substantially similar to the "NO WARRANTY" disclaimer below 0016 * ("Disclaimer") and any redistribution must be conditioned upon 0017 * including a substantially similar Disclaimer requirement for further 0018 * binary redistribution. 0019 * 3. Neither the names of the above-listed copyright holders nor the names 0020 * of any contributors may be used to endorse or promote products derived 0021 * from this software without specific prior written permission. 0022 * 0023 * Alternatively, this software may be distributed under the terms of the 0024 * GNU General Public License ("GPL") version 2 as published by the Free 0025 * Software Foundation. 0026 * 0027 * NO WARRANTY 0028 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 0029 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 0030 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 0031 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 0032 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 0033 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 0034 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 0035 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 0036 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 0037 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0038 * POSSIBILITY OF SUCH DAMAGES. 0039 * 0040 * $Id: //depot/aic7xxx/aic7xxx/aic7xxx_inline.h#43 $ 0041 * 0042 * $FreeBSD$ 0043 */ 0044 0045 #ifndef _AIC7XXX_INLINE_H_ 0046 #define _AIC7XXX_INLINE_H_ 0047 0048 /************************* Sequencer Execution Control ************************/ 0049 int ahc_is_paused(struct ahc_softc *ahc); 0050 void ahc_pause(struct ahc_softc *ahc); 0051 void ahc_unpause(struct ahc_softc *ahc); 0052 0053 /************************** Memory mapping routines ***************************/ 0054 void ahc_sync_sglist(struct ahc_softc *ahc, 0055 struct scb *scb, int op); 0056 0057 /******************************** Debugging ***********************************/ 0058 static inline char *ahc_name(struct ahc_softc *ahc); 0059 0060 static inline char *ahc_name(struct ahc_softc *ahc) 0061 { 0062 return (ahc->name); 0063 } 0064 0065 /*********************** Miscellaneous Support Functions ***********************/ 0066 0067 struct ahc_initiator_tinfo * 0068 ahc_fetch_transinfo(struct ahc_softc *ahc, 0069 char channel, u_int our_id, 0070 u_int remote_id, 0071 struct ahc_tmode_tstate **tstate); 0072 uint16_t 0073 ahc_inw(struct ahc_softc *ahc, u_int port); 0074 void ahc_outw(struct ahc_softc *ahc, u_int port, 0075 u_int value); 0076 uint32_t 0077 ahc_inl(struct ahc_softc *ahc, u_int port); 0078 void ahc_outl(struct ahc_softc *ahc, u_int port, 0079 uint32_t value); 0080 uint64_t 0081 ahc_inq(struct ahc_softc *ahc, u_int port); 0082 void ahc_outq(struct ahc_softc *ahc, u_int port, 0083 uint64_t value); 0084 struct scb* 0085 ahc_get_scb(struct ahc_softc *ahc); 0086 void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb); 0087 struct scb * 0088 ahc_lookup_scb(struct ahc_softc *ahc, u_int tag); 0089 void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb); 0090 struct scsi_sense_data * 0091 ahc_get_sense_buf(struct ahc_softc *ahc, 0092 struct scb *scb); 0093 0094 /************************** Interrupt Processing ******************************/ 0095 int ahc_intr(struct ahc_softc *ahc); 0096 0097 #endif /* _AIC7XXX_INLINE_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |