Skip to content
Snippets Groups Projects
Select Git revision
  • f1a3f7c616731a08797d7f18189b22513ffd879e
  • master default protected
  • release-1.9 protected
  • release-1.10 protected
  • dev protected
  • replication_test
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
  • v1.9.1 protected
41 results

.env.unix.example

  • grtimer.h 3.01 KiB
    /**
     * @file   arch/sparc/grtimer.h
     * @ingroup time
     * @author Armin Luntzer (armin.luntzer@univie.ac.at),
     * @date   July, 2016
     *
     * @copyright GPLv2
     * This program is free software; you can redistribute it and/or modify it
     * under the terms and conditions of the GNU General Public License,
     * version 2, as published by the Free Software Foundation.
     *
     * This program is distributed in the hope it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
     * more details.
     *
     */
    
    #ifndef _SPARC_GRTIMER_H_
    #define _SPARC_GRTIMER_H_
    
    #include <asm/leon_reg.h>
    
    
    #define LEON3_GRTIMER_CFG_LATCH		0x800
    
    #define LEON3_TIMER_EN	0x00000001       /* enable counting */
    #define LEON3_TIMER_RS	0x00000002       /* restart from timer reload value */
    #define LEON3_TIMER_LD	0x00000004       /* load counter    */
    #define LEON3_TIMER_IE	0x00000008       /* irq enable      */
    #define LEON3_TIMER_IP	0x00000010       /* irq pending (clear by writing 0 */
    #define LEON3_TIMER_CH	0x00000020       /* chain with preceeding timer */
    
    #define LEON3_CFG_TIMERS_MASK	0x00000007
    #define LEON3_CFG_IRQNUM_MASK	0x000000f8
    #define LEON3_CFG_IRQNUM_SHIFT	       0x3
    
    
    
    void grtimer_set_scaler_reload(struct grtimer_unit *rtu, uint32_t value);
    uint32_t grtimer_get_scaler_reload(struct grtimer_unit *rtu);
    
    void grtimer_set_interrupt_enabled(struct grtimer_unit *rtu, uint32_t timer);
    void grtimer_clear_interrupt_enabled(struct grtimer_unit *rtu, uint32_t timer);
    
    void grtimer_set_load(struct grtimer_unit *rtu, uint32_t timer);
    void grtimer_clear_load(struct grtimer_unit *rtu, uint32_t timer);
    
    void grtimer_set_enabled(struct grtimer_unit *rtu, uint32_t timer);
    void grtimer_clear_enabled(struct grtimer_unit *rtu, uint32_t timer);
    
    void grtimer_set_restart(struct grtimer_unit *rtu, uint32_t timer);
    void grtimer_clear_restart(struct grtimer_unit *rtu, uint32_t timer);
    
    void grtimer_set_chained(struct grtimer_unit *rtu, uint32_t timer);
    void grtimer_clear_chained(struct grtimer_unit *rtu, uint32_t timer);
    
    uint32_t grtimer_get_interrupt_pending_status(struct grtimer_unit *rtu,
    					      uint32_t timer);
    void grtimer_clear_interrupt_pending_status(struct grtimer_unit *rtu,
    					    uint32_t timer);
    
    uint32_t grtimer_get_num_implemented(struct grtimer_unit *rtu);
    
    uint32_t grtimer_get_first_timer_irq_id(struct grtimer_unit *rtu);
    
    void grtimer_set_value(struct grtimer_unit *rtu,
    		       uint32_t timer,
    		       uint32_t value);
    uint32_t grtimer_get_value(struct grtimer_unit *rtu, uint32_t timer);
    
    
    void grtimer_set_reload(struct grtimer_unit *rtu,
    			uint32_t timer,
    			uint32_t reload);
    uint32_t grtimer_get_reload(struct grtimer_unit *rtu, uint32_t timer);
    
    void grtimer_set_latch_irq(struct grtimer_unit *rtu, uint32_t irq);
    void grtimer_clear_latch_irq(struct grtimer_unit *rtu, uint32_t irq);
    void grtimer_enable_latch(struct grtimer_unit *rtu);
    
    uint32_t grtimer_get_latch_value(struct grtimer_unit *rtu, uint32_t timer);
    
    #endif /* _SPARC_GRTIMER_H */