pci-sysfs.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) pci-sysfs.c (265baca69a0735b64227a43d4be865a95ba514bb)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * (C) Copyright 2002-2004 Greg Kroah-Hartman <greg@kroah.com>
4 * (C) Copyright 2002-2004 IBM Corp.
5 * (C) Copyright 2003 Matthew Wilcox
6 * (C) Copyright 2003 Hewlett-Packard
7 * (C) Copyright 2004 Jon Smirl <jonsmirl@yahoo.com>
8 * (C) Copyright 2004 Silicon Graphics, Inc. Jesse Barnes <jbarnes@sgi.com>

--- 17 unchanged lines hidden (view full) ---

26#include <linux/slab.h>
27#include <linux/vgaarb.h>
28#include <linux/pm_runtime.h>
29#include <linux/msi.h>
30#include <linux/of.h>
31#include <linux/aperture.h>
32#include "pci.h"
33
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * (C) Copyright 2002-2004 Greg Kroah-Hartman <greg@kroah.com>
4 * (C) Copyright 2002-2004 IBM Corp.
5 * (C) Copyright 2003 Matthew Wilcox
6 * (C) Copyright 2003 Hewlett-Packard
7 * (C) Copyright 2004 Jon Smirl <jonsmirl@yahoo.com>
8 * (C) Copyright 2004 Silicon Graphics, Inc. Jesse Barnes <jbarnes@sgi.com>

--- 17 unchanged lines hidden (view full) ---

26#include <linux/slab.h>
27#include <linux/vgaarb.h>
28#include <linux/pm_runtime.h>
29#include <linux/msi.h>
30#include <linux/of.h>
31#include <linux/aperture.h>
32#include "pci.h"
33
34#ifndef ARCH_PCI_DEV_GROUPS
35#define ARCH_PCI_DEV_GROUPS
36#endif
37
34static int sysfs_initialized; /* = 0 */
35
36/* show configuration fields */
37#define pci_config_attr(field, format_string) \
38static ssize_t \
39field##_show(struct device *dev, struct device_attribute *attr, char *buf) \
40{ \
41 struct pci_dev *pdev; \

--- 1577 unchanged lines hidden (view full) ---

1619 &pci_dev_vpd_attr_group,
1620#ifdef CONFIG_DMI
1621 &pci_dev_smbios_attr_group,
1622#endif
1623#ifdef CONFIG_ACPI
1624 &pci_dev_acpi_attr_group,
1625#endif
1626 &pci_dev_resource_resize_group,
38static int sysfs_initialized; /* = 0 */
39
40/* show configuration fields */
41#define pci_config_attr(field, format_string) \
42static ssize_t \
43field##_show(struct device *dev, struct device_attribute *attr, char *buf) \
44{ \
45 struct pci_dev *pdev; \

--- 1577 unchanged lines hidden (view full) ---

1623 &pci_dev_vpd_attr_group,
1624#ifdef CONFIG_DMI
1625 &pci_dev_smbios_attr_group,
1626#endif
1627#ifdef CONFIG_ACPI
1628 &pci_dev_acpi_attr_group,
1629#endif
1630 &pci_dev_resource_resize_group,
1631 ARCH_PCI_DEV_GROUPS
1627 NULL,
1628};
1629
1630static const struct attribute_group pci_dev_hp_attr_group = {
1631 .attrs = pci_dev_hp_attrs,
1632 .is_visible = pci_dev_hp_attrs_are_visible,
1633};
1634

--- 32 unchanged lines hidden ---
1632 NULL,
1633};
1634
1635static const struct attribute_group pci_dev_hp_attr_group = {
1636 .attrs = pci_dev_hp_attrs,
1637 .is_visible = pci_dev_hp_attrs_are_visible,
1638};
1639

--- 32 unchanged lines hidden ---