Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
netwinder-hw.c File Reference
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include <asm/hardware/dec21285.h>
#include <asm/mach-types.h>
#include <asm/setup.h>
#include <asm/system_misc.h>
#include <asm/mach/arch.h>
#include "common.h"

Go to the source code of this file.

Macros

#define IRDA_IO_BASE   0x180
 
#define GP1_IO_BASE   0x338
 
#define GP2_IO_BASE   0x33a
 
#define wb977_device_select(dev)   wb977_wb(0x07, dev)
 
#define wb977_device_disable()   wb977_wb(0x30, 0x00)
 
#define wb977_device_enable()   wb977_wb(0x30, 0x01)
 
#define dprintk(x...)
 
#define WRITE_RWA(r, v)   do { outb((r), 0x279); udelay(10); outb((v), 0xa79); } while (0)
 

Functions

 DEFINE_RAW_SPINLOCK (nw_gpio_lock)
 
 EXPORT_SYMBOL (nw_gpio_lock)
 
void nw_gpio_modify_op (unsigned int mask, unsigned int set)
 
 EXPORT_SYMBOL (nw_gpio_modify_op)
 
void nw_gpio_modify_io (unsigned int mask, unsigned int in)
 
 EXPORT_SYMBOL (nw_gpio_modify_io)
 
unsigned int nw_gpio_read (void)
 
 EXPORT_SYMBOL (nw_gpio_read)
 
void nw_cpld_modify (unsigned int mask, unsigned int set)
 
 EXPORT_SYMBOL (nw_cpld_modify)
 
 __initcall (nw_hw_init)
 

Variables

 atag_offset = 0x100
 
 video_start = 0x000a0000
 
 video_end = 0x000bffff
 
 reserve_lp0 = 1
 
 reserve_lp2 = 1
 
 fixup = fixup_netwinder
 
 map_io = footbridge_map_io
 
 init_irq = footbridge_init_irq
 
 timer = &isa_timer
 
 restart = netwinder_restart
 

Macro Definition Documentation

#define dprintk (   x...)

Definition at line 399 of file netwinder-hw.c.

#define GP1_IO_BASE   0x338

Definition at line 28 of file netwinder-hw.c.

#define GP2_IO_BASE   0x33a

Definition at line 29 of file netwinder-hw.c.

#define IRDA_IO_BASE   0x180

Definition at line 27 of file netwinder-hw.c.

#define wb977_device_disable ( )    wb977_wb(0x30, 0x00)

Definition at line 60 of file netwinder-hw.c.

#define wb977_device_enable ( )    wb977_wb(0x30, 0x01)

Definition at line 61 of file netwinder-hw.c.

#define wb977_device_select (   dev)    wb977_wb(0x07, dev)

Definition at line 59 of file netwinder-hw.c.

#define WRITE_RWA (   r,
  v 
)    do { outb((r), 0x279); udelay(10); outb((v), 0xa79); } while (0)

Definition at line 404 of file netwinder-hw.c.

Function Documentation

__initcall ( nw_hw_init  )
DEFINE_RAW_SPINLOCK ( nw_gpio_lock  )
EXPORT_SYMBOL ( nw_gpio_lock  )
EXPORT_SYMBOL ( nw_gpio_modify_op  )
EXPORT_SYMBOL ( nw_gpio_modify_io  )
EXPORT_SYMBOL ( nw_gpio_read  )
EXPORT_SYMBOL ( nw_cpld_modify  )
void nw_cpld_modify ( unsigned int  mask,
unsigned int  set 
)

Definition at line 362 of file netwinder-hw.c.

void nw_gpio_modify_io ( unsigned int  mask,
unsigned int  in 
)

Definition at line 119 of file netwinder-hw.c.

void nw_gpio_modify_op ( unsigned int  mask,
unsigned int  set 
)

Definition at line 73 of file netwinder-hw.c.

unsigned int nw_gpio_read ( void  )

Definition at line 131 of file netwinder-hw.c.

Variable Documentation

atag_offset = 0x100

Definition at line 761 of file netwinder-hw.c.

fixup = fixup_netwinder

Definition at line 766 of file netwinder-hw.c.

init_irq = footbridge_init_irq

Definition at line 768 of file netwinder-hw.c.

Definition at line 767 of file netwinder-hw.c.

reserve_lp0 = 1

Definition at line 764 of file netwinder-hw.c.

reserve_lp2 = 1

Definition at line 765 of file netwinder-hw.c.

restart = netwinder_restart

Definition at line 770 of file netwinder-hw.c.

Definition at line 769 of file netwinder-hw.c.

video_end = 0x000bffff

Definition at line 763 of file netwinder-hw.c.

video_start = 0x000a0000

Definition at line 762 of file netwinder-hw.c.