OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
blackfin
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:15 AM
rwxr-xr-x
📄
Kbuild
658 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-offsets.h
35 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic.h
1.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
barrier.h
2.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin-global.h
2.8 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin-lq035q1.h
868 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin5xx_spi.h
2.07 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_can.h
36.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_dma.h
5.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_pfmon.h
1.11 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_ppi.h
9.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_sdh.h
7.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_serial.h
17.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_simple_timer.h
949 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_sport.h
1.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_sport3.h
5.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_twi.h
6.25 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfin_watchdog.h
696 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bfrom.h
3.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
3.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
blackfin.h
1.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
1.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
3.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cdef_LPBlackfin.h
18.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
899 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
clkdev.h
318 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
clocks.h
1.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
3.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
context.S
5.92 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cplb.h
4.86 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cplbinit.h
1.6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpu.h
443 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
def_LPBlackfin.h
28.6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
917 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma.h
9.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dpmc.h
18.24 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
early_printk.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
4.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
entry.h
5.27 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
exec.h
37 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
fixed_code.h
806 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
flat.h
1.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ftrace.h
1.37 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio.h
5.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gptimers.h
8.95 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
301 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
1.52 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipipe.h
5.81 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipipe_base.h
2.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
879 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_handler.h
1.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
7.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kgdb.h
3.23 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
l1layout.h
879 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
205 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mem_init.h
13.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mem_map.h
1.73 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
713 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
5.35 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
410 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nand.h
895 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nmi.h
195 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
546 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_offset.h
192 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
310 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pda.h
1.86 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
perf_event.h
23 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pm.h
590 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
portmux.h
16.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor.h
3.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pseudo_instructions.h
391 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
1.19 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
reboot.h
446 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
rwlock.h
142 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
scb.h
445 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sections.h
2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
segment.h
226 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
1.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock.h
1.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock_types.h
495 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
997 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
2.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
time.h
1.33 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
477 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
481 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
88 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
trace.h
2.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
4.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
5.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
523 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
vga.h
29 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: gptimers.h
Close
/* * gptimers.h - Blackfin General Purpose Timer structs/defines/prototypes * * Copyright (c) 2005-2008 Analog Devices Inc. * Copyright (C) 2005 John DeHority * Copyright (C) 2006 Hella Aglaia GmbH (awe@aglaia-gmbh.de) * * Licensed under the GPL-2. */ #ifndef _BLACKFIN_TIMERS_H_ #define _BLACKFIN_TIMERS_H_ #include <linux/types.h> #include <asm/blackfin.h> /* * BF51x/BF52x/BF537: 8 timers: */ #if defined(CONFIG_BF51x) || defined(CONFIG_BF52x) || defined(BF537_FAMILY) # define MAX_BLACKFIN_GPTIMERS 8 # define TIMER0_GROUP_REG TIMER_ENABLE #endif /* * BF54x: 11 timers (BF542: 8 timers): */ #if defined(CONFIG_BF54x) # ifdef CONFIG_BF542 # define MAX_BLACKFIN_GPTIMERS 8 # else # define MAX_BLACKFIN_GPTIMERS 11 # define TIMER8_GROUP_REG TIMER_ENABLE1 # define TIMER_GROUP2 1 # endif # define TIMER0_GROUP_REG TIMER_ENABLE0 #endif /* * BF561: 12 timers: */ #if defined(CONFIG_BF561) # define MAX_BLACKFIN_GPTIMERS 12 # define TIMER0_GROUP_REG TMRS8_ENABLE # define TIMER8_GROUP_REG TMRS4_ENABLE # define TIMER_GROUP2 1 #endif /* * BF609: 8 timers: */ #if defined(CONFIG_BF60x) # define MAX_BLACKFIN_GPTIMERS 8 # define TIMER0_GROUP_REG TIMER_RUN #endif /* * All others: 3 timers: */ #define TIMER_GROUP1 0 #if !defined(MAX_BLACKFIN_GPTIMERS) # define MAX_BLACKFIN_GPTIMERS 3 # define TIMER0_GROUP_REG TIMER_ENABLE #endif #define BLACKFIN_GPTIMER_IDMASK ((1UL << MAX_BLACKFIN_GPTIMERS) - 1) #define BFIN_TIMER_OCTET(x) ((x) >> 3) /* used in masks for timer_enable() and timer_disable() */ #define TIMER0bit 0x0001 /* 0001b */ #define TIMER1bit 0x0002 /* 0010b */ #define TIMER2bit 0x0004 /* 0100b */ #define TIMER3bit 0x0008 #define TIMER4bit 0x0010 #define TIMER5bit 0x0020 #define TIMER6bit 0x0040 #define TIMER7bit 0x0080 #define TIMER8bit 0x0100 #define TIMER9bit 0x0200 #define TIMER10bit 0x0400 #define TIMER11bit 0x0800 #define TIMER0_id 0 #define TIMER1_id 1 #define TIMER2_id 2 #define TIMER3_id 3 #define TIMER4_id 4 #define TIMER5_id 5 #define TIMER6_id 6 #define TIMER7_id 7 #define TIMER8_id 8 #define TIMER9_id 9 #define TIMER10_id 10 #define TIMER11_id 11 /* associated timers for ppi framesync: */ #if defined(CONFIG_BF561) # define FS0_1_TIMER_ID TIMER8_id # define FS0_2_TIMER_ID TIMER9_id # define FS1_1_TIMER_ID TIMER10_id # define FS1_2_TIMER_ID TIMER11_id # define FS0_1_TIMER_BIT TIMER8bit # define FS0_2_TIMER_BIT TIMER9bit # define FS1_1_TIMER_BIT TIMER10bit # define FS1_2_TIMER_BIT TIMER11bit # undef FS1_TIMER_ID # undef FS2_TIMER_ID # undef FS1_TIMER_BIT # undef FS2_TIMER_BIT #else # define FS1_TIMER_ID TIMER0_id # define FS2_TIMER_ID TIMER1_id # define FS1_TIMER_BIT TIMER0bit # define FS2_TIMER_BIT TIMER1bit #endif #ifdef CONFIG_BF60x /* * Timer Configuration Register Bits */ #define TIMER_EMU_RUN 0x8000 #define TIMER_BPER_EN 0x4000 #define TIMER_BWID_EN 0x2000 #define TIMER_BDLY_EN 0x1000 #define TIMER_OUT_DIS 0x0800 #define TIMER_TIN_SEL 0x0400 #define TIMER_CLK_SEL 0x0300 #define TIMER_CLK_SCLK 0x0000 #define TIMER_CLK_ALT_CLK0 0x0100 #define TIMER_CLK_ALT_CLK1 0x0300 #define TIMER_PULSE_HI 0x0080 #define TIMER_SLAVE_TRIG 0x0040 #define TIMER_IRQ_MODE 0x0030 #define TIMER_IRQ_ACT_EDGE 0x0000 #define TIMER_IRQ_DLY 0x0010 #define TIMER_IRQ_WID_DLY 0x0020 #define TIMER_IRQ_PER 0x0030 #define TIMER_MODE 0x000f #define TIMER_MODE_WDOG_P 0x0008 #define TIMER_MODE_WDOG_W 0x0009 #define TIMER_MODE_PWM_CONT 0x000c #define TIMER_MODE_PWM 0x000d #define TIMER_MODE_WDTH 0x000a #define TIMER_MODE_WDTH_D 0x000b #define TIMER_MODE_EXT_CLK 0x000e #define TIMER_MODE_PININT 0x000f /* * Timer Status Register Bits */ #define TIMER_STATUS_TIMIL0 0x0001 #define TIMER_STATUS_TIMIL1 0x0002 #define TIMER_STATUS_TIMIL2 0x0004 #define TIMER_STATUS_TIMIL3 0x0008 #define TIMER_STATUS_TIMIL4 0x0010 #define TIMER_STATUS_TIMIL5 0x0020 #define TIMER_STATUS_TIMIL6 0x0040 #define TIMER_STATUS_TIMIL7 0x0080 #define TIMER_STATUS_TOVF0 0x0001 /* timer 0 overflow error */ #define TIMER_STATUS_TOVF1 0x0002 #define TIMER_STATUS_TOVF2 0x0004 #define TIMER_STATUS_TOVF3 0x0008 #define TIMER_STATUS_TOVF4 0x0010 #define TIMER_STATUS_TOVF5 0x0020 #define TIMER_STATUS_TOVF6 0x0040 #define TIMER_STATUS_TOVF7 0x0080 /* * Timer Slave Enable Status : write 1 to clear */ #define TIMER_STATUS_TRUN0 0x0001 #define TIMER_STATUS_TRUN1 0x0002 #define TIMER_STATUS_TRUN2 0x0004 #define TIMER_STATUS_TRUN3 0x0008 #define TIMER_STATUS_TRUN4 0x0010 #define TIMER_STATUS_TRUN5 0x0020 #define TIMER_STATUS_TRUN6 0x0040 #define TIMER_STATUS_TRUN7 0x0080 #else /* * Timer Configuration Register Bits */ #define TIMER_ERR 0xC000 #define TIMER_ERR_OVFL 0x4000 #define TIMER_ERR_PROG_PER 0x8000 #define TIMER_ERR_PROG_PW 0xC000 #define TIMER_EMU_RUN 0x0200 #define TIMER_TOGGLE_HI 0x0100 #define TIMER_CLK_SEL 0x0080 #define TIMER_OUT_DIS 0x0040 #define TIMER_TIN_SEL 0x0020 #define TIMER_IRQ_ENA 0x0010 #define TIMER_PERIOD_CNT 0x0008 #define TIMER_PULSE_HI 0x0004 #define TIMER_MODE 0x0003 #define TIMER_MODE_PWM 0x0001 #define TIMER_MODE_WDTH 0x0002 #define TIMER_MODE_EXT_CLK 0x0003 /* * Timer Status Register Bits */ #define TIMER_STATUS_TIMIL0 0x0001 #define TIMER_STATUS_TIMIL1 0x0002 #define TIMER_STATUS_TIMIL2 0x0004 #define TIMER_STATUS_TIMIL3 0x00000008 #define TIMER_STATUS_TIMIL4 0x00010000 #define TIMER_STATUS_TIMIL5 0x00020000 #define TIMER_STATUS_TIMIL6 0x00040000 #define TIMER_STATUS_TIMIL7 0x00080000 #define TIMER_STATUS_TIMIL8 0x0001 #define TIMER_STATUS_TIMIL9 0x0002 #define TIMER_STATUS_TIMIL10 0x0004 #define TIMER_STATUS_TIMIL11 0x0008 #define TIMER_STATUS_TOVF0 0x0010 /* timer 0 overflow error */ #define TIMER_STATUS_TOVF1 0x0020 #define TIMER_STATUS_TOVF2 0x0040 #define TIMER_STATUS_TOVF3 0x00000080 #define TIMER_STATUS_TOVF4 0x00100000 #define TIMER_STATUS_TOVF5 0x00200000 #define TIMER_STATUS_TOVF6 0x00400000 #define TIMER_STATUS_TOVF7 0x00800000 #define TIMER_STATUS_TOVF8 0x0010 #define TIMER_STATUS_TOVF9 0x0020 #define TIMER_STATUS_TOVF10 0x0040 #define TIMER_STATUS_TOVF11 0x0080 /* * Timer Slave Enable Status : write 1 to clear */ #define TIMER_STATUS_TRUN0 0x1000 #define TIMER_STATUS_TRUN1 0x2000 #define TIMER_STATUS_TRUN2 0x4000 #define TIMER_STATUS_TRUN3 0x00008000 #define TIMER_STATUS_TRUN4 0x10000000 #define TIMER_STATUS_TRUN5 0x20000000 #define TIMER_STATUS_TRUN6 0x40000000 #define TIMER_STATUS_TRUN7 0x80000000 #define TIMER_STATUS_TRUN 0xF000F000 #define TIMER_STATUS_TRUN8 0x1000 #define TIMER_STATUS_TRUN9 0x2000 #define TIMER_STATUS_TRUN10 0x4000 #define TIMER_STATUS_TRUN11 0x8000 #endif /* The actual gptimer API */ void set_gptimer_pwidth(unsigned int timer_id, uint32_t width); uint32_t get_gptimer_pwidth(unsigned int timer_id); void set_gptimer_period(unsigned int timer_id, uint32_t period); uint32_t get_gptimer_period(unsigned int timer_id); #ifdef CONFIG_BF60x void set_gptimer_delay(unsigned int timer_id, uint32_t delay); uint32_t get_gptimer_delay(unsigned int timer_id); #endif uint32_t get_gptimer_count(unsigned int timer_id); int get_gptimer_intr(unsigned int timer_id); void clear_gptimer_intr(unsigned int timer_id); int get_gptimer_over(unsigned int timer_id); void clear_gptimer_over(unsigned int timer_id); void set_gptimer_config(unsigned int timer_id, uint16_t config); uint16_t get_gptimer_config(unsigned int timer_id); int get_gptimer_run(unsigned int timer_id); void set_gptimer_pulse_hi(unsigned int timer_id); void clear_gptimer_pulse_hi(unsigned int timer_id); void enable_gptimers(uint16_t mask); void disable_gptimers(uint16_t mask); void disable_gptimers_sync(uint16_t mask); uint16_t get_enabled_gptimers(void); uint32_t get_gptimer_status(unsigned int group); void set_gptimer_status(unsigned int group, uint32_t value); static inline void enable_gptimer(unsigned int timer_id) { enable_gptimers(1 << timer_id); } static inline void disable_gptimer(unsigned int timer_id) { disable_gptimers(1 << timer_id); } /* * All Blackfin system MMRs are padded to 32bits even if the register * itself is only 16bits. So use a helper macro to streamline this. */ #define __BFP(m) u16 m; u16 __pad_##m /* * bfin timer registers layout */ struct bfin_gptimer_regs { __BFP(config); u32 counter; u32 period; u32 width; #ifdef CONFIG_BF60x u32 delay; #endif }; /* * bfin group timer registers layout */ #ifndef CONFIG_BF60x struct bfin_gptimer_group_regs { __BFP(enable); __BFP(disable); u32 status; }; #else struct bfin_gptimer_group_regs { __BFP(run); __BFP(enable); __BFP(disable); __BFP(stop_cfg); __BFP(stop_cfg_set); __BFP(stop_cfg_clr); __BFP(data_imsk); __BFP(stat_imsk); __BFP(tr_msk); __BFP(tr_ie); __BFP(data_ilat); __BFP(stat_ilat); __BFP(err_status); __BFP(bcast_per); __BFP(bcast_wid); __BFP(bcast_dly); }; #endif #undef __BFP #endif