Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
neponset.c File Reference
#include <linux/err.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/serial_core.h>
#include <linux/slab.h>
#include <asm/mach-types.h>
#include <asm/mach/map.h>
#include <asm/mach/serial_sa1100.h>
#include <asm/hardware/sa1111.h>
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/assabet.h>
#include <mach/neponset.h>
#include <mach/irqs.h>

Go to the source code of this file.

Data Structures

struct  neponset_drvdata
 

Macros

#define NEP_IRQ_SMC91X   0
 
#define NEP_IRQ_USAR   1
 
#define NEP_IRQ_SA1111   2
 
#define NEP_IRQ_NR   3
 
#define WHOAMI   0x00
 
#define LEDS   0x10
 
#define SWPK   0x20
 
#define IRR   0x24
 
#define KP_Y_IN   0x80
 
#define KP_X_OUT   0x90
 
#define NCR_0   0xa0
 
#define MDM_CTL_0   0xb0
 
#define MDM_CTL_1   0xb4
 
#define AUD_CTL   0xc0
 
#define IRR_ETHERNET   (1 << 0)
 
#define IRR_USAR   (1 << 1)
 
#define IRR_SA1111   (1 << 2)
 
#define MDM_CTL0_RTS1   (1 << 0)
 
#define MDM_CTL0_DTR1   (1 << 1)
 
#define MDM_CTL0_RTS2   (1 << 2)
 
#define MDM_CTL0_DTR2   (1 << 3)
 
#define MDM_CTL1_CTS1   (1 << 0)
 
#define MDM_CTL1_DSR1   (1 << 1)
 
#define MDM_CTL1_DCD1   (1 << 2)
 
#define MDM_CTL1_CTS2   (1 << 3)
 
#define MDM_CTL1_DSR2   (1 << 4)
 
#define MDM_CTL1_DCD2   (1 << 5)
 
#define AUD_SEL_1341   (1 << 0)
 
#define AUD_MUTE_1341   (1 << 1)
 
#define PM_OPS   NULL
 

Functions

void sa1110_mb_disable (void)
 
void neponset_ncr_frob (unsigned int mask, unsigned int val)
 
 EXPORT_SYMBOL (neponset_ncr_frob)
 
 subsys_initcall (neponset_init)
 

Macro Definition Documentation

#define AUD_CTL   0xc0

Definition at line 40 of file neponset.c.

#define AUD_MUTE_1341   (1 << 1)

Definition at line 59 of file neponset.c.

#define AUD_SEL_1341   (1 << 0)

Definition at line 58 of file neponset.c.

#define IRR   0x24

Definition at line 34 of file neponset.c.

#define IRR_ETHERNET   (1 << 0)

Definition at line 42 of file neponset.c.

#define IRR_SA1111   (1 << 2)

Definition at line 44 of file neponset.c.

#define IRR_USAR   (1 << 1)

Definition at line 43 of file neponset.c.

#define KP_X_OUT   0x90

Definition at line 36 of file neponset.c.

#define KP_Y_IN   0x80

Definition at line 35 of file neponset.c.

#define LEDS   0x10

Definition at line 32 of file neponset.c.

#define MDM_CTL0_DTR1   (1 << 1)

Definition at line 47 of file neponset.c.

#define MDM_CTL0_DTR2   (1 << 3)

Definition at line 49 of file neponset.c.

#define MDM_CTL0_RTS1   (1 << 0)

Definition at line 46 of file neponset.c.

#define MDM_CTL0_RTS2   (1 << 2)

Definition at line 48 of file neponset.c.

#define MDM_CTL1_CTS1   (1 << 0)

Definition at line 51 of file neponset.c.

#define MDM_CTL1_CTS2   (1 << 3)

Definition at line 54 of file neponset.c.

#define MDM_CTL1_DCD1   (1 << 2)

Definition at line 53 of file neponset.c.

#define MDM_CTL1_DCD2   (1 << 5)

Definition at line 56 of file neponset.c.

#define MDM_CTL1_DSR1   (1 << 1)

Definition at line 52 of file neponset.c.

#define MDM_CTL1_DSR2   (1 << 4)

Definition at line 55 of file neponset.c.

#define MDM_CTL_0   0xb0

Definition at line 38 of file neponset.c.

#define MDM_CTL_1   0xb4

Definition at line 39 of file neponset.c.

#define NCR_0   0xa0

Definition at line 37 of file neponset.c.

#define NEP_IRQ_NR   3

Definition at line 29 of file neponset.c.

#define NEP_IRQ_SA1111   2

Definition at line 28 of file neponset.c.

#define NEP_IRQ_SMC91X   0

Definition at line 26 of file neponset.c.

#define NEP_IRQ_USAR   1

Definition at line 27 of file neponset.c.

#define PM_OPS   NULL

Definition at line 418 of file neponset.c.

#define SWPK   0x20

Definition at line 33 of file neponset.c.

#define WHOAMI   0x00

Definition at line 31 of file neponset.c.

Function Documentation

EXPORT_SYMBOL ( neponset_ncr_frob  )
void neponset_ncr_frob ( unsigned int  mask,
unsigned int  val 
)

Definition at line 76 of file neponset.c.

void sa1110_mb_disable ( void  )

Definition at line 420 of file generic.c.

subsys_initcall ( neponset_init  )