亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pciehp.h

?? h內核
?? H
字號:
/* * PCI Express Hot Plug Controller Driver * * Copyright (C) 1995,2001 Compaq Computer Corporation * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) * Copyright (C) 2001 IBM Corp. * Copyright (C) 2003-2004 Intel Corporation * * All rights reserved. * * 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, GOOD TITLE or * NON INFRINGEMENT.  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., 675 Mass Ave, Cambridge, MA 02139, USA. * * Send feedback to <greg@kroah.com>, <dely.l.sy@intel.com> * */#ifndef _PCIEHP_H#define _PCIEHP_H#include <linux/types.h>#include <linux/pci.h>#include <linux/delay.h>#include <asm/semaphore.h>#include <asm/io.h>		#include <linux/pcieport_if.h>#include "pci_hotplug.h"#define MY_NAME	"pciehp"extern int pciehp_poll_mode;extern int pciehp_poll_time;extern int pciehp_debug;/*#define dbg(format, arg...) do { if (pciehp_debug) printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); } while (0)*/#define dbg(format, arg...) do { if (pciehp_debug) printk("%s: " format, MY_NAME , ## arg); } while (0)#define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME , ## arg)#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg)#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)struct pci_func {	struct pci_func *next;	u8 bus;	u8 device;	u8 function;	u8 is_a_board;	u16 status;	u8 configured;	u8 switch_save;	u8 presence_save;	u32 base_length[0x06];	u8 base_type[0x06];	u16 reserved2;	u32 config_space[0x20];	struct pci_resource *mem_head;	struct pci_resource *p_mem_head;	struct pci_resource *io_head;	struct pci_resource *bus_head;	struct pci_dev* pci_dev;};struct slot {	struct slot *next;	u8 bus;	u8 device;	u32 number;	u8 is_a_board;	u8 configured;	u8 state;	u8 switch_save;	u8 presence_save;	u32 capabilities;	u16 reserved2;	struct timer_list task_event;	u8 hp_slot;	struct controller *ctrl;	struct hpc_ops *hpc_ops;	struct hotplug_slot *hotplug_slot;	struct list_head	slot_list;};struct pci_resource {	struct pci_resource * next;	u32 base;	u32 length;};struct event_info {	u32 event_type;	u8 hp_slot;};struct controller {	struct controller *next;	struct semaphore crit_sect;	/* critical section semaphore */	void *hpc_ctlr_handle;		/* HPC controller handle */	int num_slots;			/* Number of slots on ctlr */	int slot_num_inc;		/* 1 or -1 */	struct pci_resource *mem_head;	struct pci_resource *p_mem_head;	struct pci_resource *io_head;	struct pci_resource *bus_head;	struct pci_dev *pci_dev;	struct pci_bus *pci_bus;	struct event_info event_queue[10];	struct slot *slot;	struct hpc_ops *hpc_ops;	wait_queue_head_t queue;	/* sleep & wake process */	u8 next_event;	u8 seg;	u8 bus;	u8 device;	u8 function;	u8 rev;	u8 slot_device_offset;	u8 add_support;	enum pci_bus_speed speed;	u32 first_slot;		/* First physical slot number */  /* PCIE only has 1 slot */	u8 slot_bus;		/* Bus where the slots handled by this controller sit */	u8 ctrlcap;	u16 vendor_id;};struct irq_mapping {	u8 barber_pole;	u8 valid_INT;	u8 interrupt[4];};struct resource_lists {	struct pci_resource *mem_head;	struct pci_resource *p_mem_head;	struct pci_resource *io_head;	struct pci_resource *bus_head;	struct irq_mapping *irqs;};#define INT_BUTTON_IGNORE		0#define INT_PRESENCE_ON			1#define INT_PRESENCE_OFF		2#define INT_SWITCH_CLOSE		3#define INT_SWITCH_OPEN			4#define INT_POWER_FAULT			5#define INT_POWER_FAULT_CLEAR		6#define INT_BUTTON_PRESS		7#define INT_BUTTON_RELEASE		8#define INT_BUTTON_CANCEL		9#define STATIC_STATE			0#define BLINKINGON_STATE		1#define BLINKINGOFF_STATE		2#define POWERON_STATE			3#define POWEROFF_STATE			4#define PCI_TO_PCI_BRIDGE_CLASS		0x00060400/* Error messages */#define INTERLOCK_OPEN			0x00000002#define ADD_NOT_SUPPORTED		0x00000003#define CARD_FUNCTIONING		0x00000005#define ADAPTER_NOT_SAME		0x00000006#define NO_ADAPTER_PRESENT		0x00000009#define NOT_ENOUGH_RESOURCES		0x0000000B#define DEVICE_TYPE_NOT_SUPPORTED	0x0000000C#define WRONG_BUS_FREQUENCY		0x0000000D#define POWER_FAILURE			0x0000000E#define REMOVE_NOT_SUPPORTED		0x00000003#define DISABLE_CARD			1/* Field definitions in Slot Capabilities Register */#define ATTN_BUTTN_PRSN	0x00000001#define	PWR_CTRL_PRSN	0x00000002#define MRL_SENS_PRSN	0x00000004#define ATTN_LED_PRSN	0x00000008#define PWR_LED_PRSN	0x00000010#define HP_SUPR_RM_SUP	0x00000020#define ATTN_BUTTN(cap)		(cap & ATTN_BUTTN_PRSN)#define POWER_CTRL(cap)		(cap & PWR_CTRL_PRSN)#define MRL_SENS(cap)		(cap & MRL_SENS_PRSN)#define ATTN_LED(cap)		(cap & ATTN_LED_PRSN)#define PWR_LED(cap)		(cap & PWR_LED_PRSN) #define HP_SUPR_RM(cap)		(cap & HP_SUPR_RM_SUP)/* * error Messages */#define msg_initialization_err	"Initialization failure, error=%d\n"#define msg_HPC_rev_error	"Unsupported revision of the PCI hot plug controller found.\n"#define msg_HPC_non_pcie	"The PCI hot plug controller is not supported by this driver.\n"#define msg_HPC_not_supported	"This system is not supported by this version of pciephd module. Upgrade to a newer version of pciehpd\n"#define msg_unable_to_save	"Unable to store PCI hot plug add resource information. This system must be rebooted before adding any PCI devices.\n"#define msg_button_on		"PCI slot #%d - powering on due to button press.\n"#define msg_button_off		"PCI slot #%d - powering off due to button press.\n"#define msg_button_cancel	"PCI slot #%d - action canceled due to button press.\n"#define msg_button_ignore	"PCI slot #%d - button press ignored.  (action in progress...)\n"/* controller functions */extern int	pciehprm_find_available_resources	(struct controller *ctrl);extern int	pciehp_event_start_thread	(void);extern void	pciehp_event_stop_thread	(void);extern struct 	pci_func *pciehp_slot_create	(unsigned char busnumber);extern struct 	pci_func *pciehp_slot_find	(unsigned char bus, unsigned char device, unsigned char index);extern int	pciehp_enable_slot		(struct slot *slot);extern int	pciehp_disable_slot		(struct slot *slot);extern u8	pciehp_handle_attention_button	(u8 hp_slot, void *inst_id);extern u8	pciehp_handle_switch_change	(u8 hp_slot, void *inst_id);extern u8	pciehp_handle_presence_change	(u8 hp_slot, void *inst_id);extern u8	pciehp_handle_power_fault	(u8 hp_slot, void *inst_id);/* extern void	long_delay (int delay); *//* resource functions */extern int	pciehp_resource_sort_and_combine	(struct pci_resource **head);/* pci functions */extern int	pciehp_set_irq			(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num);/*extern int	pciehp_get_bus_dev		(struct controller *ctrl, u8 *bus_num, u8 *dev_num, struct slot *slot);*/extern int	pciehp_save_config	 	(struct controller *ctrl, int busnumber, int num_ctlr_slots, int first_device_num);extern int	pciehp_save_used_resources	(struct controller *ctrl, struct pci_func * func, int flag);extern int	pciehp_save_slot_config		(struct controller *ctrl, struct pci_func * new_slot);extern void	pciehp_destroy_board_resources	(struct pci_func * func);extern int	pciehp_return_board_resources	(struct pci_func * func, struct resource_lists * resources);extern void	pciehp_destroy_resource_list	(struct resource_lists * resources);extern int	pciehp_configure_device		(struct controller* ctrl, struct pci_func* func);extern int	pciehp_unconfigure_device	(struct pci_func* func);/* Global variables */extern struct controller *pciehp_ctrl_list;extern struct pci_func *pciehp_slot_list[256];/* Inline functions */static inline struct slot *pciehp_find_slot(struct controller *ctrl, u8 device){	struct slot *p_slot, *tmp_slot = NULL;	p_slot = ctrl->slot;	dbg("p_slot = %p\n", p_slot);	while (p_slot && (p_slot->device != device)) {		tmp_slot = p_slot;		p_slot = p_slot->next;		dbg("In while loop, p_slot = %p\n", p_slot);	}	if (p_slot == NULL) {		err("ERROR: pciehp_find_slot device=0x%x\n", device);		p_slot = tmp_slot;	}	return p_slot;}static inline int wait_for_ctrl_irq(struct controller *ctrl){	int retval = 0;	DECLARE_WAITQUEUE(wait, current);	dbg("%s : start\n", __FUNCTION__);	add_wait_queue(&ctrl->queue, &wait);	if (!pciehp_poll_mode)		/* Sleep for up to 1 second */		msleep_interruptible(1000);	else		msleep_interruptible(2500);		remove_wait_queue(&ctrl->queue, &wait);	if (signal_pending(current))		retval =  -EINTR;	dbg("%s : end\n", __FUNCTION__);	return retval;}/* Puts node back in the resource list pointed to by head */static inline void return_resource(struct pci_resource **head, struct pci_resource *node){	if (!node || !head)		return;	node->next = *head;	*head = node;}#define SLOT_NAME_SIZE 10static inline void make_slot_name(char *buffer, int buffer_size, struct slot *slot){	snprintf(buffer, buffer_size, "%d", slot->number);}enum php_ctlr_type {	PCI,	ISA,	ACPI};typedef u8(*php_intr_callback_t) (unsigned int change_id, void *instance_id);int pcie_init(struct controller *ctrl, struct pcie_device *dev,		php_intr_callback_t attention_button_callback,		php_intr_callback_t switch_change_callback,		php_intr_callback_t presence_change_callback,		php_intr_callback_t power_fault_callback);/* This has no meaning for PCI Express, as there is only 1 slot per port */int pcie_get_ctlr_slot_config(struct controller *ctrl,		int *num_ctlr_slots,		int *first_device_num,		int *physical_slot_num,		u8 *ctrlcap);struct hpc_ops {	int	(*power_on_slot)	(struct slot *slot);	int	(*power_off_slot)	(struct slot *slot);	int	(*get_power_status)	(struct slot *slot, u8 *status);	int	(*get_attention_status)	(struct slot *slot, u8 *status);	int	(*set_attention_status)	(struct slot *slot, u8 status);	int	(*get_latch_status)	(struct slot *slot, u8 *status);	int	(*get_adapter_status)	(struct slot *slot, u8 *status);	int	(*get_max_bus_speed)	(struct slot *slot, enum pci_bus_speed *speed);	int	(*get_cur_bus_speed)	(struct slot *slot, enum pci_bus_speed *speed);	int	(*get_max_lnk_width)	(struct slot *slot, enum pcie_link_width *value);	int	(*get_cur_lnk_width)	(struct slot *slot, enum pcie_link_width *value);		int	(*query_power_fault)	(struct slot *slot);	void	(*green_led_on)		(struct slot *slot);	void	(*green_led_off)	(struct slot *slot);	void	(*green_led_blink)	(struct slot *slot);	void	(*release_ctlr)		(struct controller *ctrl);	int	(*check_lnk_status)	(struct controller *ctrl);};#endif				/* _PCIEHP_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频自拍偷拍| 一区二区三区四区五区视频在线观看 | 国产曰批免费观看久久久| 国内外成人在线视频| av不卡在线播放| 欧美日本免费一区二区三区| 日韩一本二本av| 中文字幕精品三区| 午夜久久电影网| 韩国三级在线一区| 91浏览器打开| 日韩欧美国产高清| 中文字幕一区二区三区在线观看 | 99在线热播精品免费| 欧美综合久久久| 日韩精品一区二区三区视频| 中文无字幕一区二区三区 | 欧美日免费三级在线| 精品少妇一区二区三区免费观看| 国产欧美一区二区精品性色| 一区二区三区中文字幕精品精品| 免费av网站大全久久| 成人精品国产免费网站| 欧美日韩国产bt| 国产精品女主播av| 日产国产高清一区二区三区| 成人av中文字幕| 91精品国产免费久久综合| 国产精品毛片高清在线完整版| 午夜精品视频一区| 成人av在线资源网站| 欧美电影免费观看高清完整版在线| 日韩美女精品在线| 国产综合久久久久久鬼色| 欧美日韩视频一区二区| 国产精品毛片久久久久久久| 免费成人在线观看| 欧美色图在线观看| 国产精品久久久久天堂| 麻豆国产精品官网| 欧美专区亚洲专区| 中文字幕中文字幕一区二区| 精品一区二区三区在线播放视频 | 亚洲美女视频在线| 国产成人午夜精品5599 | 久久福利视频一区二区| 色天天综合色天天久久| 欧美国产丝袜视频| 精品综合久久久久久8888| 精品视频1区2区| 亚洲综合在线视频| 99re成人在线| 亚洲国产精品ⅴa在线观看| 久久99热国产| 91精品国产综合久久久久久久| 亚洲精选视频在线| 波多野结衣91| 欧美国产视频在线| 国产盗摄精品一区二区三区在线| 欧美第一区第二区| 六月丁香婷婷色狠狠久久| 欧美电影在线免费观看| 亚洲自拍欧美精品| 91福利在线免费观看| 亚洲日本中文字幕区| gogo大胆日本视频一区| 中文av一区二区| 国产jizzjizz一区二区| 欧美激情在线看| 成人爱爱电影网址| 国产精品毛片高清在线完整版| 国产白丝网站精品污在线入口| 久久久影院官网| 国产一区二区成人久久免费影院 | 久久国产精品色| 欧美r级电影在线观看| 老司机午夜精品| 精品蜜桃在线看| 韩国三级在线一区| 久久精品欧美一区二区三区麻豆| 国产呦萝稀缺另类资源| 久久日韩精品一区二区五区| 国内精品久久久久影院薰衣草| 久久久精品国产免大香伊 | 中文字幕国产一区二区| 成人免费毛片高清视频| 中文字幕中文字幕一区| 色综合天天综合网天天狠天天| 亚洲三级在线免费观看| 欧美亚洲一区二区在线观看| 亚洲国产一区二区三区| 欧美酷刑日本凌虐凌虐| 奇米影视7777精品一区二区| 日韩欧美美女一区二区三区| 激情综合亚洲精品| 中文幕一区二区三区久久蜜桃| av午夜一区麻豆| 亚洲一二三四区不卡| 欧美一区二区视频网站| 狠狠网亚洲精品| 欧美国产精品劲爆| 色婷婷精品大视频在线蜜桃视频| 亚洲一区在线观看网站| 欧美色视频在线观看| 美女在线视频一区| 中文字幕+乱码+中文字幕一区| 91社区在线播放| 日韩在线一二三区| 国产性色一区二区| 色八戒一区二区三区| 日韩精品一二三四| 久久久久99精品国产片| 欧美亚洲国产怡红院影院| 美日韩一级片在线观看| 中文字幕一区二区三区不卡在线| 欧美视频一区二区三区在线观看| 精品制服美女久久| 亚洲色图视频网| 日韩欧美色综合| 成人黄色小视频| 午夜精品久久一牛影视| 国产情人综合久久777777| 欧美在线观看视频一区二区 | 久久久午夜精品理论片中文字幕| 91在线无精精品入口| 日本在线观看不卡视频| 国产精品二区一区二区aⅴ污介绍| 欧美视频你懂的| 丁香婷婷综合色啪| 午夜久久久久久电影| 国产精品婷婷午夜在线观看| 欧美另类变人与禽xxxxx| 不卡在线视频中文字幕| 日本不卡的三区四区五区| 国产精品丝袜在线| 日韩午夜在线观看视频| 色综合天天综合| 久久成人久久爱| 亚洲国产毛片aaaaa无费看| 国产欧美视频一区二区三区| 欧美日韩免费视频| 91香蕉视频在线| 国产精品综合网| 日本不卡123| 亚洲一区二区成人在线观看| 国产网站一区二区| 91精品国产综合久久福利软件| 91在线视频18| 国产精品白丝av| 日韩高清一区二区| 亚洲一区二区在线免费观看视频| 国产欧美日韩一区二区三区在线观看| 欧美日韩国产综合一区二区 | 中文一区一区三区高中清不卡| 91精品国产日韩91久久久久久| 色婷婷激情一区二区三区| 成人晚上爱看视频| 精油按摩中文字幕久久| 爽好多水快深点欧美视频| 中文字幕在线不卡视频| 精品福利av导航| 在线成人免费视频| 在线观看日韩电影| 99久精品国产| 国产999精品久久久久久| 久久精品国产成人一区二区三区| 亚洲国产另类av| 亚洲综合色丁香婷婷六月图片| 亚洲欧洲av另类| 日本一二三不卡| 精品美女在线观看| 欧美tickling挠脚心丨vk| 制服丝袜亚洲精品中文字幕| 欧美三片在线视频观看| 一本在线高清不卡dvd| 91麻豆免费在线观看| 成人免费视频视频| 高清在线不卡av| 大白屁股一区二区视频| 国产麻豆精品一区二区| 国产乱理伦片在线观看夜一区| 毛片av中文字幕一区二区| 美国三级日本三级久久99 | 日韩精品影音先锋| 日韩一级大片在线观看| 欧美一区二区精品久久911| 欧美精品国产精品| 91精品麻豆日日躁夜夜躁| 91精品国产色综合久久不卡蜜臀 | 亚洲成人午夜电影| 婷婷中文字幕综合| 日韩1区2区3区| 精品夜夜嗨av一区二区三区| 精品影院一区二区久久久| 黄色小说综合网站| 国产精品乡下勾搭老头1| 成人午夜av影视| 在线视频欧美精品| 欧美日韩成人综合| 日韩精品最新网址|