2 * Copyright (c) 2001 Stephen Williams (steve@icarus.com)
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 #ident "$Id: tables.c,v 1.6 2003/08/07 04:04:01 steve Exp $"
23 # include "fpga_priv.h"
27 extern const struct device_s d_generic
;
28 extern const struct device_s d_generic_edif
;
29 extern const struct device_s d_lpm_edif
;
30 extern const struct device_s d_virtex_edif
;
31 extern const struct device_s d_virtex2_edif
;
34 const struct device_table_s
{
38 { "generic-edif", &d_generic_edif
},
39 { "generic-xnf", &d_generic
},
40 { "lpm", &d_lpm_edif
},
41 { "virtex", &d_virtex_edif
},
42 { "virtex2", &d_virtex2_edif
},
46 device_t
device_from_arch(const char*arch
)
52 for (idx
= 0 ; device_table
[idx
].name
; idx
+= 1) {
53 if (strcmp(arch
, device_table
[idx
].name
) == 0)
54 return device_table
[idx
].driver
;
63 * Revision 1.6 2003/08/07 04:04:01 steve
64 * Add an LPM device type.
66 * Revision 1.5 2003/03/24 00:47:54 steve
67 * Add new virtex2 architecture family, and
68 * also the new edif.h EDIF management functions.
70 * Revision 1.4 2002/08/12 01:35:03 steve
71 * conditional ident string using autoconfig.
73 * Revision 1.3 2002/08/11 23:47:04 steve
74 * Add missing Log and Ident strings.
76 * Revision 1.2 2001/09/06 04:28:40 steve
77 * Separate the virtex and generic-edif code generators.
79 * Revision 1.1 2001/09/02 21:33:07 steve
80 * Rearrange the XNF code generator to be generic-xnf
81 * so that non-XNF code generation is also possible.
83 * Start into the virtex EDIF output driver.