diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bddb/brlog.php | 2 | ||||
-rw-r--r-- | tools/bddb/defs.php | 12 | ||||
-rw-r--r-- | tools/bddb/doedlog.php | 3 | ||||
-rw-r--r-- | tools/bddb/donewlog.php | 3 | ||||
-rw-r--r-- | tools/bddb/edlog.php | 3 | ||||
-rw-r--r-- | tools/bddb/newlog.php | 3 | ||||
-rw-r--r-- | tools/gdb/astest.c | 23 | ||||
-rw-r--r-- | tools/gdb/error.c | 23 | ||||
-rw-r--r-- | tools/gdb/error.h | 23 | ||||
-rw-r--r-- | tools/gdb/gdbcont.c | 23 | ||||
-rw-r--r-- | tools/gdb/gdbsend.c | 23 | ||||
-rw-r--r-- | tools/gdb/remote.h | 23 | ||||
-rw-r--r-- | tools/gdb/serial.c | 23 | ||||
-rw-r--r-- | tools/gdb/serial.h | 23 |
14 files changed, 207 insertions, 3 deletions
diff --git a/tools/bddb/brlog.php b/tools/bddb/brlog.php index 6e98c9c4813..fa651ae02dd 100644 --- a/tools/bddb/brlog.php +++ b/tools/bddb/brlog.php @@ -73,6 +73,7 @@ <tr valign=top> <th>logno / edit</th> <th>date</th> +<th>who</th> <th width="70%">details</th> </tr> <?php @@ -82,6 +83,7 @@ echo "<tr>\n"; print_cell("<a href=\"edlog.php?serno=$row[serno]&logno=$row[logno]\">$row[logno]</a>"); print_cell($row['date']); + print_cell($row['who']); print_cell("<pre>" . urldecode($row['details']) . "</pre>"); echo "</tr>\n"; } diff --git a/tools/bddb/defs.php b/tools/bddb/defs.php index 0393dbda644..9361419d49d 100644 --- a/tools/bddb/defs.php +++ b/tools/bddb/defs.php @@ -58,8 +58,8 @@ $zbt_nbits = array(0,19,20,21,22); // Xilinx attributes - $xlxtyp_vals = array('','XCV300E','XCV400E','XCV600E'); - $xlxspd_vals = array('','6','7','8'); + $xlxtyp_vals = array('','XCV300E','XCV400E','XCV600E','XC2V2000','XC2V3000','XC2V4000','XC2V6000'); + $xlxspd_vals = array('','6','7','8','4','5'); $xlxtmp_vals = array('','COM','IND'); $xlxgrd_vals = array('','NORMAL','ENGSAMP'); @@ -449,7 +449,13 @@ // generate a (possibly not unique) random vendor ethernet address // (setting bit 6 in the ethernet address - motorola wise i.e. bit 0 // is the most significant bit - means it is not an assigned ethernet - // address). Also, make sure it is NOT a multicast ethernet address. + // address - it is a "locally administered" address). Also, make sure + // it is NOT a multicast ethernet address (by setting bit 7 to 0). + // e.g. the first byte of all ethernet addresses generated here will + // have 2 in the bottom two bits (incidentally, these are the first + // two bits transmitted on the wire, since the octets in ethernet + // addresses are transmitted LSB first). + function gen_eth_addr($serno) { $ethaddr_high = (mt_rand(0, 65535) & 0xfeff) | 0x0200; diff --git a/tools/bddb/doedlog.php b/tools/bddb/doedlog.php index db27c37eb93..f80047195b7 100644 --- a/tools/bddb/doedlog.php +++ b/tools/bddb/doedlog.php @@ -26,6 +26,9 @@ $query.=" date='$date'"; } + if (isset($who)) + $query.=", who='" . $who . "'"; + if (isset($details)) $query.=", details='" . rawurlencode($details) . "'"; diff --git a/tools/bddb/donewlog.php b/tools/bddb/donewlog.php index b00de955bc5..35ba1251f7d 100644 --- a/tools/bddb/donewlog.php +++ b/tools/bddb/donewlog.php @@ -23,6 +23,9 @@ die("date is invalid (input '$date', yyyy-mm-dd '$y-$m-$d')"); $query.=", date='$date'"; + if (isset($who)) + $query.=", who='" . $who . "'"; + if (isset($details)) $query.=", details='" . rawurlencode($details) . "'"; diff --git a/tools/bddb/edlog.php b/tools/bddb/edlog.php index f819b46a0de..7f311bfdbbe 100644 --- a/tools/bddb/edlog.php +++ b/tools/bddb/edlog.php @@ -41,6 +41,9 @@ // date date print_field("date", $row); + // who char(20) + print_field("who", $row); + // details text print_field_multiline("details", $row, 60, 10, 'text_filter'); diff --git a/tools/bddb/newlog.php b/tools/bddb/newlog.php index 5ec42ac289f..3f516391b61 100644 --- a/tools/bddb/newlog.php +++ b/tools/bddb/newlog.php @@ -26,6 +26,9 @@ // date date print_field("date", array('date' => date("Y-m-d"))); + // who char(20) + print_field("who", ""); + // details text print_field_multiline("details", array(), 60, 10, 'text_filter'); diff --git a/tools/gdb/astest.c b/tools/gdb/astest.c index dbe55fe5b1f..a791469da1e 100644 --- a/tools/gdb/astest.c +++ b/tools/gdb/astest.c @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/gdb/error.c b/tools/gdb/error.c index aea29011142..276a00a6771 100644 --- a/tools/gdb/error.c +++ b/tools/gdb/error.c @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/gdb/error.h b/tools/gdb/error.h index 907709f7679..06982133068 100644 --- a/tools/gdb/error.h +++ b/tools/gdb/error.h @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <stdarg.h> extern char *pname; diff --git a/tools/gdb/gdbcont.c b/tools/gdb/gdbcont.c index ee9553cd52b..300545d8e11 100644 --- a/tools/gdb/gdbcont.c +++ b/tools/gdb/gdbcont.c @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/gdb/gdbsend.c b/tools/gdb/gdbsend.c index d46ab48467c..8cd8347159d 100644 --- a/tools/gdb/gdbsend.c +++ b/tools/gdb/gdbsend.c @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/tools/gdb/remote.h b/tools/gdb/remote.h index bfc4a1f9b7d..f14dacb07af 100644 --- a/tools/gdb/remote.h +++ b/tools/gdb/remote.h @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + extern int remote_desc, remote_timeout; extern void remote_reset(void); diff --git a/tools/gdb/serial.c b/tools/gdb/serial.c index 88895bb9f87..2f2e5291d98 100644 --- a/tools/gdb/serial.c +++ b/tools/gdb/serial.c @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <unistd.h> #include <string.h> #include <fcntl.h> diff --git a/tools/gdb/serial.h b/tools/gdb/serial.h index 60629bd743d..3ed509ee781 100644 --- a/tools/gdb/serial.h +++ b/tools/gdb/serial.h @@ -1,3 +1,26 @@ +/* + * (C) Copyright 2000 + * Murray Jensen <Murray.Jensen@csiro.au> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #include <termios.h> #define SERIAL_ERROR -1 /* General error, see errno for details */ |