aicasm.h revision 23934
1/* 2 * Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice immediately at the beginning of the file, without modification, 12 * this list of conditions, and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. The name of the author may not be used to endorse or promote products 17 * derived from this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * $Id: aic7xxx_asm.h,v 1.1.2.1 1997/03/16 07:21:32 gibbs Exp $ 32 */ 33 34#include <sys/queue.h> 35 36#ifndef TRUE 37#define TRUE 1 38#endif 39 40#ifndef FALSE 41#define FALSE 0 42#endif 43 44typedef struct path_entry { 45 char *directory; 46 int quoted_includes_only; 47 SLIST_ENTRY(path_entry) links; 48} *path_entry_t; 49 50typedef enum { 51 QUOTED_INCLUDE, 52 BRACKETED_INCLUDE, 53 SOURCE_FILE 54} include_type; 55 56SLIST_HEAD(path_list, path_entry); 57 58extern struct path_list search_path; 59extern struct symlist patch_options; 60extern int includes_search_curdir; /* False if we've seen -I- */ 61extern char *appname; 62extern int yylineno; 63extern char *yyfilename; 64 65void stop __P((const char *errstring, int err_code)); 66void include_file __P((char *file_name, include_type type)); 67struct instruction *seq_alloc __P((void)); 68struct patch *patch_alloc __P((void)); 69