aboutsummaryrefslogtreecommitdiff
path: root/devel/libmpcbdm/files
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-08 23:49:15 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-08 23:49:15 +0000
commitc8757290e859a3245448c9d2538fc71ae68b40e0 (patch)
tree6879e378994255afb98db8a1933f67466a2e0a78 /devel/libmpcbdm/files
parent88ec828a3123d698d4c3f45f1b19705a0397e095 (diff)
downloadports-c8757290e859a3245448c9d2538fc71ae68b40e0.tar.gz
ports-c8757290e859a3245448c9d2538fc71ae68b40e0.zip
Standalone library to control various widely available Freescale's mpc8xx
based boards. This code was derived from mpcbdm patch by Frank Przybylski. This allows using this code separately from gdb, for example, to load firmware to the board, or retrive information about it. The package includes example "mpc8xx" program, that displays information about connected board using libmpcbdm library. The schematic of adapter itself can be found at project homepage. Author: Erwin Rol <erwin@muffin.org> WWW: http://libmpc8xx.sourceforge.net/ PR: ports/99406 Submitted by: Stanislav Sedov <stas at fonon.realnet>
Notes
Notes: svn path=/head/; revision=167237
Diffstat (limited to 'devel/libmpcbdm/files')
-rw-r--r--devel/libmpcbdm/files/patch-examples_main.c12
-rw-r--r--devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c20
-rw-r--r--devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c10
3 files changed, 42 insertions, 0 deletions
diff --git a/devel/libmpcbdm/files/patch-examples_main.c b/devel/libmpcbdm/files/patch-examples_main.c
new file mode 100644
index 000000000000..491d4fb87baf
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-examples_main.c
@@ -0,0 +1,12 @@
+--- example/main.c.orig Sat Jun 24 13:15:08 2006
++++ example/main.c Sat Jun 24 13:15:44 2006
+@@ -50,7 +50,8 @@
+ power_on = atoi( argv[3] );
+
+ mpc8xx_set_print_function( print );
+- mpc8xx_bdm_init( lpt_port, adapter_version, power_on );
++ if (mpc8xx_bdm_init( lpt_port, adapter_version, power_on ) == -1)
++ exit(1);
+
+ mpc8xx_bdm_reset();
+
diff --git a/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c b/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c
new file mode 100644
index 000000000000..8cee06a2c225
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c
@@ -0,0 +1,20 @@
++++ libmpc8xx/lptbdm.c.orig Sat Jun 24 12:47:47 2006
+--- libmpc8xx/lptbdm.c Sat Jun 24 12:50:21 2006
+@@ -22,7 +22,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <string.h>
+-#include <sys/io.h>
++#include <machine/sysarch.h>
+ #include <time.h>
+
+ static int lptbdm_read( void );
+@@ -252,7 +252,7 @@
+ }
+ }
+
+- nResult = ioperm( lptbdm_port.DATAAddr, 3, 1 );
++ nResult = i386_set_ioperm( lptbdm_port.DATAAddr, 3, 1 );
+
+ seteuid( getuid() );
+
diff --git a/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c b/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c
new file mode 100644
index 000000000000..4832eba1a6f3
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c
@@ -0,0 +1,10 @@
+--- libmpc8xx/mpc8xxflash.c.orig Sat Jun 24 12:55:50 2006
++++ libmpc8xx/mpc8xxflash.c Sat Jun 24 12:55:57 2006
+@@ -14,7 +14,6 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
+ #include <ctype.h>
+ #include <stdlib.h>
+