Commit Graph

43 Commits

Author SHA1 Message Date
Joel Sherrill
72d83c61d4 cpukit/libdrvmsg: Change license to BSD-2
Updates #3053.
2022-03-22 11:34:23 -05:00
Sebastian Huber
36655b870c cpukit: occured -> occurred 2021-07-16 13:42:27 +02:00
Sebastian Huber
a7e89962df drvmgr: Improve LP64 compatibility 2018-12-27 09:00:59 +01:00
kuaLeYi
bde6ac2060 Misc: Minor English fixes (GCI 2018) 2018-11-20 09:45:51 -06:00
Sebastian Huber
d3d1243487 build: Merge libdrvmgr/Makefile.am 2018-10-09 13:26:48 +02:00
Sebastian Huber
f4794b60f6 drvmgr: Really fix API mutex usage 2018-04-24 15:40:07 +02:00
Sebastian Huber
905d7fa3a2 drvmgr: Use API mutex usage
The driver manager lock may be used before the executing thread is
initialized.
2018-04-24 15:23:39 +02:00
Sebastian Huber
6d21a3f230 drvmgr: Remove bsp_driver_level_hook()
Use RTEMS_SYSINIT_ITEM() instead.

Update #2408.
2018-04-20 09:49:35 +02:00
Sebastian Huber
2d0bc839ed build: Remove EXTRA_DIST
A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.
2018-04-04 10:09:04 +02:00
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Sebastian Huber
98b52e3517 drvmgr: Use API mutex 2017-12-06 07:13:04 +01:00
Daniel Hellstrom
3663be5352 drvmgr: clean up info_drv print
Fixes #2930
2017-08-29 08:44:13 +02:00
Sebastian Huber
3dfe55ee15 score: Use <sys/bitset.h> for Processor_mask
Implement the Processor_mask via <sys/bitset.h>.  Provide
_Processor_mask_To_uint32_t() to enable its use in device specific
routines, e.g. interrupt affinity register in an interrupt controller.

Update #3059.
2017-07-06 15:29:16 +02:00
Javier Jalle
6234abe8bd leon, l4stat: Initial driver commit 2017-05-02 12:34:49 +02:00
Javier Jalle
c241236139 leon, memscrub: add GR740 memory scrubber driver 2017-05-02 12:34:48 +02:00
Javier Jalle
d79429fa52 leon, griommu: add GR740 IOMMU driver
The driver is limited to the access protection bit-vector. It
currently does not support the IOMMU page-table functionality.
2017-05-02 12:34:48 +02:00
Javier Jalle
dfa8633805 leon, l2cache: add GR740 L2-Cache driver 2017-05-02 12:34:47 +02:00
Daniel Hellstrom
7075fb1134 drvmgr: ability to configure IRQ affinity 2017-05-02 12:34:45 +02:00
Javier Jalle
61788e76b9 leon, GR-CPCI-GR740: Added peripheral PCI driver 2017-05-02 12:34:44 +02:00
Daniel Cederman
84557ef62c libdrvmgr: remove braces 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
418149c80b libdrvmgr: added default BSP init level hook 2017-03-06 07:54:55 +01:00
Sebastian Huber
ede1a4182d Make rtems/print.h independent of rtems/bspIo.h 2016-06-22 07:29:26 +02:00
Sebastian Huber
6bf44a581b Use linker set for driver manager initialization
Update #2408.
2016-02-03 10:00:57 +01:00
Sebastian Huber
297aa075dc Revert "drvmgr: Move bsp_driver_level_hook() calls"
The --enable-drvmgr configure option controls the driver manager startup
and not if the driver manager is present or not.  Presence of the driver
manager is determined by the architecture (only available on sparc so
far).

This reverts commit 61bbf9194f.
2016-01-26 16:22:46 +01:00
Sebastian Huber
61bbf9194f drvmgr: Move bsp_driver_level_hook() calls 2016-01-26 11:42:04 +01:00
Daniel Hellstrom
291c53917d DRVMGR: remove struct driver registration func 2015-04-17 01:10:30 +02:00
Daniel Hellstrom
4c9c46df76 DRVMGR: clean-up DRV_OPS_NUM 2015-04-17 01:10:30 +02:00
Daniel Hellstrom
bef5e23ef6 DRVMGR: renamed RES_EMPTY to DRVMGR_RES_EMPTY 2015-04-17 01:10:30 +02:00
Daniel Hellstrom
4d3e70f4a6 DRVMGR: KEY_TYPE now a enum drvmgr_kt 2015-04-17 01:10:30 +02:00
Daniel Hellstrom
14d55debf1 DRVMGR: renamed info_dev to get_info_dev 2015-04-17 01:10:30 +02:00
Daniel Hellstrom
246fe225f1 DRVMGR: change name of freq_get to get_freq 2015-04-17 01:10:29 +02:00
Daniel Hellstrom
bb2f2200aa DRVMGR: renamed private drv_mgr and its struct name 2015-04-17 01:10:29 +02:00
Daniel Hellstrom
bf2c3f8baf DRVMGR: updated README 2015-04-17 01:10:29 +02:00
Daniel Hellstrom
4f0906080d DRVMGR: only build on SPARC platform 2015-04-17 01:10:28 +02:00
Daniel Hellstrom
0decc80664 DRVMGR: updated license to rtems.org 2015-04-17 01:10:28 +02:00
Daniel Hellstrom
cc3f87c0c7 DRVMGR: removed a goto and added comments 2015-04-17 01:10:28 +02:00
Daniel Hellstrom
2fb09129dd DRVMGR: clean-up Makefile.am 2015-04-17 01:10:27 +02:00
Daniel Hellstrom
eff698916c DRVMGR: use RTEMS_INLINE_ROUTINE 2015-04-17 01:10:27 +02:00
Daniel Hellstrom
65d1f35b27 DRVMGR: updated copyright into one line only 2015-04-17 01:10:26 +02:00
Daniel Hellstrom
ffd8002dbd GR-CPCI-LEON4-N2X: added PCI peripheral driver for PCI device
Interrupts have not been test yet
2015-04-17 01:10:19 +02:00
Daniel Hellstrom
0f49c0e2f4 GRSPW: New packet based driver for SPW/SPW2/SPW2_DMA
This patch adds a new driver for the GRSPW SpaceWire AMBA
interface family. The new driver does not implement a standard
RTEMS driver, instead it provides only a library interface to
the GRSPW devices. This driver can be used to implement a
RTEMS I/O driver or used directly.

New features compared with old GRSPW driver:
 * zero-copy packet interface
 * possibility to send/receive mulitple packets per call
 * optional interrupt awaken work-task to process TX/RX queues
 * DMA channels support. Before only first DMA channel supported
 * Separate DMA and link control
 * Packet based error flags
2015-04-17 01:10:18 +02:00
Daniel Hellstrom
30594a91ca DRVMGR: add LEON BSPs driver registration 2015-04-17 01:10:17 +02:00
Daniel Hellstrom
e7fade3ac4 DRVMGR: added driver manager to cpukit/libdrvmgr 2015-04-17 01:10:16 +02:00