shpchp_pci.c (577f99c1d08cf9cbdafd4e858dd13ff04d855090) shpchp_pci.c (66bef8c059015ba2b36bb5759080336feb01e680)
1/*
2 * Standard Hot Plug Controller Driver
3 *
4 * Copyright (C) 1995,2001 Compaq Computer Corporation
5 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
6 * Copyright (C) 2001 IBM Corp.
7 * Copyright (C) 2003-2004 Intel Corporation
8 *

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

46 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI)))
47 return;
48
49 /* use default values if we can't get them from firmware */
50 if (get_hp_params_from_firmware(dev, &hpp) ||
51 !hpp.t0 || (hpp.t0->revision > 1)) {
52 printk(KERN_WARNING
53 "%s: Could not get hotplug parameters. Use defaults\n",
1/*
2 * Standard Hot Plug Controller Driver
3 *
4 * Copyright (C) 1995,2001 Compaq Computer Corporation
5 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
6 * Copyright (C) 2001 IBM Corp.
7 * Copyright (C) 2003-2004 Intel Corporation
8 *

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

46 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI)))
47 return;
48
49 /* use default values if we can't get them from firmware */
50 if (get_hp_params_from_firmware(dev, &hpp) ||
51 !hpp.t0 || (hpp.t0->revision > 1)) {
52 printk(KERN_WARNING
53 "%s: Could not get hotplug parameters. Use defaults\n",
54 __FUNCTION__);
54 __func__);
55 hpp.t0 = &hpp.type0_data;
56 hpp.t0->revision = 0;
57 hpp.t0->cache_line_size = 8;
58 hpp.t0->latency_timer = 0x40;
59 hpp.t0->enable_serr = 0;
60 hpp.t0->enable_perr = 0;
61 }
62

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

164
165int shpchp_unconfigure_device(struct slot *p_slot)
166{
167 int rc = 0;
168 int j;
169 u8 bctl = 0;
170 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate;
171
55 hpp.t0 = &hpp.type0_data;
56 hpp.t0->revision = 0;
57 hpp.t0->cache_line_size = 8;
58 hpp.t0->latency_timer = 0x40;
59 hpp.t0->enable_serr = 0;
60 hpp.t0->enable_perr = 0;
61 }
62

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

164
165int shpchp_unconfigure_device(struct slot *p_slot)
166{
167 int rc = 0;
168 int j;
169 u8 bctl = 0;
170 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate;
171
172 dbg("%s: bus/dev = %x/%x\n", __FUNCTION__, p_slot->bus, p_slot->device);
172 dbg("%s: bus/dev = %x/%x\n", __func__, p_slot->bus, p_slot->device);
173
174 for (j=0; j<8 ; j++) {
175 struct pci_dev* temp = pci_get_slot(parent,
176 (p_slot->device << 3) | j);
177 if (!temp)
178 continue;
179 if ((temp->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
180 err("Cannot remove display device %s\n",

--- 19 unchanged lines hidden ---
173
174 for (j=0; j<8 ; j++) {
175 struct pci_dev* temp = pci_get_slot(parent,
176 (p_slot->device << 3) | j);
177 if (!temp)
178 continue;
179 if ((temp->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
180 err("Cannot remove display device %s\n",

--- 19 unchanged lines hidden ---