summaryrefslogtreecommitdiffstats
path: root/bsps/shared/grlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* grlib: Register system console as /dev/consoleSebastian Huber2021-06-241-1/+5
| | | | Close #4461.
* bsps/powerpc, bsps/shared: Move remaining legacy networking header filesVijay Kumar Banerjee2021-06-231-1663/+0
|
* grlib: Simplify apbuart_inbyte_nonblocking()Sebastian Huber2021-06-171-5/+5
|
* grlib: Fix apbuart_outbyte_polled() prototypeSebastian Huber2021-06-171-1/+1
| | | | Callers usually want to output a character.
* grlib: Add apbuart_outbyte_wait()Sebastian Huber2021-06-173-17/+17
|
* grlib: Remove NL -> CR in apbuart_outbyte_polled()Sebastian Huber2021-06-173-9/+2
| | | | This is already done in rtems_putc().
* grlib: Add ambapp_plb()Sebastian Huber2021-06-174-6/+6
| | | | | Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
* grlib: Customizable allocation in ambapp_scan()Sebastian Huber2021-06-171-16/+25
| | | | | Make the memory allocations in ambapp_scan() customizable via the new struct ambapp_context parameter which generalizes the memory copy handler.
* grlib/genirq: Taking into account that it could be more than one ISR ↵Moyano, Gabriel2021-04-161-2/+2
| | | | enabled/disabled
* bsps: Remove networking driversVijay Kumar Banerjee2021-04-072-69/+0
| | | | Update #3850
* leon, l2cache: prevent unused diagnostic accessMartin Aberg2021-03-111-2/+2
|
* leon, ahbstat: register definitions for AHBSTAT version 1Martin Aberg2021-03-111-0/+8
|
* leon, grspw_router: added router_port_link_div()Martin Aberg2021-03-111-0/+5
| | | | Allows user to set SpaceWire run clock divisor for an individual port.
* leon,ckinit: avoid assuming 1MHz timer pre-scaler clockDaniel Hellstrom2021-03-111-4/+3
|
* leon,greth: added support for variable sized descriptor table sizesDaniel Hellstrom2021-03-111-7/+15
| | | | | | | | | | The descriptor table size is equal to its alignment and set when configuring the HW IP through VHDL generics. This SW patch simply probes the HW how large the RX/TX descriptor tables are and adjusts accordingly. The number of descriptors actual used are controlled by other settings (rxDescs and txDescs) controlled by the user.
* leon,grcan: split out GRCAN non-FD specific support in separate fileDaniel Hellstrom2021-03-112-405/+435
| | | | Close #4324.
* leon,grcanfd: split out GRCANFD specific support in separate fileDaniel Hellstrom2021-03-113-627/+686
| | | | Update #4324.
* leon,grcan: added support for GRCANFDDaniel Hellstrom2021-03-111-16/+568
| | | | | | | | | | | | | The new GRCAN_FD IP supports CAN FD standard and is mostly backwards compatible with GRCAN SW interface. The GRCAN driver have been extended to support the GRCANFD IP using the same driver. Additional functions have been added that uses a new CAN FD frame format and read/write/baud-rate functions that supports both GRCANFD and GRCAN. To keep the SW API fully backwards compatible with GRCAN, the old functions remain. Update #4324.
* leon,occan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-111-110/+41
| | | | Close #4323.
* leon,grcan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-111-114/+20
| | | | Update #4323.
* leon,can: introduce common CAN baud-rate calculation functionDaniel Hellstrom2021-03-111-0/+144
| | | | | | | Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. Update #4323.
* grlib,ambapp: added new IP core IDsDaniel Hellstrom2021-03-111-1/+20
|
* leon,grspw: fix for SET_PACKET_SIZEDaniel Hellstrom2021-03-111-0/+7
| | | | | | | | | | When the DMA table has been allocated dynamically, the IOCTL_SET_PACKETSIZE will trigger an issue where pDev->rx and pDev->tx are not updated with the new DMA tables base address. Instead the old pointers are used. There is no point in reallocting the DMA tables because there is no configuration option to it. Therefore the DMA tables allocation is moved to a separate function never called from SET_PACKETSIZE.
* leon,gr1553b: Only align allocated memory. Verify alignment of memory.Arvid Bjorkengren2021-03-113-83/+147
|
* leon,gr1553b: set codec versionArvid Bjorkengren2021-03-111-0/+4
| | | | | This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP.
* leon,gr1553rt: Fixed spinlock unlockArvid Bjorkengren2021-03-111-1/+1
|
* leon,gr1553rt: Fixed memory leakArvid Bjorkengren2021-03-111-5/+11
|
* grcan.c: Fix Unused value (CID #1437613)Ryan Long2021-03-051-1/+1
| | | | | | | CID 1437613: Unused value in grcan_set_filter(). This fix was recommended by Daniel Hellstrom (daniel@gaisler.com). Closes #4301
* b1553brm.c: Fix Unsigned compared against 0 (CID #1399773)Ryan Long2021-03-051-1/+1
| | | | | | CID 1399773: Unsigned compared against 0 in brm_write(). Closes #4295
* satcan.c: Fix Unsigned compared against 0 (CID #1399768)Ryan Long2021-03-051-12/+4
| | | | | | CID 1399768: Unsigned compared against 0 in satcan_ioctl(). Closes #4294
* gr_tmtc_1553.c: Unchecked return value from library (CID #1399785)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399785: Unchecked return value from library in gr_tmtc_1553_init1(). Closes #4289
* gr_701.c: Unchecked return value from library (CID #1399783)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399783: Unchecked return value from library in gr701_init1(). Closes #4288
* gr_rasta_adcdac.c: Fix Unchecked return value from library (CID #1399780)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399780: Unchecked return value from library in gr_rasta_adcdac_init1(). Closes #4287
* gr_rasta_tmtc.c: Fix Unchecked return value from library (CID #1399771)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399771: Unchecked return value from library in gr_rasta_tmtc_init1(). Closes #4286
* gr_rasta_io.c: Fix Unchecked return value from library (CID #1399763)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399763: Unchecked return value from library in gr_rasta_io_init1(). Closes #4284
* gr_rasta_spw_router.c: Fix Unchecked return value from library (CID #1399760)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399760: Unchecked return value from library in gr_rasta_spw_router_init1(). Closes #4283
* grtc.c: Fix four Missing break in switch Coverity errorsRyan Long2021-03-051-0/+4
| | | | | | | | | CID 1399761: Missing break in switch in process_dma(). CID 1399765: Missing break in switch in process_dma(). CID 1399766: Missing break in switch in process_dma(). CID 1399777: Missing break in switch in process_dma(). Closes #4277
* grspw.c: Fix Unchecked return value (CID #1399781)Ryan Long2021-03-051-2/+5
| | | | | | CID 1399781: Unchecked return value in grspw_device_init(). Closes #4259
* grspw_pkt.c: Fix Dereference before null check (CID #1399846)Ryan Long2021-02-191-1/+3
| | | | | | CID 1399846: Dereference before null check in grspw_addr_ctrl(). Closes #4253
* grtc.c: Fix Dereference before null check (CID #1399840)Ryan Long2021-02-191-1/+3
| | | | | | CID 1399840: Dereference before null check in grtc_ioctl(). Closes #4252
* b1553rt.c: Fix Deference before null check (CID #1399830)Ryan Long2021-02-191-1/+3
| | | | | | CID 1399830: Dereference before null check in rt_control(). Closes #4251
* b1553brm.c: Fix Dereference before null check (CID #1399829)Ryan Long2021-02-191-2/+5
| | | | | | CID 1399829: Dereference before null check in brm_control(). Closes #4250
* bsps: Replace non-ASCII bullet pointsChristian Mauderer2020-12-142-6/+6
|
* Add networking support for griscv bspJiri Gaisler2020-11-091-12/+12
| | | | | | | * Only GRETH device supported for now * Fix endian problem in GRETH driver * Remove SPARC assembly from greth.c * Builds with both autoconf and waf
* grlib: Add ambapp_common_info to derived typesSebastian Huber2020-10-1611-27/+27
| | | | This avoids a cast in DEV_TO_COMMON().
* grlib: Add and use irqmp_has_timestamp()Sebastian Huber2020-10-101-1/+1
| | | | | | | Replace leon3_irqmp_has_timestamp() with irqmp_has_timestamp() and move it to grlib.h. Close #4128.
* drvmgr: Fix determination of prefix in grlib uart driverDennis Pfau2020-02-201-1/+1
| | | | | drvmgr_get_dev_prefix returns 0 if a prefix was found. Therefore the if condition needs to check for 0, i.e. DRVMGR_OK.
* clock: Simplify driver initializationSebastian Huber2019-12-111-11/+2
| | | | | | Use a system initialization handler instead of a legacy IO driver. Update #3834.
* bsps: Fix warnings in grethSebastian Huber2019-05-271-3/+3
|
* grlib: make memory coherency cpu-independentJiri Gaisler2019-01-221-1/+1
| | | | Update #3678.