/*-1* Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters2*3* SPDX-License-Identifier: BSD-3-Clause4*5* Copyright (c) 1997 Justin T. Gibbs.6* Copyright (c) 2001, 2002 Adaptec Inc.7* All rights reserved.8*9* Redistribution and use in source and binary forms, with or without10* modification, are permitted provided that the following conditions11* are met:12* 1. Redistributions of source code must retain the above copyright13* notice, this list of conditions, and the following disclaimer,14* without modification.15* 2. Redistributions in binary form must reproduce at minimum a disclaimer16* substantially similar to the "NO WARRANTY" disclaimer below17* ("Disclaimer") and any redistribution must be conditioned upon18* including a substantially similar Disclaimer requirement for further19* binary redistribution.20* 3. Neither the names of the above-listed copyright holders nor the names21* of any contributors may be used to endorse or promote products derived22* from this software without specific prior written permission.23*24* Alternatively, this software may be distributed under the terms of the25* GNU General Public License ("GPL") version 2 as published by the Free26* Software Foundation.27*28* NO WARRANTY29* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS30* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT31* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR32* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT33* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL34* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS35* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)36* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,37* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING38* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE39* POSSIBILITY OF SUCH DAMAGES.40*41* $Id: //depot/aic7xxx/aic7xxx/aicasm/aicasm.h#14 $42*/4344#include <sys/queue.h>4546#ifndef TRUE47#define TRUE 148#endif4950#ifndef FALSE51#define FALSE 052#endif5354typedef struct path_entry {55char *directory;56int quoted_includes_only;57SLIST_ENTRY(path_entry) links;58} *path_entry_t;5960typedef enum {61QUOTED_INCLUDE,62BRACKETED_INCLUDE,63SOURCE_FILE64} include_type;6566SLIST_HEAD(path_list, path_entry);6768extern struct path_list search_path;69extern struct cs_tailq cs_tailq;70extern struct scope_list scope_stack;71extern struct symlist patch_functions;72extern int includes_search_curdir; /* False if we've seen -I- */73extern char *appname;74extern char *stock_include_file;75extern int yylineno;76extern char *yyfilename;77extern char *prefix;78extern char *patch_arg_list;79extern char *versions;80extern int src_mode;81extern int dst_mode;82struct symbol;8384void stop(const char *errstring, int err_code);85void include_file(char *file_name, include_type type);86void expand_macro(struct symbol *macro_symbol);87struct instruction *seq_alloc(void);88struct critical_section *cs_alloc(void);89struct scope *scope_alloc(void);90void process_scope(struct scope *);919293