acpiphp.h (125450f814418b9f889c9885831467d1b2e25a7d) | acpiphp.h (3d0186bb068e6cc6c23dc1d2f0b1cf64894c40ea) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * ACPI PCI Hot Plug Controller Driver 4 * 5 * Copyright (C) 1995,2001 Compaq Computer Corporation 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 7 * Copyright (C) 2001 IBM Corp. 8 * Copyright (C) 2002 Hiroshi Aono (h-aono@ap.jp.nec.com) 9 * Copyright (C) 2002,2003 Takayoshi Kochi (t-kochi@bq.jp.nec.com) 10 * Copyright (C) 2002,2003 NEC Corporation | 1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * ACPI PCI Hot Plug Controller Driver 4 * 5 * Copyright (C) 1995,2001 Compaq Computer Corporation 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 7 * Copyright (C) 2001 IBM Corp. 8 * Copyright (C) 2002 Hiroshi Aono (h-aono@ap.jp.nec.com) 9 * Copyright (C) 2002,2003 Takayoshi Kochi (t-kochi@bq.jp.nec.com) 10 * Copyright (C) 2002,2003 NEC Corporation |
11 * Copyright (C) 2003-2005 Matthew Wilcox (matthew.wilcox@hp.com) | 11 * Copyright (C) 2003-2005 Matthew Wilcox (willy@infradead.org) |
12 * Copyright (C) 2003-2005 Hewlett Packard 13 * 14 * All rights reserved. 15 * 16 * Send feedback to <gregkh@us.ibm.com>, 17 * <t-kochi@bq.jp.nec.com> 18 * 19 */ --- 8 unchanged lines hidden (view full) --- 28struct acpiphp_context; 29struct acpiphp_bridge; 30struct acpiphp_slot; 31 32/* 33 * struct slot - slot information for each *physical* slot 34 */ 35struct slot { | 12 * Copyright (C) 2003-2005 Hewlett Packard 13 * 14 * All rights reserved. 15 * 16 * Send feedback to <gregkh@us.ibm.com>, 17 * <t-kochi@bq.jp.nec.com> 18 * 19 */ --- 8 unchanged lines hidden (view full) --- 28struct acpiphp_context; 29struct acpiphp_bridge; 30struct acpiphp_slot; 31 32/* 33 * struct slot - slot information for each *physical* slot 34 */ 35struct slot { |
36 struct hotplug_slot hotplug_slot; | 36 struct hotplug_slot *hotplug_slot; |
37 struct acpiphp_slot *acpi_slot; | 37 struct acpiphp_slot *acpi_slot; |
38 struct hotplug_slot_info info; |
|
38 unsigned int sun; /* ACPI _SUN (Slot User Number) value */ 39}; 40 41static inline const char *slot_name(struct slot *slot) 42{ | 39 unsigned int sun; /* ACPI _SUN (Slot User Number) value */ 40}; 41 42static inline const char *slot_name(struct slot *slot) 43{ |
43 return hotplug_slot_name(&slot->hotplug_slot); | 44 return hotplug_slot_name(slot->hotplug_slot); |
44} 45 | 45} 46 |
46static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) 47{ 48 return container_of(hotplug_slot, struct slot, hotplug_slot); 49} 50 | |
51/* 52 * struct acpiphp_bridge - PCI bridge information 53 * 54 * for each bridge device in ACPI namespace 55 */ 56struct acpiphp_bridge { 57 struct list_head list; 58 struct list_head slots; --- 134 unchanged lines hidden --- | 47/* 48 * struct acpiphp_bridge - PCI bridge information 49 * 50 * for each bridge device in ACPI namespace 51 */ 52struct acpiphp_bridge { 53 struct list_head list; 54 struct list_head slots; --- 134 unchanged lines hidden --- |