blob: 32371cd19e34b4d6dfe7b17ca8039cff745e1f4f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * PCIEHPRM NONACPI: PHP Resource Manager for Non-ACPI/Legacy platform
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 *
9 * All rights reserved.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or (at
14 * your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
19 * NON INFRINGEMENT. See the GNU General Public License for more
20 * details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 *
Kristen Accardi8cf4c192005-08-16 15:16:10 -070026 * Send feedback to <greg@kroah.com>, <kristen.c.accardi@intel.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 *
28 */
29
30#include <linux/config.h>
31#include <linux/module.h>
32#include <linux/kernel.h>
33#include <linux/types.h>
Tim Schmielau8c65b4a2005-11-07 00:59:43 -080034#include <linux/sched.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <linux/pci.h>
36#include <linux/init.h>
Tim Schmielau4e57b682005-10-30 15:03:48 -080037#include <linux/slab.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#include <asm/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#include "pciehp.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070040#include "pciehprm_nonacpi.h"
41
42
Linus Torvalds1da177e2005-04-16 15:20:36 -070043int pciehprm_get_physical_slot_number(struct controller *ctrl, u32 *sun, u8 busnum, u8 devnum)
44{
45
46 *sun = (u8) (ctrl->first_slot);
47 return 0;
48}
49
rajesh.shah@intel.coma8a2be92005-10-31 16:20:07 -080050void get_hp_params_from_firmware(struct pci_dev *dev,
51 struct hotplug_params *hpp)
Linus Torvalds1da177e2005-04-16 15:20:36 -070052{
rajesh.shah@intel.coma8a2be92005-10-31 16:20:07 -080053 return;
Linus Torvalds1da177e2005-04-16 15:20:36 -070054}
55
rajesh.shah@intel.coma8a2be92005-10-31 16:20:07 -080056int get_hp_hw_control_from_firmware(struct pci_dev *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -070057{
58 return 0;
59}