270 Commits

Author SHA1 Message Date
Joel Sherrill
e43b452e28 Makefile: Use MIPS generic in_cksum when no target specific implementation
The MIPS in_cksum.c method supports big and little endian targets. This
does not include any inline assembly and should be reasonable for most
targets.
2012-07-14 12:15:57 -05:00
Joel Sherrill
865a290ee4 Makefile: Correct dependencies for parallelism 2012-07-14 11:20:42 -05:00
Joel Sherrill
0d0637ffaf Makefile: Use dummy PIC code on Simple Vectored targets 2012-07-14 10:45:30 -05:00
Joel Sherrill
b3739004bb Add dummy PIC IRQ support for Simple Vectored Architectures
The current implementation assumes that the architecture supports the Programmable
Interrupt Controller interrupt API in RTEMS. Most architectures do not use this
model and provide only the Simple Vectored interrupt API. The SPARC port has an
implementation of the PIC API that builds on the Simple Vectored API.

The code added here is just enough to compile. The hope is that a generic
PIC API wrapper will be implemented on top of the Simple Vectored which will
instantly provide support for all other architectures.

For now, the issues of code portability related to PCI support, in_cksum,
cpufunc.h, linkcmds etc are sufficiently challenging that just ensuring we are
able to compile for all RTEMS supported architectures will let us address many
issues.

In summary, this is just a placeholder which lets the RTEMS LibBSD code compile
on Simple Vectored architectures.
2012-07-14 10:41:02 -05:00
Joel Sherrill
5cf6031a15 rtems-bsd-nexus.c: Always include rtems/irq-extension.h 2012-07-14 10:40:40 -05:00
Joel Sherrill
8c9c98db11 Makefile: install all CPU specific contents correctly 2012-07-13 13:03:10 -05:00
Joel Sherrill
b0b2e0e2d6 Add stub cpu_func.h files for all other RTEMS targets 2012-07-13 11:40:48 -05:00
Joel Sherrill
a8030171cc Add ARM, PowerPC, and SPARC64 cpufunc.h files from FreeBSD 2012-07-13 11:38:40 -05:00
Kevin Polulak
8fe603a947 Readd MIPS cpu specific .h files
At least 80 files in this tree have an advertisting clause. 56 in
the old TCP/IP stack did. We will not have a functional stack unless
we accept this unfortunate situation.
2012-07-13 11:29:43 -05:00
Joel Sherrill
3457ff633c Makefile: Clean up build and do not use install point 2012-07-13 11:27:44 -05:00
Joel Sherrill
e78d6ab1c3 MIPS: Remove code with advertising clause
At this point, we are unsure what actual functionality will be
required for a functional MIPS port so just provide a stub.
This lets the build complete and avoids the code with the
advertising clause.
2012-07-13 10:40:11 -05:00
Joel Sherrill
14b4d25d8e Makefile: Do not fail if FreeBSD CPU directory does not exist. 2012-07-13 08:58:33 -05:00
Kevin Polulak
8db44c6776 Add MIPS cpu specific .h files 2012-07-13 08:57:28 -05:00
Joel Sherrill
1543249d3e port_before.h: Add _ALIGNBYTES and enable getservent.c 2012-07-11 17:54:57 -05:00
Joel Sherrill
939b12b52e Makefile: Enable most files to build 2012-07-11 17:38:09 -05:00
Joel Sherrill
2f14df7190 port_before.h: Ensure enough BSD types are defined 2012-07-11 17:37:54 -05:00
Joel Sherrill
a98a274dbe gethostbydns.c: dprintf conflicts with POSIX - rename to DPRINTF
This is done by the from-freebsd.sh script.
2012-07-11 17:36:34 -05:00
Joel Sherrill
cac1c867a4 rpcb_prot.h: Add generated file 2012-07-11 17:36:15 -05:00
Joel Sherrill
822aae2c91 arpa/nameser*.h: Reneable BIND_4_COMPAT and include FreeBSD endian.h 2012-07-11 17:35:10 -05:00
Joel Sherrill
479f4eb6d9 Add _XXX_ENDIAN constants 2012-07-11 17:33:09 -05:00
Joel Sherrill
028aaafa79 freebsd-userspace: All files in old libnetworking/libc now present
But they don't all compile. Multiple issues left to address.
2012-07-11 16:01:37 -05:00
Jennifer Averett
6d78dca3a1 Makefile: Fix clean and install of user space 2012-07-11 14:39:41 -05:00
Joel Sherrill
e25eda8a0f Add RTEMS Network Setup Helper 2012-07-11 14:34:10 -05:00
Joel Sherrill
079c3f27ea userspace: Add install support 2012-07-11 14:31:26 -05:00
Joel Sherrill
4f44b24fae link01: Initialize interfaces 2012-07-11 14:31:09 -05:00
Joel Sherrill
514a0e5841 Build freebsd-userspace 2012-07-11 14:25:18 -05:00
Joel Sherrill
1b13f6981a FreeBSD user space support - First additions
This requires a full checkout of the FreeBSD 8.2 source code.
The checkout we have been using is missing at least the libc,
include, and sys directories.  The script to copy files in is
crude.

This eventually needs to separate the manually written .h files
out and add the RTEMS specific network initialization support
with functionality to program the IP addresses and gateways as
the old stack did.
2012-07-11 13:23:45 -05:00
Kevin Polulak
c90c2126ac Clarified information in libbsd.txt. 2012-07-11 13:11:04 -05:00
Kevin Polulak
9fc8b41074 Removed in_cksum_arm.S file. 2012-07-11 13:10:31 -05:00
Jennifer Averett
59f69ea3cd Some cleanup to allow build for multiple architectures. 2012-07-11 12:48:58 -05:00
Jennifer Averett
2f50f0a7a9 Added nexus_setup_intr support and did some cleanup. 2012-07-11 08:49:13 -05:00
Joel Sherrill
237c763486 Makefile: Do not install contrib .h files until proven needed
They were not installed in the correct subdirectory for the
way they were included in the kernel source anyway. If they
are needed at the user level, then we can re-address it then.
2012-07-10 11:58:29 -05:00
Joel Sherrill
842c238a37 Makefile: updated to probably install architecture specific .h files 2012-07-09 17:21:36 -05:00
Joel Sherrill
9c99de7d0e link01: Add static_hints and make nic-sysinit.h generic 2012-07-09 14:34:08 -05:00
Joel Sherrill
7a1309a304 subr_hints.c: For RTEMS use static_hints
The user MUST provide a static_hints character array. For now,
this must be manually constructed. In the future, we may want to
consider loading it from a file.
2012-07-09 14:33:02 -05:00
Joel Sherrill
4f8495ef66 FXP: Remove hack and use hint provided by application 2012-07-09 14:32:34 -05:00
Jennifer Averett
1e36900df6 Added nexus resource routines. 2012-07-09 10:23:19 -05:00
Jennifer Averett
a0da9b6246 Modified I386_BUS_SPACE_xxx values.
Note these may still not be correct.
2012-07-09 10:20:02 -05:00
Jennifer Averett
c537dc207c Hack to the fxp driver to force i386 to be io based. 2012-07-09 10:17:03 -05:00
Joel Sherrill
0d23ec984c Disable conflicts with RTEMS 2012-07-06 12:23:37 -05:00
Joel Sherrill
dbda80875a Put CPU specific bus_space routines into separate files
The code in rtemsbsd/freebsd/machine/bus.h assumed that all bus space
accesses were through memory in a simple fashion. The i386 has a true
distinction between I/O and memory space which must be accounted for.

This may not be the eventual structure of this code but we must
have different bus space accessors for different hardware configurations.
And in many, if not most, cases we will want these to be inlined for
performance.
2012-07-06 10:57:12 -05:00
Jennifer Averett
4d28b934bb Added back in a couple of methods. 2012-07-03 10:06:05 -05:00
Jennifer Averett
48a1927a9b Added isa header files for Nic. 2012-07-02 10:01:29 -05:00
Jennifer Averett
d972692540 Add a couple of isa header files. 2012-07-02 09:54:00 -05:00
Jennifer Averett
348f0a00ee Added missing header file. 2012-06-29 15:06:34 -05:00
Jennifer Averett
cfb78bc301 Remove a header include that causes powerpc compile error. 2012-06-29 14:39:34 -05:00
Jennifer Averett
8b588ff7b7 Move config info into a .h file 2012-06-29 13:10:11 -05:00
Jennifer Averett
36ebd68c02 Added legacy in order to get pcib to work correctly and resoleved fxp attach issue.
The fxp attach has a resource allocation issue still to address, but
should work as soon as that is debugged.
2012-06-29 12:42:00 -05:00
Jennifer Averett
58ea5ee27a Added pcib. 2012-06-11 09:42:08 -05:00
Jennifer Averett
7345c71553 Added rtems specific size for max_linkhdr
Note: This was needed for tcp_init to pass.  This modification
should be discussed to see if a cleaner resolution to the problem
exists.
2012-06-01 13:57:50 -05:00