Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
atmel_tc Struct Reference

#include <atmel_tc.h>

Data Fields

struct platform_devicepdev
 
struct resourceiomem
 
void __iomemregs
 
struct atmel_tcb_configtcb_config
 
int irq [3]
 
struct clkclk [3]
 
struct list_head node
 

Detailed Description

struct atmel_tc - information about a Timer/Counter Block : physical device : resource associated with the I/O register : mapping through which the I/O registers can be accessed : configuration data from SoC : irq for each of the three channels : internal clock source for each of the three channels : list node, for tclib internal use

On some platforms, each TC channel has its own clocks and IRQs, while on others, all TC channels share the same clock and IRQ. Drivers should clk_enable() all the clocks they need even though all the entries in may point to the same physical clock. Likewise, drivers should request irqs independently for each channel, but they must use IRQF_SHARED in case some of the entries in are actually the same IRQ.

Definition at line 62 of file atmel_tc.h.

Field Documentation

struct clk* clk[3]

Definition at line 68 of file atmel_tc.h.

struct resource* iomem

Definition at line 64 of file atmel_tc.h.

int irq[3]

Definition at line 67 of file atmel_tc.h.

Definition at line 69 of file atmel_tc.h.

Definition at line 63 of file atmel_tc.h.

Definition at line 65 of file atmel_tc.h.

struct atmel_tcb_config* tcb_config

Definition at line 66 of file atmel_tc.h.


The documentation for this struct was generated from the following file: