/* SPDX-License-Identifier: GPL-2.0+ */ /* * CompactPCI Hot Plug Core Functions * * Copyright (C) 2002 SOMA Networks, Inc. * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) * Copyright (C) 2001 IBM Corp. * * All rights reserved. * * Send feedback to <scottm@somanetworks.com> */ #ifndef _CPCI_HOTPLUG_H #define _CPCI_HOTPLUG_H #include <linux/types.h> #include <linux/pci.h> #include <linux/pci_hotplug.h> /* PICMG 2.1 R2.0 HS CSR bits: */ #define HS_CSR_INS 0x0080 #define HS_CSR_EXT 0x0040 #define HS_CSR_PI 0x0030 #define HS_CSR_LOO 0x0008 #define HS_CSR_PIE 0x0004 #define HS_CSR_EIM 0x0002 #define HS_CSR_DHA 0x0001 struct slot { u8 number; unsigned int devfn; struct pci_bus *bus; struct pci_dev *dev; unsigned int extracting; struct hotplug_slot *hotplug_slot; struct list_head slot_list; }; struct cpci_hp_controller_ops { int (*query_enum)(void); int (*enable_irq)(void); int (*disable_irq)(void); int (*check_irq)(void *dev_id); int (*hardware_test)(struct slot *slot, u32 value); u8 (*get_power)(struct slot *slot); int (*set_power)(struct slot *slot, int value); }; struct cpci_hp_controller { unsigned int irq; unsigned long irq_flags; char *devname; void *dev_id; char *name; struct cpci_hp_controller_ops *ops; };
static inline const char *slot_name(struct slot *slot) { return hotplug_slot_name(slot->hotplug_slot); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Chiang | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Björn Helgaas | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Scott Murray | 360 | 86.96% | 2 | 40.00% |
Björn Helgaas | 29 | 7.00% | 2 | 40.00% |
Alexander Chiang | 25 | 6.04% | 1 | 20.00% |
Total | 414 | 100.00% | 5 | 100.00% |