linux/drivers/scsi/sym53c8xx_2/sym_misc.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Device driver for the SYMBIOS/LSILOGIC 53C8XX and 53C1010 family 
 * of PCI-SCSI IO processors.
 *
 * Copyright (C) 1999-2001  Gerard Roudier <[email protected]>
 *
 * This driver is derived from the Linux sym53c8xx driver.
 * Copyright (C) 1998-2000  Gerard Roudier
 *
 * The sym53c8xx driver is derived from the ncr53c8xx driver that had been 
 * a port of the FreeBSD ncr driver to Linux-1.2.13.
 *
 * The original ncr driver has been written for 386bsd and FreeBSD by
 *         Wolfgang Stanglmeier        <[email protected]>
 *         Stefan Esser                <[email protected]>
 * Copyright (C) 1994  Wolfgang Stanglmeier
 *
 * Other major contributions:
 *
 * NVRAM detection and reading.
 * Copyright (C) 1997 Richard Waltham <[email protected]>
 *
 *-----------------------------------------------------------------------------
 */

#ifndef SYM_MISC_H
#define SYM_MISC_H

/*
 *  A la VMS/CAM-3 queue management.
 */
SYM_QUEHEAD;

#define sym_que_init(ptr)

static inline struct sym_quehead *sym_que_first(struct sym_quehead *head)
{}

static inline struct sym_quehead *sym_que_last(struct sym_quehead *head)
{}

static inline void __sym_que_add(struct sym_quehead * new,
	struct sym_quehead * blink,
	struct sym_quehead * flink)
{}

static inline void __sym_que_del(struct sym_quehead * blink,
	struct sym_quehead * flink)
{}

static inline int sym_que_empty(struct sym_quehead *head)
{}

static inline void sym_que_splice(struct sym_quehead *list,
	struct sym_quehead *head)
{}

static inline void sym_que_move(struct sym_quehead *orig,
	struct sym_quehead *dest)
{}

#define sym_que_entry(ptr, type, member)

#define sym_insque(new, pos)

#define sym_remque(el)

#define sym_insque_head(new, head)

static inline struct sym_quehead *sym_remque_head(struct sym_quehead *head)
{}

#define sym_insque_tail(new, head)

static inline struct sym_quehead *sym_remque_tail(struct sym_quehead *head)
{}

/*
 *  This one may be useful.
 */
#define FOR_EACH_QUEUED_ELEMENT(head, qp)
/*
 *  FreeBSD does not offer our kind of queue in the CAM CCB.
 *  So, we have to cast.
 */
#define sym_qptr(p)

/*
 *  Simple bitmap operations.
 */ 
#define sym_set_bit(p, n)
#define sym_clr_bit(p, n)
#define sym_is_bit(p, n)

/*
 * The below round up/down macros are to be used with a constant 
 * as argument (sizeof(...) for example), for the compiler to 
 * optimize the whole thing.
 */
#define _U_(a,m)

/*
 * Round up logarithm to base 2 of a 16 bit constant.
 */
#define _LGRU16_(a)

#endif /* SYM_MISC_H */