aic79xx_osm.h (107437) | aic79xx_osm.h (107623) |
---|---|
1/* 2 * FreeBSD platform specific driver option settings, data structures, 3 * function declarations and includes. 4 * 5 * Copyright (c) 1994-2001 Justin T. Gibbs. 6 * Copyright (c) 2001-2002 Adaptec Inc. 7 * All rights reserved. 8 * --- 16 unchanged lines hidden (view full) --- 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * FreeBSD platform specific driver option settings, data structures, 3 * function declarations and includes. 4 * 5 * Copyright (c) 1994-2001 Justin T. Gibbs. 6 * Copyright (c) 2001-2002 Adaptec Inc. 7 * All rights reserved. 8 * --- 16 unchanged lines hidden (view full) --- 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#18 $ | 33 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#19 $ |
34 * | 34 * |
35 * $FreeBSD: head/sys/dev/aic7xxx/aic79xx_osm.h 107437 2002-12-01 07:50:56Z scottl $ | 35 * $FreeBSD: head/sys/dev/aic7xxx/aic79xx_osm.h 107623 2002-12-04 22:51:29Z scottl $ |
36 */ 37 38#ifndef _AIC79XX_FREEBSD_H_ 39#define _AIC79XX_FREEBSD_H_ 40 41#include <opt_aic79xx.h> /* for config options */ 42 43#include <sys/param.h> --- 190 unchanged lines hidden (view full) --- 234ahd_timer_reset(ahd_timer_t *timer, u_int usec, ahd_callback_t *func, void *arg) 235{ 236 callout_reset(timer, (usec * hz)/1000000, func, arg); 237} 238 239static __inline void 240ahd_scb_timer_reset(struct scb *scb, u_int usec) 241{ | 36 */ 37 38#ifndef _AIC79XX_FREEBSD_H_ 39#define _AIC79XX_FREEBSD_H_ 40 41#include <opt_aic79xx.h> /* for config options */ 42 43#include <sys/param.h> --- 190 unchanged lines hidden (view full) --- 234ahd_timer_reset(ahd_timer_t *timer, u_int usec, ahd_callback_t *func, void *arg) 235{ 236 callout_reset(timer, (usec * hz)/1000000, func, arg); 237} 238 239static __inline void 240ahd_scb_timer_reset(struct scb *scb, u_int usec) 241{ |
242 callout_reset(scb->io_ctx->ccb_h.timeout_ch.callout, 243 (usec * hz)/1000000, ahd_timeout, scb); | 242 untimeout(ahd_timeout, (caddr_t)scb, scb->io_ctx->ccb_h.timeout_ch); 243 scb->io_ctx->ccb_h.timeout_ch = 244 timeout(ahd_timeout, scb, (usec * hz)/1000000); |
244} 245 246/*************************** Device Access ************************************/ 247#define ahd_inb(ahd, port) \ 248 bus_space_read_1((ahd)->tags[(port) >> 8], \ 249 (ahd)->bshs[(port) >> 8], (port) & 0xFF) 250 251#define ahd_outb(ahd, port, value) \ --- 355 unchanged lines hidden --- | 245} 246 247/*************************** Device Access ************************************/ 248#define ahd_inb(ahd, port) \ 249 bus_space_read_1((ahd)->tags[(port) >> 8], \ 250 (ahd)->bshs[(port) >> 8], (port) & 0xFF) 251 252#define ahd_outb(ahd, port, value) \ --- 355 unchanged lines hidden --- |