Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
led.c File Reference
#include <linux/module.h>
#include <linux/stddef.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/utsname.h>
#include <linux/capability.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/in.h>
#include <linux/interrupt.h>
#include <linux/kernel_stat.h>
#include <linux/reboot.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/ctype.h>
#include <linux/blkdev.h>
#include <linux/workqueue.h>
#include <linux/rcupdate.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/hardware.h>
#include <asm/param.h>
#include <asm/led.h>
#include <asm/pdc.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  lcd_block
 
struct  pdc_chassis_lcd_info_ret_block
 

Macros

#define DPRINTK(x)
 
#define KITTYHAWK_LCD_CMD   F_EXTEND(0xf0190000UL) /* 64bit-ready */
 
#define KITTYHAWK_LCD_DATA   (KITTYHAWK_LCD_CMD+1)
 
#define LCD_CMD_REG   lcd_info.lcd_cmd_reg_addr
 
#define LCD_DATA_REG   lcd_info.lcd_data_reg_addr
 
#define LED_DATA_REG   lcd_info.lcd_cmd_reg_addr /* LASI & ASP only */
 
#define LED_HASLCD   1
 
#define LED_NOLCD   0
 
#define LED_DATA   0x01 /* data to shift (0:on 1:off) */
 
#define LED_STROBE   0x02 /* strobe to clock data */
 
#define HEARTBEAT_LEN   (HZ*10/100)
 
#define HEARTBEAT_2ND_RANGE_START   (HZ*28/100)
 
#define HEARTBEAT_2ND_RANGE_END   (HEARTBEAT_2ND_RANGE_START + HEARTBEAT_LEN)
 
#define LED_UPDATE_INTERVAL   (1 + (HZ*19/1000))
 

Functions

 device_initcall (start_task)
 
int __init register_led_driver (int model, unsigned long cmd_reg, unsigned long data_reg)
 
void __init register_led_regions (void)
 
int lcd_print (const char *str)
 
int __init led_init (void)
 

Macro Definition Documentation

#define DPRINTK (   x)

Definition at line 77 of file led.c.

#define HEARTBEAT_2ND_RANGE_END   (HEARTBEAT_2ND_RANGE_START + HEARTBEAT_LEN)

Definition at line 436 of file led.c.

#define HEARTBEAT_2ND_RANGE_START   (HZ*28/100)

Definition at line 435 of file led.c.

#define HEARTBEAT_LEN   (HZ*10/100)

Definition at line 434 of file led.c.

#define KITTYHAWK_LCD_CMD   F_EXTEND(0xf0190000UL) /* 64bit-ready */

Definition at line 107 of file led.c.

#define KITTYHAWK_LCD_DATA   (KITTYHAWK_LCD_CMD+1)

Definition at line 108 of file led.c.

#define LCD_CMD_REG   lcd_info.lcd_cmd_reg_addr

Definition at line 126 of file led.c.

#define LCD_DATA_REG   lcd_info.lcd_data_reg_addr

Definition at line 127 of file led.c.

#define LED_DATA   0x01 /* data to shift (0:on 1:off) */

Definition at line 279 of file led.c.

#define LED_DATA_REG   lcd_info.lcd_cmd_reg_addr /* LASI & ASP only */

Definition at line 128 of file led.c.

#define LED_HASLCD   1

Definition at line 130 of file led.c.

#define LED_NOLCD   0

Definition at line 131 of file led.c.

#define LED_STROBE   0x02 /* strobe to clock data */

Definition at line 280 of file led.c.

#define LED_UPDATE_INTERVAL   (1 + (HZ*19/1000))

Definition at line 438 of file led.c.

Function Documentation

device_initcall ( start_task  )
int lcd_print ( const char str)

Definition at line 639 of file led.c.

int __init led_init ( void  )

Definition at line 686 of file led.c.

int __init register_led_driver ( int  model,
unsigned long  cmd_reg,
unsigned long  data_reg 
)

Definition at line 551 of file led.c.

void __init register_led_regions ( void  )

Definition at line 615 of file led.c.