⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 achware.h

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 H
字号:
/****************************************************************************** * * Name: achware.h -- hardware specific interfaces *       $Revision: 48 $ * *****************************************************************************//* *  Copyright (C) 2000 R. Byron Moore * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef __ACHWARE_H__#define __ACHWARE_H__/* Prototypes */ACPI_STATUSacpi_hw_initialize (	void);ACPI_STATUSacpi_hw_shutdown (	void);ACPI_STATUSacpi_hw_initialize_system_info (	void);ACPI_STATUSacpi_hw_set_mode (	u32                     mode);u32acpi_hw_get_mode (	void);u32acpi_hw_get_mode_capabilities (	void);/* Register I/O Prototypes */u32acpi_hw_register_bit_access (	NATIVE_UINT             read_write,	u8                      use_lock,	u32                     register_id,	... /* DWORD Write Value */);u32acpi_hw_register_read (	u8                      use_lock,	u32                     register_id);voidacpi_hw_register_write (	u8                      use_lock,	u32                     register_id,	u32                     value);u32acpi_hw_low_level_read (	u32                     width,	ACPI_GAS                *reg,	u32                     offset);voidacpi_hw_low_level_write (	u32                     width,	u32                     value,	ACPI_GAS                *reg,	u32                     offset);voidacpi_hw_clear_acpi_status (   void);/* GPE support */voidacpi_hw_enable_gpe (	u32                     gpe_index);voidacpi_hw_disable_gpe (	u32                     gpe_index);voidacpi_hw_clear_gpe (	u32                     gpe_index);voidacpi_hw_get_gpe_status (	u32                     gpe_number,	ACPI_EVENT_STATUS       *event_status);/* Sleep Prototypes */ACPI_STATUSacpi_hw_obtain_sleep_type_register_data (	u8                      sleep_state,	u8                      *slp_typ_a,	u8                      *slp_typ_b);/* Cx State Prototypes */ACPI_STATUSacpi_hw_enter_c1(	ACPI_IO_ADDRESS         pblk_address,	u32                     *pm_timer_ticks);ACPI_STATUSacpi_hw_enter_c2(	ACPI_IO_ADDRESS         pblk_address,	u32                     *pm_timer_ticks);ACPI_STATUSacpi_hw_enter_c3(	ACPI_IO_ADDRESS         pblk_address,	u32                     *pm_timer_ticks);ACPI_STATUSacpi_hw_enter_cx (	ACPI_IO_ADDRESS         pblk_address,	u32                     *pm_timer_ticks);ACPI_STATUSacpi_hw_set_cx (	u32                     cx_state);ACPI_STATUSacpi_hw_get_cx_info (	u32                     cx_states[]);ACPI_STATUSacpi_hw_get_cx_handler (	u32                     cx_state,	ACPI_C_STATE_HANDLER    *handler);ACPI_STATUSacpi_hw_set_cx_handler (	u32                     cx_state,	ACPI_C_STATE_HANDLER    handler);/* Throttling Prototypes */voidacpi_hw_enable_throttling (	ACPI_IO_ADDRESS         pblk_address);voidacpi_hw_disable_throttling (	ACPI_IO_ADDRESS         pblk_address);u32acpi_hw_get_duty_cycle (	u8                      duty_offset,	ACPI_IO_ADDRESS         pblk_address,	u32                     num_throttle_states);voidacpi_hw_program_duty_cycle (	u8                      duty_offset,	u32                     duty_cycle,	ACPI_IO_ADDRESS         pblk_address,	u32                     num_throttle_states);NATIVE_UINTacpi_hw_local_pow (	NATIVE_UINT             x,	NATIVE_UINT             y);/* ACPI Timer prototypes */u32acpi_hw_pmt_ticks (	void);u32acpi_hw_pmt_resolution (	void);ACPI_STATUSacpi_get_timer (	u32                     *out_ticks);#endif /* __ACHWARE_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -