Deleted Added
full compact
aicasm.h (79873) aicasm.h (95376)
1/*
2 * Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
1/*
2 * Assembler for the sequencer program downloaded to Aic7xxx SCSI host adapters
3 *
4 * Copyright (c) 1997 Justin T. Gibbs.
5 * Copyright (c) 2001 Adaptec Inc.
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, this list of conditions, and the following disclaimer,
12 * without modification.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions, and the following disclaimer,
13 * without modification.
13 * 2. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
14 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
15 * substantially similar to the "NO WARRANTY" disclaimer below
16 * ("Disclaimer") and any redistribution must be conditioned upon
17 * including a substantially similar Disclaimer requirement for further
18 * binary redistribution.
19 * 3. Neither the names of the above-listed copyright holders nor the names
20 * of any contributors may be used to endorse or promote products derived
21 * from this software without specific prior written permission.
15 *
16 * Alternatively, this software may be distributed under the terms of the
22 *
23 * Alternatively, this software may be distributed under the terms of the
17 * GNU Public License ("GPL").
24 * GNU General Public License ("GPL") version 2 as published by the Free
25 * Software Foundation.
18 *
26 *
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
27 * NO WARRANTY
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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)
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * 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.
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGES.
30 *
39 *
31 * $Id: //depot/src/aic7xxx/aicasm/aicasm.h#5 $
40 * $Id: //depot/aic7xxx/aic7xxx/aicasm/aicasm.h#9 $
32 *
41 *
33 * $FreeBSD: head/sys/dev/aic7xxx/aicasm/aicasm.h 79873 2001-07-18 21:03:32Z gibbs $
42 * $FreeBSD: head/sys/dev/aic7xxx/aicasm/aicasm.h 95376 2002-04-24 16:24:43Z gibbs $
34 */
35
36#ifdef __linux__
37#include "../queue.h"
38#else
39#include <sys/queue.h>
40#endif
41

--- 22 unchanged lines hidden (view full) ---

64extern struct path_list search_path;
65extern struct cs_tailq cs_tailq;
66extern struct scope_list scope_stack;
67extern struct symlist patch_functions;
68extern int includes_search_curdir; /* False if we've seen -I- */
69extern char *appname;
70extern int yylineno;
71extern char *yyfilename;
43 */
44
45#ifdef __linux__
46#include "../queue.h"
47#else
48#include <sys/queue.h>
49#endif
50

--- 22 unchanged lines hidden (view full) ---

73extern struct path_list search_path;
74extern struct cs_tailq cs_tailq;
75extern struct scope_list scope_stack;
76extern struct symlist patch_functions;
77extern int includes_search_curdir; /* False if we've seen -I- */
78extern char *appname;
79extern int yylineno;
80extern char *yyfilename;
81extern char *patch_arg_list;
72extern char *versions;
82extern char *versions;
83extern int src_mode;
84extern int dst_mode;
85struct symbol;
73
74void stop(const char *errstring, int err_code);
75void include_file(char *file_name, include_type type);
86
87void stop(const char *errstring, int err_code);
88void include_file(char *file_name, include_type type);
89void expand_macro(struct symbol *macro_symbol);
76struct instruction *seq_alloc(void);
77struct critical_section *cs_alloc(void);
78struct scope *scope_alloc(void);
79void process_scope(struct scope *);
90struct instruction *seq_alloc(void);
91struct critical_section *cs_alloc(void);
92struct scope *scope_alloc(void);
93void process_scope(struct scope *);