summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GRCTM: fix build warningsDaniel Hellstrom2015-04-171-0/+3
|
* GRTM: fix build warningsDaniel Hellstrom2015-04-171-0/+3
|
* GRTC: fix build warningsDaniel Hellstrom2015-04-171-0/+3
|
* LEON: I2CMST driver warnings fixesDaniel Hellstrom2015-04-171-0/+3
|
* LEON: B1553BRM driver warnings fixesDaniel Hellstrom2015-04-171-0/+8
|
* LEON: B1553RT driver warnings fixesDaniel Hellstrom2015-04-171-0/+5
|
* LEON: added get_resarray_count() helper routineDaniel Hellstrom2015-04-171-0/+28
|
* GR1553B: fixed build warningsDaniel Hellstrom2015-04-171-33/+35
|
* GPTIMER: fix build warningsDaniel Hellstrom2015-04-171-0/+30
|
* APBUART_CONS: fix build warningDaniel Hellstrom2015-04-171-0/+16
|
* GR-RASTA-SPW-ROUTER: fix build warningsDaniel Hellstrom2015-04-171-0/+45
|
* PCIF: fixed build warningsDaniel Hellstrom2015-04-171-0/+15
|
* GRPCI: fixed build warningsDaniel Hellstrom2015-04-171-0/+31
|
* AHBSTAT: fix build warningsDaniel Hellstrom2015-04-171-0/+3
|
* GRTM: fixed descriptor TS bit declarationDaniel Hellstrom2015-04-171-4/+5
|
* GRSPW_PKT: grspw_status renamed in headerDaniel Hellstrom2015-04-171-1/+1
|
* B1553BRM: change the init of the RT legalization registersDaniel Hellstrom2015-04-171-0/+8
|
* GRSPW_PKT: Add support for Interrupt-codesAndreas Larsson2015-04-171-1/+71
| | | | | Update: Daniel Hellstrom updated SpW-IRQ implementation accoring to changes in hardware register layout and features.
* AMBAPP: updated PnP IDs database with SPWTDPDaniel Hellstrom2015-04-171-0/+1
|
* GR-CPCI-LEON4-N2X: added PCI peripheral driver for PCI deviceDaniel Hellstrom2015-04-171-0/+58
| | | | Interrupts have not been test yet
* AMBAPP: update AMBA PnP ID databaseDaniel Hellstrom2015-04-171-8/+36
|
* GRETH: changed the PHY initialization sequenceDaniel Hellstrom2015-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. read_mii() now returns 0xffff on failure. It is more robust when it comes to reading the reset bit in the control register, that is the first access. 2. write_mii() now has error printout like read_mii(). 3. Additional (optional) PHY access debugging is now available by enabling GRETH_DEBUG_MII. Even successful accesses are printed. 4. Let PHY do power-down (not only reset) to get in a good state, this is just in case the PHY input pin settings are sampled only on PHY power-up on some PHYs. 5. PHY GBit advertisement is disabled if Gbit is not supported by MAC. Or forced if supported. 6. Auto-nego is started if supported by PHY, before it was started only if default set by PHY. 7. Reset Sequence updated: * one must wait until reset bit is self-cleared. * the DD (Disable Duplex Detection) bit is set, only affects EDCL capable devices. This lets RTEMS handle PHY initialization
* leon,gpiolib: add mask/unmask interrupt supportDaniel Hellstrom2015-04-171-0/+4
|
* GRSPW: New packet based driver for SPW/SPW2/SPW2_DMADaniel Hellstrom2015-04-172-0/+599
| | | | | | | | | | | | | | | | 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
* LEON3: fixed nano seconds support in TLIBDaniel Hellstrom2015-04-171-0/+8
| | | | | | | | | | | | | | | | The _Watchdog_Nanoseconds_since_tick_handler() function caller does not take into account that the timer counter may wrap, underflow or overflow. Instead, the driver must take that into account. This GPTIMER DrvMgr driver patch makes use of the IRQ-Pending bit to determine if a underflow has happened. In that case a greater time than one tick is returned (even considering the function name..). The TLIB clock layer must also ACK the interrupt pending bit, otherwise we couldn't determine whether an IRQ is pending or if belongs to un old already handled tick IRQ. Note that this patch only fixes the DrvMgr GPTIMER driver and TLIB, the standard LEON3 GPTIMER driver still needs a fix.
* LEON: added new drivers to the LEON2/LEON3 BSPsDaniel Hellstrom2015-04-1724-3/+4252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most drivers use the Driver Manager for device probing, they work on AMBA-over-PCI systems if PCI is big-endian. New APIs: * GPIO Library, interfaced to GRGPIO * GENIRQ, Generic interrupt service implementation helper New GRLIB Drivers: * ACTEL 1553 RT, user interface is similar to 1553 BRM driver * GR1553 (1553 BC, RT and BM core) * AHBSTAT (AHB error status core) * GRADCDAC (Core interfacing to ADC/DAC hardware) * GRGPIO (GPIO port accessed from GPIO Library) * MCTRL (Memory controller settings configuration) * GRETH (10/100/1000 Ethernet driver using Driver manager) * GRPWM (Pulse Width Modulation core) * SPICTRL (SPI master interface) * GRSPW_ROUTER (SpaceWire Router AMBA configuration interface) * GRCTM (SpaceCraft on-board Time Management core) * SPWCUC (Time distribution over SpaceWire) * GRTC (SpaceCraft up-link Tele core) * GRTM (SpaceCraft down-link Tele Metry core) GR712RC ASIC specific interfaces: * GRASCS * CANMUX (select between OCCAN and SATCAN) * SATCAN * SLINK
* LEON: added network device configuration helper functionDaniel Hellstrom2015-04-171-0/+47
|
* LEON: updated shared drivers to Driver Manger frameworkDaniel Hellstrom2015-04-175-85/+53
| | | | | | | Some bugfixes at the same time. After this patch the drivers may be used on RASTA systems having a big-endian PCI layout. Removed not up to date changelogs, rely on git log instead.
* LEON: updated and added PCI peripherals for LEON BSPsDaniel Hellstrom2015-04-1713-397/+294
| | | | | | | | | | | | | | | | | | | | The CCHIP driver is replaced with the GR_701 driver. The RASTA driver is replaced by the GR-RASTA-IO driver. All drivers are now compatible with both LEON2 and LEON3, drivers were initialized directly by the PCI-board drivers are now initialized by the driver manager and therefore does not require the double code created by including for example grcan.c into grcan_rasta.c. The other drivers needs to be updated to the driver manager framework however. Added support for: * GR-701 (only LEON2 before) * GR-RASTA-IO (only LEON2 before) * GR-RASTA-ADCDAC * GR-RASTA-TMTC * GR-RASTA-SPW-ROUTER * GR-TMTC-1553
* LEON: replaced old BSP PCI layer with new generic libpci PCI layerDaniel Hellstrom2015-04-172-56/+61
| | | | | | | | | | | | | | | | | The old code used a limited PCI configuration library, which was duplicated into LEON2 and LEON3 BSP pci.c together with respective Host controller PCI interface. The LEON2 BSP had support for AT697 PCI, and LEON3 for GRPCI PCI Host controller. With this update new PCI Host drivers are added, and all support the new generic PCI Library: * AT697 PCI (LEON2 only) * GRPCI (LEON2-GRLIB and LEON3) * GRPCI2 (LEON2-GRLIB and LEON3) * Actel PCIF GRLIB Wrapper (LEON3 only) The LEON2 BSP is defined as big-endian PCI in bsp.h, since the AT697 supports only big-endian PCI.
* LEON3: new Console driver, APBUART driver using Driver ManagerDaniel Hellstrom2015-04-172-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | This patch reimplements the console driver of the LEON3 BSP, it has split up the console driver in two parts: Console driver and UART driver. Before the only UART supported was APBUART and only on-chip APBUARTs found during startup. However splitting the driver in two allows any UART interface to reuse the termios attach code of the console driver, pratically this has always been a problem when discovering APBUARTs after startup for example the PCI board GR-RASTA-IO has APBUARTs and must wait until after PCI has been setup. Since the only current driver that supports the new console driver uses the Driver Manager, the new console driver is only enabled when Driver Manager is initialized during startup. The new APBUART driver supports: * polling mode * interrupt mode * task-driven mode * set UART attributes * read UART attributes (system console inherit settings from boot loader) * Driver manager for finding/initialization of the hardware
* LEON: GPTIMER driver, Timer Library and System Clock for LEON3Daniel Hellstrom2015-04-172-0/+172
| | | | | | | | | | | | | | | | | | | | With this patch the LEON family can access the GRLIB GPTIMER using the Timer library (TLIB). A System Clock driver instead of BSP/clock/ck_init.c is provided using the TLIB. The classic clock driver is split in two parts, clock driver and timer driver. The BSPs need only to fullfill the timer interface instead of the clock interface. Currently only LEON3 uses it. The LEON2 Timer is not ported to TLIB. The GPTIMER driver is implemented using the Driver Manager, so the System Clock Driver is at this point only suitable for LEON3 when the driver manager is initialized during BSP startup. When the DrvMgr is not initialized during startup the standard BSP/clock dirver is used. LEON2 sometimes also needs to access GPTIMER when a off-chip GRLIB AMBA systems is connected, for example AMBA-over-PCI.
* LEON2: implemented AMBA Bus Driver for Driver ManagerDaniel Hellstrom2015-04-171-0/+95
|
* LEON3: implemented AMBA PnP Bus Driver for Driver ManagerDaniel Hellstrom2015-04-172-0/+134
|
* shared/include/grcan.h: Add prototypes to fix warningsJoel Sherrill2015-03-091-1/+2
|
* sparc/shared/include/b1553brm_rasta.h: FormattingJoel Sherrill2014-10-191-7/+7
|
* termios: Partially hide rtems_termios_ttySebastian Huber2014-10-071-0/+1
| | | | | | | Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
* bsps/sparc: Move APBUART printk supportChristian Mauderer2014-07-091-0/+19
|
* bsps/sparc: Add and use shared APBUART consoleSebastian Huber2014-07-091-0/+40
| | | | | | Move the APBUART console driver support to the shared SPARC area so that it can be reused by other BSPs. Only the console driver initialization is now BSP specific.
* bsps/sparc: Reduce copy and pasteSebastian Huber2014-07-011-0/+1
|
* bsps/sparc: Move flags to grlib headerChristian Mauderer2014-05-121-0/+8
| | | | This enables re-use for other BSPs
* bsps/sparc: Add common gnat handler function prototype.Daniel Cederman2014-03-241-0/+19
| | | | Moved prototype for __gnat_install_handler and __gnat_install_handler_common to common header file. Placed header file in bsp namespace.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-2116-16/+16
|
* bsps/sparc: Add missing IRQMP registersSebastian Huber2014-03-101-3/+13
|
* bsp/leon3: Add L2C registersSebastian Huber2014-02-281-0/+25
|
* sparc BSP shared: Improve DoxygenToma Radu2014-01-0919-49/+147
| | | | Add doxygen to the header files in sparc/shared/include directory.
* sparc/.../ambapp.h: Add ambapp_get_number_apbslv_devices() prototypeJoel Sherrill2013-09-211-0/+4
|
* sparc/.../ambapp.h: Add ambapp_get_number_ahbslv_devices() prototypeJoel Sherrill2013-09-211-0/+6
|
* Remove CVS-Ids.Ralf Corsépius2012-07-191-2/+0
|
* pci.h cleanup - Consolidate common defines to cpukit pci.hJoel Sherrill2012-05-161-1128/+1
| | | | | | | | | | | | | + 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