Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
reset.c File Reference
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <asm/bootinfo.h>
#include <loongson.h>
#include <cs5536/cs5536.h>
#include "ec_kb3310b.h"

Go to the source code of this file.

Macros

#define yl2f89_reboot   ml2f_reboot
 
#define EC_SHUTDOWN_IO_PORT_HIGH   0xff2d
 
#define EC_SHUTDOWN_IO_PORT_LOW   0xff2e
 
#define EC_SHUTDOWN_IO_PORT_DATA   0xff2f
 
#define REG_SHUTDOWN_HIGH   0xFC
 
#define REG_SHUTDOWN_LOW   0x29
 
#define BIT_SHUTDOWN_ON   (1 << 1)
 

Functions

void ml2f_reboot (void)
 
void mach_prepare_reboot (void)
 
void mach_prepare_shutdown (void)
 

Macro Definition Documentation

#define BIT_SHUTDOWN_ON   (1 << 1)

Definition at line 95 of file reset.c.

#define EC_SHUTDOWN_IO_PORT_DATA   0xff2f

Definition at line 92 of file reset.c.

#define EC_SHUTDOWN_IO_PORT_HIGH   0xff2d

Definition at line 90 of file reset.c.

#define EC_SHUTDOWN_IO_PORT_LOW   0xff2e

Definition at line 91 of file reset.c.

#define REG_SHUTDOWN_HIGH   0xFC

Definition at line 93 of file reset.c.

#define REG_SHUTDOWN_LOW   0x29

Definition at line 94 of file reset.c.

#define yl2f89_reboot   ml2f_reboot

Definition at line 87 of file reset.c.

Function Documentation

void mach_prepare_reboot ( void  )

Definition at line 123 of file reset.c.

void mach_prepare_shutdown ( void  )

Definition at line 142 of file reset.c.

void ml2f_reboot ( void  )

Definition at line 79 of file reset.c.