Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cpm1.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/dma-mapping.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
#include <asm/cpm1.h>
#include <asm/io.h>
#include <asm/tlbflush.h>
#include <asm/rheap.h>
#include <asm/prom.h>
#include <asm/cpm.h>
#include <asm/fs_pd.h>

Go to the source code of this file.

Data Structures

struct  cpm_ioport16
 
struct  cpm_ioport32b
 
struct  cpm_ioport32e
 

Macros

#define CPM_MAP_SIZE   (0x4000)
 
#define MAX_CR_CMD_LOOPS   10000
 
#define BRG_INT_CLK   (get_brgfreq())
 
#define BRG_UART_CLK   (BRG_INT_CLK/16)
 
#define BRG_UART_CLK_DIV16   (BRG_UART_CLK/16)
 

Functions

int cpm_get_irq (void)
 
unsigned int cpm_pic_init (void)
 
void __init cpm_reset (void)
 
int cpm_command (u32 command, u8 opcode)
 
 EXPORT_SYMBOL (cpm_command)
 
void cpm_setbrg (uint brg, uint rate)
 
void cpm1_set_pin (enum cpm_port port, int pin, int flags)
 
int cpm1_clk_setup (enum cpm_clk_target target, int clock, int mode)
 

Variables

cpm8xx_t __iomemcpmp
 
immap_t __iomemmpc8xx_immr
 

Macro Definition Documentation

#define BRG_INT_CLK   (get_brgfreq())

Definition at line 269 of file cpm1.c.

#define BRG_UART_CLK   (BRG_INT_CLK/16)

Definition at line 270 of file cpm1.c.

#define BRG_UART_CLK_DIV16   (BRG_UART_CLK/16)

Definition at line 271 of file cpm1.c.

#define CPM_MAP_SIZE   (0x4000)

Definition at line 51 of file cpm1.c.

#define MAX_CR_CMD_LOOPS   10000

Definition at line 238 of file cpm1.c.

Function Documentation

int cpm1_clk_setup ( enum cpm_clk_target  target,
int  clock,
int  mode 
)

Definition at line 389 of file cpm1.c.

void cpm1_set_pin ( enum cpm_port  port,
int  pin,
int  flags 
)

Definition at line 381 of file cpm1.c.

int cpm_command ( u32  command,
u8  opcode 
)

Definition at line 240 of file cpm1.c.

int cpm_get_irq ( void  )

Definition at line 87 of file cpm1.c.

unsigned int cpm_pic_init ( void  )

Definition at line 130 of file cpm1.c.

void __init cpm_reset ( void  )

Definition at line 197 of file cpm1.c.

void cpm_setbrg ( uint  brg,
uint  rate 
)

Definition at line 274 of file cpm1.c.

EXPORT_SYMBOL ( cpm_command  )

Variable Documentation

cpm8xx_t __iomem* cpmp

Definition at line 53 of file cpm1.c.

immap_t __iomem* mpc8xx_immr

Definition at line 54 of file cpm1.c.