Path: blob/master/arch/powerpc/include/asm/eeh_event.h
15117 views
/*1* eeh_event.h2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License14* along with this program; if not, write to the Free Software15* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA16*17* Copyright (c) 2005 Linas Vepstas <[email protected]>18*/1920#ifndef ASM_POWERPC_EEH_EVENT_H21#define ASM_POWERPC_EEH_EVENT_H22#ifdef __KERNEL__2324/** EEH event -- structure holding pci controller data that describes25* a change in the isolation status of a PCI slot. A pointer26* to this struct is passed as the data pointer in a notify callback.27*/28struct eeh_event {29struct list_head list;30struct device_node *dn; /* struct device node */31struct pci_dev *dev; /* affected device */32};3334/**35* eeh_send_failure_event - generate a PCI error event36* @dev pci device37*38* This routine builds a PCI error event which will be delivered39* to all listeners on the eeh_notifier_chain.40*41* This routine can be called within an interrupt context;42* the actual event will be delivered in a normal context43* (from a workqueue).44*/45int eeh_send_failure_event (struct device_node *dn,46struct pci_dev *dev);4748/* Main recovery function */49struct pci_dn * handle_eeh_events (struct eeh_event *);5051#endif /* __KERNEL__ */52#endif /* ASM_POWERPC_EEH_EVENT_H */535455