Commit Graph

147 Commits

Author SHA1 Message Date
Joel Sherrill
20775247de rtems/inttypes.h: Add PRIdrtems_vector_number. Missed in previous commit 2017-04-28 11:11:14 -05:00
Joel Sherrill
9e6ef361cf rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum 2017-04-25 20:14:28 -05:00
Joel Sherrill
7db09923fb rtems/inttypes.h epiphany_sim/irq/irq.c: Add PRIdrtems_vector_number and use it 2017-04-25 11:42:18 -05:00
Joel Sherrill
473a3cd007 rtems/inttypes.h: Add PRIdioctl_command_t 2017-04-23 12:53:44 -05:00
Joel Sherrill
438ca2f594 rtems/inttypes.h: Add blksize_t and blkcnt_t 2017-04-22 14:15:22 -05:00
Joel Sherrill
d420b679af Merge tmacros.h PRIxxx constants from testsuites/ into <rtems/inttypes.h>
This completes the initial creation of rtems/inttypes.h based on all
existing PRIxxx definitions contained in RTEMS Project owned code.

closes #2983.
2017-04-18 11:24:46 -05:00
Joel Sherrill
54bdf0c7e5 rtems/inttypes.h: New file. Uses contents from cpukit
Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types.
Start with existing definitions found in RTEMS Project owned code
in cpukit/.

updates #2983.
2017-04-18 11:24:44 -05:00
Sebastian Huber
33986022af Add rtems_interrupt_server_request_submit()
This function may be used to do a two-step interrupt processing.  The
first step is done in interrupt context which calls this function.  The
second step is then done in the context of the interrupt server.
2017-02-23 07:27:39 +01:00
Sebastian Huber
dc9b704450 Provide <endian.h> for glibc compatibility
Update #2803.
2017-01-24 08:39:21 +01:00
Sebastian Huber
1157cb598f sys/endian.h: Document FreeBSD origin 2017-01-23 07:57:07 +01:00
Sebastian Huber
505eb557f0 sys/uio.h: Update to FreeBSD head 2015-12-03 2016-10-26 14:05:49 +02:00
Pavel Pisa
4745650797 pci.h add PCI_COMMAND_INTX_DISABLE definition. 2016-10-11 22:16:58 +02:00
Sebastian Huber
22c3a54b8b Add printer task 2016-06-22 07:45:49 +02:00
Sebastian Huber
506bfc8580 Move printer initialization to separate header
The RTEMS print user need to know nothing about a particular printer
implementation.  In particular get rid of the <stdio.h> include which
would be visible via <rtems.h>.
2016-06-22 07:29:26 +02:00
Sebastian Huber
ede1a4182d Make rtems/print.h independent of rtems/bspIo.h 2016-06-22 07:29:26 +02:00
Sebastian Huber
e8020d1914 Rename and move RTEMS_PRINTF_ATTRIBUTE()
Rename RTEMS_PRINTF_ATTRIBUTE() into RTEMS_PRINTFLIKE() (similar to
<sys/cdefs.h> __printflike()) and move it to <rtems/score/basedefs.h>.
2016-06-22 07:29:26 +02:00
Sebastian Huber
5c370a5df4 Make rtems_fprintf_plugin() static 2016-06-22 07:29:26 +02:00
Sebastian Huber
1ce8fc32c3 Make rtems_printf_plugin() static 2016-06-22 07:29:26 +02:00
Sebastian Huber
97fd93c23e Make printk_plugin() static 2016-06-22 07:29:25 +02:00
Sebastian Huber
214156d98c mghttpd: Add RTEMS printer support 2016-06-06 12:57:07 +02:00
Sebastian Huber
3242614d92 Fix rtems_print_printer_fprintf()
We must use vfprintf().
2016-05-31 10:10:36 +02:00
Sebastian Huber
868cd24dcd score: Use Newlib provided <machine/endian.h> 2016-05-30 08:11:39 +02:00
Chris Johns
24d0ee57a4 cpukit, testsuite: Add rtems_printf and rtems_printer support.
This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.

Printk and related functions are made to return a valid number of
characters formatted and output.

The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.

The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.
2016-05-25 15:47:34 +10:00
Joel Sherrill
92b6f6e9c9 Move various driver interface definition headers file libcsupport/ to include/
These were in libcsupport for historical reasons and the placement
no longer made sense.

As part of this move, some of the files were placed under subdirectories
which reflect their installed location.

Thank you git for allowing us to move files. Years of CVS resulted
in files being somewhere they no longer belonged.
2016-03-30 09:32:33 -05:00
Sebastian Huber
d9bd59daac bsp/irq-server: Support shared interrupts 2016-01-20 10:15:56 +01:00
Sebastian Huber
8708900e53 Provide dummy <sys/priority.h>
Required by new network stack.
2015-11-18 09:22:48 +01:00
Sebastian Huber
1cfae28722 rtems/endian.h: Reduce header dependencies 2015-05-22 08:20:41 +02:00
Joel Sherrill
6b38b72f1a cpukit/include/rtems/btimer.h: Improve brief 2015-03-17 10:05:08 -05:00
Joel Sherrill
a2fe43b102 cpukit/include/rtems/btimer.h: Add DOxygen comments 2015-03-11 16:18:29 -05:00
Joel Sherrill
a575af82e0 cpukit/include/rtems/bspIo.h: Add Doxygen comments 2015-03-11 16:18:29 -05:00
Sebastian Huber
b2ee119f7a sys/endian.h: Fix 16-bit int problems 2014-12-15 08:27:32 +01:00
Sebastian Huber
b8bd90f68f Add supplementary groups to user environment 2014-11-20 10:30:23 +01:00
Sebastian Huber
446632197c Add crypt_r(), etc.
Add crypt_add_format(), crypt_r(), crypt_md5_r(), crypt_sha256_r() and
crypt_sha512_r().
2014-11-20 10:30:21 +01:00
Sebastian Huber
a2b68952b1 Add <sys/endian.h> 2014-11-20 10:30:20 +01:00
Joel Sherrill
20cb6919df cpukit/include/rtems/irq.h: Fix spacing 2014-10-10 10:17:17 -05:00
Christian Mauderer
5c0c0cf2a6 privateenv: Use POSIX keys instead of task variables. 2014-03-27 14:50:36 +01:00
Christian Mauderer
7d5c27e308 privateenv: Remove sharing of user environment between threads. 2014-03-27 14:50:36 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
718124e4e5 rtems: Add RTEMS_INTERRUPT_REPLACE
A new option RTEMS_INTERRUPT_REPLACE is introduced that permits updating
the first interrupt handler for the registered interrupt vector and
matching argument.  If no match is found, the install function fails
with RTEMS_UNSATISFIED.

The Interrupt Manager Extension offers interrupt handlers with an
argument pointer.  It is impossible to update two words (handler and
argument) atomically on most architectures.  In order to avoid an SMP
lock in bsp_interrupt_handler_dispatch() which would degrade the
interrupt response time an alternative must be provided that makes it
possible to tear-down interrupt sources without an SMP lock.

Add RTEMS_INTERRUPT_REPLACE option to Interrupt Manager Extension.  This
enables a clean tear-down of interrupt sources on SMP configurations.
Instead of an interrupt handler removal a replacement handler can be
installed to silence an interrupt source.  This can be used in contexts
that allow no sophisticated synchronization (e.g. in atexit() or fatal
handlers).
2014-03-06 09:43:59 +01:00
Sebastian Huber
602d5ba27c bsps: Fix warnings 2013-04-08 16:42:36 +02:00
Joel Sherrill
bb679b3111 Move <memory.h> and <sys/uio.h> to non-networking directory
These two header files were installed from libnetworking even
when networking was disabled. This patch moves them to a
non-networking location and updates uio.h to match the FreeBSD 8.x
source being used for the USB stack and TCP/IP stack upgrade.

 - cpukit/include/memory.h
   Move from cpukit/libnetworking/memory.h. No changes

 - cpukit/include/sys/uio.h
   Move from cpukit/libnetworking/sys/uio.h. Replace with FreeBSD 8.x version.

 - cpukit/include/sys/_iovec.h
   New. FreeBSD 8.x file supporting <sys/uio.h>.

 - cpukit/Makefile.am
   Reflect movement of <memory.h> and <sys/uio.h>.

 - cpukit/preinstall.am
   Regenerate

 - cpukit/libnetworking/nfs/bootp_subr.c
   Eliminate use of uio_procp field no longer in FreeBSD structure. This
   field was set and never read so eliminating the set has no impact.
2013-01-23 13:38:04 -06:00
Joel Sherrill
b697bc6a44 cpukit: Use Consistent Beginning of Doxygen Group Notation
This is the result of a sed script which converts all uses
of @{ into a consistent form.
2013-01-10 17:06:47 -06:00
Alex Ivanov
3cf4031c19 Header File Doxygen Enhancement Task #1 2012-12-28 17:48:12 -06:00
Mathew Kallada
f3255a6f22 Header File Doxygen Enhancement Task #11 2012-12-28 11:30:27 -06:00
Mathew Kallada
c5782a26b3 Header File Doxygen Enhancement Task #7 2012-12-28 11:17:49 -06:00
Mathew Kallada
9ab091e1e4 Header File Doxygen Enhancement Task #2 2012-12-28 10:36:55 -06:00
Joel Sherrill
0e27119f80 Use proper 3 line form of license text 2012-10-11 15:52:51 -05:00
Sebastian Huber
bd5a138629 libcsupport: Add and use rtems_putc()
This reduces code size and provides a function similar to fputc().
2012-08-20 10:10:25 +02:00
Sebastian Huber
b2cb8d6fb4 libcsupport: Add rtems_printf_plugin() 2012-06-04 17:30:21 +02:00
Joel Sherrill
8bbf69e6e6 pci.h cleanup - Consolidate common defines to cpukit pci.h
+ libbsp/sparc/shared/include/pci.h was largely a copy of
  an older version of the cpukit pci.h. Removed much of the
  contents and included <rtems/pci.h>.
+ sparc/*/pci*.c - Move to <rtems/pci.h> required updating
  to use uint32_t for dword accesses.
+ Rename PCI_MULTI_FUNCTION to PCI_HEADER_TYPE_MULTI_FUNCTION
+ Define PCI_HEADER_TYPE_MULTI_FUNCTION in cpukit pci.h and remove
  PCI_MULTI_FUNCTION definitions in C files.
+ Move PCI_INVALID_VENDORDEVICEID definitions from various C files
  to cpukit pci.h
2012-05-16 16:11:44 -05:00