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

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

?? pciehp_core.c

?? linux-2.6.15.6
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * 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>, <kristen.c.accardi@intel.com> * */#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/pci.h>#include "pciehp.h"#include <linux/interrupt.h>/* Global variables */int pciehp_debug;int pciehp_poll_mode;int pciehp_poll_time;int pciehp_force;struct controller *pciehp_ctrl_list;#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_param(pciehp_force, bool, 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");MODULE_PARM_DESC(pciehp_force, "Force pciehp, even if _OSC and OSHP are missing");#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,};/** * release_slot - free up the memory used by a slot * @hotplug_slot: slot to free */static void release_slot(struct hotplug_slot *hotplug_slot){	struct slot *slot = hotplug_slot->private;	dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);	kfree(slot->hotplug_slot->info);	kfree(slot->hotplug_slot->name);	kfree(slot->hotplug_slot);	kfree(slot);}static int init_slots(struct controller *ctrl){	struct slot *new_slot;	u8 number_of_slots;	u8 slot_device;	u32 slot_number;	int result = -ENOMEM;	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;		new_slot->hotplug_slot->release = &release_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);		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;	u8 ctrlcap;				int rc;	rc = pcie_get_ctlr_slot_config(ctrl, &num_ctlr_slots, &first_device_num, &physical_slot_num, &ctrlcap);	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->ctrlcap = ctrlcap; 		dbg("%s: bus(0x%x) num_slot(0x%x) 1st_dev(0x%x) psn(0x%x) ctrlcap(%x) for b:d (%x:%x)\n",		__FUNCTION__, ctrl->slot_bus, num_ctlr_slots, first_device_num, physical_slot_num, ctrlcap, 		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;		if (ATTN_LED(slot->ctrl->ctrlcap)) 		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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜日韩在线电影| 亚洲综合久久av| 欧美色综合网站| bt欧美亚洲午夜电影天堂| 精品亚洲porn| 久久国产麻豆精品| 久久国内精品视频| 韩国毛片一区二区三区| 久久99热狠狠色一区二区| 免费欧美在线视频| 久久国产精品99精品国产 | 日韩电影在线观看电影| 亚洲国产精品久久久久婷婷884| 亚洲裸体在线观看| 亚洲一区在线观看视频| 日韩成人午夜精品| 精品一区二区三区不卡| 大白屁股一区二区视频| www.在线欧美| 欧美午夜精品一区二区三区| 91麻豆精品国产91久久久更新时间| 538prom精品视频线放| 精品国产污网站| 亚洲欧洲性图库| 图片区日韩欧美亚洲| 精品一区免费av| 丁香婷婷深情五月亚洲| 91激情五月电影| 日韩美女在线视频| 中文字幕一区二区三区乱码在线| 亚洲人成网站影音先锋播放| 日本美女一区二区三区| 国产99久久久精品| 欧美日韩色一区| 国产免费成人在线视频| 亚洲精品成人天堂一二三| 免费视频一区二区| 成人精品一区二区三区中文字幕 | 亚洲成av人片在线观看| 精品一区二区三区免费播放| 成人av资源下载| 欧美一区二区免费视频| 国产精品久久久久久久裸模| 亚洲国产成人tv| 国产99久久久久久免费看农村| 欧美日韩1234| 亚洲三级理论片| 激情深爱一区二区| 欧美丝袜丝交足nylons| 久久久久综合网| 天天综合网 天天综合色| 国产成人亚洲综合色影视| 7777精品久久久大香线蕉| 国产精品二区一区二区aⅴ污介绍| 首页欧美精品中文字幕| 99视频精品全部免费在线| 日韩三级精品电影久久久 | 欧美美女直播网站| 国产午夜精品一区二区三区视频| 视频在线观看一区| 91看片淫黄大片一级| 国产亚洲人成网站| 另类小说综合欧美亚洲| 欧美少妇性性性| 一区二区三区在线观看动漫| 丁香天五香天堂综合| 精品国产乱码久久久久久影片| 亚洲国产综合色| 色94色欧美sute亚洲线路一久| 中文字幕国产一区| 国产乱码精品1区2区3区| 精品少妇一区二区| 麻豆成人在线观看| 欧美三级日韩三级| 亚洲va欧美va国产va天堂影院| 一道本成人在线| 亚洲精品国产视频| 91亚洲大成网污www| 国产欧美精品一区二区色综合朱莉| 免费xxxx性欧美18vr| 在线播放一区二区三区| 天堂成人免费av电影一区| 337p亚洲精品色噜噜| 午夜国产不卡在线观看视频| 欧美日韩国产高清一区二区三区 | 成av人片一区二区| 国产精品乱人伦中文| 成人亚洲精品久久久久软件| 国产精品欧美一区二区三区| 99re热视频这里只精品| 亚洲视频 欧洲视频| 欧美性猛交xxxxxx富婆| 日韩电影在线免费看| 精品日本一线二线三线不卡 | 中文字幕中文字幕中文字幕亚洲无线| 国产成人免费av在线| 专区另类欧美日韩| 欧美日韩视频专区在线播放| 免费在线观看视频一区| 欧美www视频| 成人夜色视频网站在线观看| 一区二区三区蜜桃网| 欧美高清dvd| 国产一区二区三区免费在线观看| 国产欧美精品一区二区三区四区| 成人h动漫精品一区二区| 夜夜嗨av一区二区三区中文字幕| 91精品国产色综合久久ai换脸 | 99热这里都是精品| 亚洲.国产.中文慕字在线| 久久在线免费观看| 91免费观看国产| 青青草伊人久久| **欧美大码日韩| 日韩一区二区三区精品视频| 成人激情电影免费在线观看| 亚洲第一激情av| 欧美国产在线观看| 欧美精品vⅰdeose4hd| 国产成人免费在线视频| 亚洲午夜视频在线观看| 久久欧美一区二区| 在线观看免费亚洲| 国产成人精品一区二区三区四区 | 欧美v亚洲v综合ⅴ国产v| 成人app在线| 美女精品自拍一二三四| 亚洲欧美怡红院| 精品福利在线导航| 欧美剧情电影在线观看完整版免费励志电影| 狠狠狠色丁香婷婷综合激情| 一区二区三区四区高清精品免费观看 | 国产日韩欧美在线一区| 欧美综合天天夜夜久久| 国产suv精品一区二区6| 久久精工是国产品牌吗| 亚洲午夜久久久久久久久电影院| 国产精品久久久久久久久免费相片| 日韩女优av电影在线观看| 欧洲色大大久久| 91在线观看免费视频| 国产成人亚洲综合a∨婷婷| 日本aⅴ亚洲精品中文乱码| 一个色在线综合| 亚洲精品久久嫩草网站秘色| 国产精品久久久久国产精品日日| 精品美女在线观看| 欧美日韩免费高清一区色橹橹| 波多野结衣欧美| 成人深夜视频在线观看| 国产精品系列在线观看| 国产美女视频91| 国产在线国偷精品免费看| 国产一区二区三区不卡在线观看 | 午夜av电影一区| 一区二区三区电影在线播| 国产精品三级视频| 国产精品色一区二区三区| 国产精品国产a| 亚洲人123区| 一区二区在线观看视频| 亚洲精品视频在线观看免费| 亚洲青青青在线视频| 亚洲欧洲精品一区二区三区不卡| 欧美韩国日本综合| 伊人性伊人情综合网| 日韩中文字幕亚洲一区二区va在线| 琪琪一区二区三区| 国产揄拍国内精品对白| 国产成人8x视频一区二区| 成人ar影院免费观看视频| 丁香激情综合国产| 色哦色哦哦色天天综合| 欧美女孩性生活视频| 日韩女优av电影| 国产精品电影一区二区三区| 亚洲精品国产a久久久久久| 亚洲一二三级电影| 青青草国产精品亚洲专区无| 国产专区综合网| 97久久久精品综合88久久| 欧美性受xxxx| 欧美一区二区大片| 国产欧美视频一区二区三区| 亚洲你懂的在线视频| 麻豆国产一区二区| 不卡av免费在线观看| 欧美日韩不卡一区二区| 精品国产免费视频| 亚洲欧洲美洲综合色网| 欧美变态口味重另类| 国产精品欧美精品| 亚洲第一搞黄网站| 国产麻豆一精品一av一免费| av成人免费在线观看| 欧美日韩精品二区第二页| 国产清纯白嫩初高生在线观看91| 亚洲美女屁股眼交3| 午夜视黄欧洲亚洲| jizz一区二区|