Corey Osgood | e99bd10 | 2007-06-14 06:10:57 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Corey Osgood | e99bd10 | 2007-06-14 06:10:57 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2007 Corey Osgood <corey.osgood@gmail.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Corey Osgood | e99bd10 | 2007-06-14 06:10:57 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <console/console.h> |
| 18 | #include <device/device.h> |
| 19 | #include <device/pci.h> |
| 20 | #include <device/pci_ids.h> |
| 21 | |
Stefan Reinauer | 069385f | 2009-05-26 12:58:00 +0000 | [diff] [blame] | 22 | static struct device_operations nic_ops = { |
Uwe Hermann | dfb3c13 | 2007-06-19 22:47:11 +0000 | [diff] [blame] | 23 | .read_resources = pci_dev_read_resources, |
| 24 | .set_resources = pci_dev_set_resources, |
| 25 | .enable_resources = pci_dev_enable_resources, |
| 26 | .init = 0, |
| 27 | .scan_bus = 0, |
Corey Osgood | e99bd10 | 2007-06-14 06:10:57 +0000 | [diff] [blame] | 28 | }; |
| 29 | |
Uwe Hermann | 0ea281f | 2010-10-11 21:38:49 +0000 | [diff] [blame] | 30 | /* 82801BA/BAM (ICH2/ICH2-M) */ |
Uwe Hermann | cce5040 | 2007-11-07 22:09:02 +0000 | [diff] [blame] | 31 | static const struct pci_driver i82801ba_nic __pci_driver = { |
Uwe Hermann | dfb3c13 | 2007-06-19 22:47:11 +0000 | [diff] [blame] | 32 | .ops = &nic_ops, |
| 33 | .vendor = PCI_VENDOR_ID_INTEL, |
Uwe Hermann | cce5040 | 2007-11-07 22:09:02 +0000 | [diff] [blame] | 34 | .device = PCI_DEVICE_ID_INTEL_82801BA_LAN, |
Corey Osgood | e99bd10 | 2007-06-14 06:10:57 +0000 | [diff] [blame] | 35 | }; |