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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? pciehp_core.c

?? Linux Kernel 2.6.9 for OMAP1710
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * 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> * */#include <linux/config.h>#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/proc_fs.h>#include <linux/miscdevice.h>#include <linux/slab.h>#include <linux/workqueue.h>#include <linux/pci.h>#include <linux/init.h>#include <asm/uaccess.h>#include "pciehp.h"#include "pciehprm.h"/* Global variables */int pciehp_debug;int pciehp_poll_mode;int pciehp_poll_time;struct controller *pciehp_ctrl_list;struct pci_func *pciehp_slot_list[256];#define DRIVER_VERSION	"0.4"#define DRIVER_AUTHOR	"Dan Zink <dan.zink@compaq.com>, Greg Kroah-Hartman <greg@kroah.com>, Dely Sy <dely.l.sy@intel.com>"#define DRIVER_DESC	"PCI Express Hot Plug Controller Driver"MODULE_AUTHOR(DRIVER_AUTHOR);MODULE_DESCRIPTION(DRIVER_DESC);MODULE_LICENSE("GPL");module_param(pciehp_debug, bool, 0644);module_param(pciehp_poll_mode, bool, 0644);module_param(pciehp_poll_time, int, 0644);MODULE_PARM_DESC(pciehp_debug, "Debugging mode enabled or not");MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");MODULE_PARM_DESC(pciehp_poll_time, "Polling mechanism frequency, in seconds");#define PCIE_MODULE_NAME "pciehp"static int pcie_start_thread (void);static int set_attention_status (struct hotplug_slot *slot, u8 value);static int enable_slot		(struct hotplug_slot *slot);static int disable_slot		(struct hotplug_slot *slot);static int get_power_status	(struct hotplug_slot *slot, u8 *value);static int get_attention_status	(struct hotplug_slot *slot, u8 *value);static int get_latch_status	(struct hotplug_slot *slot, u8 *value);static int get_adapter_status	(struct hotplug_slot *slot, u8 *value);static int get_max_bus_speed	(struct hotplug_slot *slot, enum pci_bus_speed *value);static int get_cur_bus_speed	(struct hotplug_slot *slot, enum pci_bus_speed *value);static struct hotplug_slot_ops pciehp_hotplug_slot_ops = {	.owner =		THIS_MODULE,	.set_attention_status =	set_attention_status,	.enable_slot =		enable_slot,	.disable_slot =		disable_slot,	.get_power_status =	get_power_status,	.get_attention_status =	get_attention_status,	.get_latch_status =	get_latch_status,	.get_adapter_status =	get_adapter_status,  	.get_max_bus_speed =	get_max_bus_speed,  	.get_cur_bus_speed =	get_cur_bus_speed,};static int init_slots(struct controller *ctrl){	struct slot *new_slot;	u8 number_of_slots;	u8 slot_device;	u32 slot_number;	int result = -ENOMEM;	dbg("%s\n",__FUNCTION__);	number_of_slots = ctrl->num_slots;	slot_device = ctrl->slot_device_offset;	slot_number = ctrl->first_slot;	while (number_of_slots) {		new_slot = kmalloc(sizeof(*new_slot), GFP_KERNEL);		if (!new_slot)			goto error;		memset(new_slot, 0, sizeof(struct slot));		new_slot->hotplug_slot =				kmalloc(sizeof(*(new_slot->hotplug_slot)),						GFP_KERNEL);		if (!new_slot->hotplug_slot)			goto error_slot;		memset(new_slot->hotplug_slot, 0, sizeof(struct hotplug_slot));		new_slot->hotplug_slot->info =			kmalloc(sizeof(*(new_slot->hotplug_slot->info)),						GFP_KERNEL);		if (!new_slot->hotplug_slot->info)			goto error_hpslot;		memset(new_slot->hotplug_slot->info, 0,					sizeof(struct hotplug_slot_info));		new_slot->hotplug_slot->name = kmalloc(SLOT_NAME_SIZE,						GFP_KERNEL);		if (!new_slot->hotplug_slot->name)			goto error_info;		new_slot->ctrl = ctrl;		new_slot->bus = ctrl->slot_bus;		new_slot->device = slot_device;		new_slot->hpc_ops = ctrl->hpc_ops;		new_slot->number = ctrl->first_slot;		new_slot->hp_slot = slot_device - ctrl->slot_device_offset;		/* register this slot with the hotplug pci core */		new_slot->hotplug_slot->private = new_slot;		make_slot_name (new_slot->hotplug_slot->name, SLOT_NAME_SIZE, new_slot);		new_slot->hotplug_slot->ops = &pciehp_hotplug_slot_ops;		new_slot->hpc_ops->get_power_status(new_slot, &(new_slot->hotplug_slot->info->power_status));		new_slot->hpc_ops->get_attention_status(new_slot, &(new_slot->hotplug_slot->info->attention_status));		new_slot->hpc_ops->get_latch_status(new_slot, &(new_slot->hotplug_slot->info->latch_status));		new_slot->hpc_ops->get_adapter_status(new_slot, &(new_slot->hotplug_slot->info->adapter_status));		dbg("Registering bus=%x dev=%x hp_slot=%x sun=%x slot_device_offset=%x\n", 			new_slot->bus, new_slot->device, new_slot->hp_slot, new_slot->number, ctrl->slot_device_offset);		result = pci_hp_register (new_slot->hotplug_slot);		if (result) {			err ("pci_hp_register failed with error %d\n", result);			goto error_name;		}		new_slot->next = ctrl->slot;		ctrl->slot = new_slot;		number_of_slots--;		slot_device++;		slot_number += ctrl->slot_num_inc;	}	return 0;error_name:	kfree(new_slot->hotplug_slot->name);error_info:	kfree(new_slot->hotplug_slot->info);error_hpslot:	kfree(new_slot->hotplug_slot);error_slot:	kfree(new_slot);error:	return result;}static int cleanup_slots (struct controller * ctrl){	struct slot *old_slot, *next_slot;	old_slot = ctrl->slot;	ctrl->slot = NULL;	while (old_slot) {		next_slot = old_slot->next;		pci_hp_deregister (old_slot->hotplug_slot);		kfree(old_slot->hotplug_slot->info);		kfree(old_slot->hotplug_slot->name);		kfree(old_slot->hotplug_slot);		kfree(old_slot);		old_slot = next_slot;	}	return(0);}static int get_ctlr_slot_config(struct controller *ctrl){	int num_ctlr_slots;		/* Not needed; PCI Express has 1 slot per port*/	int first_device_num;		/* Not needed */	int physical_slot_num;	int updown;			/* Not needed */	int rc;	int flags;			/* Not needed */	rc = pcie_get_ctlr_slot_config(ctrl, &num_ctlr_slots, &first_device_num, &physical_slot_num, &updown, &flags);	if (rc) {		err("%s: get_ctlr_slot_config fail for b:d (%x:%x)\n", __FUNCTION__, ctrl->bus, ctrl->device);		return (-1);	}	ctrl->num_slots = num_ctlr_slots;	/* PCI Express has 1 slot per port */	ctrl->slot_device_offset = first_device_num;	ctrl->first_slot = physical_slot_num;	ctrl->slot_num_inc = updown; 	/* Not needed */		/* either -1 or 1 */	dbg("%s: bus(0x%x) num_slot(0x%x) 1st_dev(0x%x) psn(0x%x) updown(%d) for b:d (%x:%x)\n",		__FUNCTION__, ctrl->slot_bus, num_ctlr_slots, first_device_num, physical_slot_num, updown, 		ctrl->bus, ctrl->device);	return (0);}/* * set_attention_status - Turns the Amber LED for a slot on, off or blink */static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status){	struct slot *slot = hotplug_slot->private;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	hotplug_slot->info->attention_status = status;	slot->hpc_ops->set_attention_status(slot, status);	return 0;}static int enable_slot(struct hotplug_slot *hotplug_slot){	struct slot *slot = hotplug_slot->private;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	return pciehp_enable_slot(slot);}static int disable_slot(struct hotplug_slot *hotplug_slot){	struct slot *slot = hotplug_slot->private;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	return pciehp_disable_slot(slot);}static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value){	struct slot *slot = hotplug_slot->private;	int retval;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	retval = slot->hpc_ops->get_power_status(slot, value);	if (retval < 0)		*value = hotplug_slot->info->power_status;	return 0;}static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value){	struct slot *slot = hotplug_slot->private;	int retval;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	retval = slot->hpc_ops->get_attention_status(slot, value);	if (retval < 0)		*value = hotplug_slot->info->attention_status;	return 0;}static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value){	struct slot *slot = hotplug_slot->private;	int retval;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	retval = slot->hpc_ops->get_latch_status(slot, value);	if (retval < 0)		*value = hotplug_slot->info->latch_status;	return 0;}static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value){	struct slot *slot = hotplug_slot->private;	int retval;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	retval = slot->hpc_ops->get_adapter_status(slot, value);	if (retval < 0)		*value = hotplug_slot->info->adapter_status;	return 0;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品午夜视频| 亚洲欧美在线aaa| 欧美日韩久久久一区| 欧美一区二区国产| 久久久久久久综合日本| 亚洲欧洲日韩女同| 欧美aaa在线| 91在线一区二区| 5月丁香婷婷综合| 中文字幕乱码久久午夜不卡 | 免费看日韩a级影片| 极品美女销魂一区二区三区| av亚洲精华国产精华| 91.com视频| 国产精品成人网| 日日摸夜夜添夜夜添国产精品 | 中文字幕精品三区| 亚洲高清在线视频| 国产精品自在欧美一区| 欧美午夜在线一二页| 久久九九全国免费| 亚洲一区二区三区爽爽爽爽爽 | 中文字幕在线不卡一区| 日韩不卡手机在线v区| av高清不卡在线| 日韩女同互慰一区二区| 亚洲色图19p| 国产露脸91国语对白| 欧美日韩一区二区三区高清| 中文字幕精品三区| 狂野欧美性猛交blacked| 色婷婷av久久久久久久| 久久久国产精品不卡| 日本vs亚洲vs韩国一区三区二区| 99视频热这里只有精品免费| 日韩欧美成人一区二区| 日韩伦理电影网| 99久久精品国产毛片| 欧美韩国日本综合| 久久精品国产久精国产| 欧美福利视频一区| 亚洲午夜一二三区视频| 色综合一个色综合亚洲| 国产精品福利电影一区二区三区四区| 日韩精品91亚洲二区在线观看| 69p69国产精品| 亚洲动漫第一页| 成人一区二区在线观看| 精品久久一区二区| 亚洲444eee在线观看| 麻豆成人免费电影| 大陆成人av片| 日韩欧美二区三区| 五月婷婷欧美视频| 久久久久亚洲综合| 老司机午夜精品| 日韩亚洲欧美在线观看| 亚洲不卡一区二区三区| 91福利资源站| 亚洲精品视频在线看| 99久久伊人精品| 中文乱码免费一区二区| 国产精品一二三区| 久久久91精品国产一区二区精品| 久久99久久久久| 日韩欧美精品在线| 久久精品国产免费| 欧美va日韩va| 青青青爽久久午夜综合久久午夜| 欧美高清激情brazzers| 日韩专区中文字幕一区二区| 欧美日韩免费观看一区二区三区 | 国产.精品.日韩.另类.中文.在线.播放| 7777女厕盗摄久久久| 日韩和欧美一区二区| 欧美乱妇一区二区三区不卡视频 | 欧美一区二区成人6969| 麻豆精品一区二区三区| 欧美大肚乱孕交hd孕妇| 久久99精品久久久久久动态图| 欧美成人aa大片| 国产一区二区三区免费看 | 久久综合一区二区| 欧美日韩视频第一区| 韩国视频一区二区| 一区二区三区成人| 日本一区二区免费在线观看视频| 日韩视频中午一区| 国产成人免费av在线| 日韩精品三区四区| 性欧美疯狂xxxxbbbb| 国产精品毛片大码女人| 91麻豆精品国产91久久久久久久久 | 国产一区999| 国产偷国产偷亚洲高清人白洁| 国产精品一区一区| 国产精品成人免费| 精品视频在线免费观看| 蜜桃精品在线观看| 国产婷婷精品av在线| 91网址在线看| 亚洲成人www| 精品国产一区二区三区久久影院 | 日本一区二区三级电影在线观看| 99re这里只有精品首页| 亚洲一二三专区| 欧美男生操女生| 国产在线视频一区二区三区| 国产精品久久毛片a| 欧美亚洲综合久久| 国产一区二区三区综合| 日韩久久一区二区| 在线播放日韩导航| 粉嫩aⅴ一区二区三区四区五区| 亚洲人吸女人奶水| 欧美一区二区久久久| 成人影视亚洲图片在线| 午夜精品久久久久久久久久| 久久久91精品国产一区二区精品 | 亚洲自拍偷拍综合| 亚洲国产精品久久一线不卡| 日韩视频一区在线观看| 国产mv日韩mv欧美| 亚洲欧洲成人自拍| 亚洲伦理在线免费看| 美女脱光内衣内裤视频久久网站 | 国产精品久久久久影院老司| 国产三区在线成人av| 日本一区二区视频在线观看| 中文字幕人成不卡一区| 五月婷婷久久丁香| 99精品欧美一区二区三区小说 | 色94色欧美sute亚洲13| 国产自产视频一区二区三区| 一区二区三区在线观看网站| 欧美不卡激情三级在线观看| 日本久久精品电影| 国产精品一区二区久久精品爱涩| 亚洲h精品动漫在线观看| 国产精品视频你懂的| 日韩一区二区免费在线电影| 色悠悠久久综合| 福利一区在线观看| 毛片不卡一区二区| 亚洲一区在线视频观看| 国产调教视频一区| 欧美xxxxxxxxx| 欧美日韩国产中文| 91浏览器入口在线观看| 国产精品综合在线视频| 免费精品视频最新在线| 一区二区三区国产| 国产精品女上位| 久久综合九色欧美综合狠狠 | 狠狠色狠狠色综合日日91app| 色天天综合色天天久久| 国产福利91精品一区二区三区| 日韩在线播放一区二区| 亚洲在线中文字幕| 亚洲人精品午夜| 亚洲欧美综合在线精品| 国产精品午夜免费| 久久久不卡影院| 2欧美一区二区三区在线观看视频| 5566中文字幕一区二区电影| 欧美在线观看视频在线| 91丨porny丨首页| 丁香婷婷深情五月亚洲| 国产精品自拍三区| 国产一区二区成人久久免费影院| 免费欧美在线视频| 美女视频免费一区| 免费亚洲电影在线| 毛片基地黄久久久久久天堂| 久久久久久久电影| 免费观看日韩av| 亚洲欧洲色图综合| 欧美一区二区日韩一区二区| 午夜精品爽啪视频| 日韩一区二区三区av| 久草中文综合在线| 国产午夜精品久久久久久久 | av一区二区三区黑人| 国产精品免费av| 日本乱码高清不卡字幕| 亚洲成人综合视频| 欧美日韩黄色影视| 国内不卡的二区三区中文字幕| 久久激情五月婷婷| 国内精品视频一区二区三区八戒| 久久超碰97人人做人人爱| 狠狠狠色丁香婷婷综合久久五月| 国产一区二区三区视频在线播放| 国产麻豆成人精品| 99久久精品国产一区二区三区| 久久精品免视看| 国产精品短视频| 亚洲精品伦理在线| 日韩精品亚洲专区| 极品美女销魂一区二区三区 |