blob: a1dc34c45ff2dc4f7001d21854a2bdd2a5ba31a1 [file] [log] [blame]
Corey Osgoode99bd102007-06-14 06:10:57 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Corey Osgoode99bd102007-06-14 06:10:57 +00003 *
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 Osgoode99bd102007-06-14 06:10:57 +000015 */
16
17#include <console/console.h>
18#include <device/device.h>
19#include <device/pci.h>
20#include <device/pci_ids.h>
21
Stefan Reinauer069385f2009-05-26 12:58:00 +000022static struct device_operations nic_ops = {
Uwe Hermanndfb3c132007-06-19 22:47:11 +000023 .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 Osgoode99bd102007-06-14 06:10:57 +000028};
29
Uwe Hermann0ea281f2010-10-11 21:38:49 +000030/* 82801BA/BAM (ICH2/ICH2-M) */
Uwe Hermanncce50402007-11-07 22:09:02 +000031static const struct pci_driver i82801ba_nic __pci_driver = {
Uwe Hermanndfb3c132007-06-19 22:47:11 +000032 .ops = &nic_ops,
33 .vendor = PCI_VENDOR_ID_INTEL,
Uwe Hermanncce50402007-11-07 22:09:02 +000034 .device = PCI_DEVICE_ID_INTEL_82801BA_LAN,
Corey Osgoode99bd102007-06-14 06:10:57 +000035};