interrupt.c (4c6e22b8a93ef038b70661e590de250a09417af7) | interrupt.c (40e0b67be099175d069b0cf46f1102f352d46c61) |
---|---|
1/* 2 * 3 * Intel Management Engine Interface (Intel MEI) Linux driver 4 * Copyright (c) 2003-2012, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 */ 16 17 | 1/* 2 * 3 * Intel Management Engine Interface (Intel MEI) Linux driver 4 * Copyright (c) 2003-2012, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 */ 16 17 |
18#include <linux/export.h> |
|
18#include <linux/pci.h> 19#include <linux/kthread.h> 20#include <linux/interrupt.h> 21#include <linux/fs.h> 22#include <linux/jiffies.h> 23 24#include <linux/mei.h> 25 --- 47 unchanged lines hidden (view full) --- 73 74 dev_dbg(&dev->pdev->dev, "completing call back.\n"); 75 if (cl == &dev->iamthif_cl) 76 mei_amthif_complete(dev, cb); 77 else 78 mei_cl_complete_handler(cl, cb); 79 } 80} | 19#include <linux/pci.h> 20#include <linux/kthread.h> 21#include <linux/interrupt.h> 22#include <linux/fs.h> 23#include <linux/jiffies.h> 24 25#include <linux/mei.h> 26 --- 47 unchanged lines hidden (view full) --- 74 75 dev_dbg(&dev->pdev->dev, "completing call back.\n"); 76 if (cl == &dev->iamthif_cl) 77 mei_amthif_complete(dev, cb); 78 else 79 mei_cl_complete_handler(cl, cb); 80 } 81} |
82EXPORT_SYMBOL_GPL(mei_irq_compl_handler); |
|
81/** 82 * _mei_irq_thread_state_ok - checks if mei header matches file private data 83 * 84 * @cl: private data of the file object 85 * @mei_hdr: header of mei client message 86 * 87 * returns !=0 if matches, 0 if no match. 88 */ --- 346 unchanged lines hidden (view full) --- 435 dev_dbg(&dev->pdev->dev, "resetting due to slots overflow.\n"); 436 /* set the event since message has been read */ 437 ret = -ERANGE; 438 goto end; 439 } 440end: 441 return ret; 442} | 83/** 84 * _mei_irq_thread_state_ok - checks if mei header matches file private data 85 * 86 * @cl: private data of the file object 87 * @mei_hdr: header of mei client message 88 * 89 * returns !=0 if matches, 0 if no match. 90 */ --- 346 unchanged lines hidden (view full) --- 437 dev_dbg(&dev->pdev->dev, "resetting due to slots overflow.\n"); 438 /* set the event since message has been read */ 439 ret = -ERANGE; 440 goto end; 441 } 442end: 443 return ret; 444} |
445EXPORT_SYMBOL_GPL(mei_irq_read_handler); |
|
443 444 445/** 446 * mei_irq_write_handler - dispatch write requests 447 * after irq received 448 * 449 * @dev: the device structure 450 * @cmpl_list: An instance of our list structure --- 134 unchanged lines hidden (view full) --- 585 ret = mei_irq_thread_write_complete(dev, &slots, pos, 586 cmpl_list); 587 if (ret) 588 return ret; 589 590 } 591 return 0; 592} | 446 447 448/** 449 * mei_irq_write_handler - dispatch write requests 450 * after irq received 451 * 452 * @dev: the device structure 453 * @cmpl_list: An instance of our list structure --- 134 unchanged lines hidden (view full) --- 588 ret = mei_irq_thread_write_complete(dev, &slots, pos, 589 cmpl_list); 590 if (ret) 591 return ret; 592 593 } 594 return 0; 595} |
596EXPORT_SYMBOL_GPL(mei_irq_write_handler); |
|
593 594 595 596/** 597 * mei_timer - timer function. 598 * 599 * @work: pointer to the work_struct structure 600 * --- 98 unchanged lines hidden --- | 597 598 599 600/** 601 * mei_timer - timer function. 602 * 603 * @work: pointer to the work_struct structure 604 * --- 98 unchanged lines hidden --- |