📄 linuette_kernel.h
字号:
/* * linuette_kernel.h * * Author: Yong-iL Joh <tolkien@mizi.com> * Date : $Date: 2002/05/10 19:13:44 $ * * $Revision: 1.1.2.1 $ * Fri May 10 2002 Yong-iL Joh <tolkien@mizi.com> - initial - kernel vs app. API spec (draft) v1.33 * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. */#include "linuette_ioctl.h"#ifndef _INCLUDE_LINUETTE_KERNEL_H_#define _INCLUDE_LINUETTE_KERNEL_H_#if !defined(__ASSEMBLY__) && defined(__KERNEL__)#include <linux/fb.h>#include <linux/pm.h>struct mz_pm_ops_t { /* machine dependent stuff when do_sleep/wakeup */ int (*machine_pm)(pm_request_t req); /* get battery status */ int (*get_power_status)(BATTERY_RET *bat_dev); /* for brightness control */ int (*fb_ioctl)(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg, int con, struct fb_info *info); /* for brightness on/off */ void (*blank_helper)(int blank);};extern struct mz_pm_ops_t mz_pm_ops;#define MZ_BLANK_ON 1#define MZ_BLANK_OFF 0#define MZ_EVENT_BUF_SIZE 16struct mz_event_queue_t { int buf[MZ_EVENT_BUF_SIZE]; int head, tail;};extern void event_notify(int x_evt);extern int mz_sys_state;#define MZ_SYS_UNKNOWN EVENT_UNKNOWN#define MZ_SYS_SLEEP SYSTEM_SLEEP#define MZ_SYS_WAKEUP SYSTEM_WAKEUPstatic __inline__ int mz_sleep_p(void) { return (mz_sys_state == MZ_SYS_SLEEP);}static __inline__ int mz_wakeup_p(void) { return (mz_sys_state == MZ_SYS_WAKEUP);}#endif /* !defined(__ASSEMBLY__) && defined(__KERNEL__) */#endif /* _INCLUDE_LINUETTE_KERNEL_H_ *//* | $Id: linuette_kernel.h,v 1.1.2.1 2002/05/10 19:13:44 tolkien Exp $ | | Local Variables: | mode: c | mode: font-lock | version-control: t | delete-old-versions: t | End: | | -*- End-Of-File -*- */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -