aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx800/pci_rawops.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-24 02:02:42 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-31 03:45:19 +0000
commitf99fa1058dc89fb4fc0c23f0217a0257fffdf9f9 (patch)
tree51b22089587d0a680507b7c976cfb382f36ec6e7 /src/northbridge/via/vx800/pci_rawops.h
parente99f0390b9b8e04b197b165e6e63826ce9631d35 (diff)
Remove VIA VX800 northbridge support
Change-Id: Id6026e9d7ff064d54b0dd93e80dabdcc4efd2b8e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/26679 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/via/vx800/pci_rawops.h')
-rw-r--r--src/northbridge/via/vx800/pci_rawops.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/northbridge/via/vx800/pci_rawops.h b/src/northbridge/via/vx800/pci_rawops.h
deleted file mode 100644
index 14a0f1fda4..0000000000
--- a/src/northbridge/via/vx800/pci_rawops.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2009 One Laptop per Child, Association, Inc.
- * Copyright (C) 2010 coresystems GmbH
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#ifndef NORTHBRIDGE_VIA_VX800_PCI_RAWOPS_H
-#define NORTHBRIDGE_VIA_VX800_PCI_RAWOPS_H
-
-#include <stdint.h>
-#include <arch/io.h>
-
-struct VIA_PCI_REG_INIT_TABLE {
- u8 ChipRevisionStart;
- u8 ChipRevisionEnd;
- u8 Bus;
- u8 Device;
- u8 Function;
- u32 Register;
- u8 Mask;
- u8 Value;
-};
-
-static void pci_modify_config8(pci_devfn_t dev, unsigned where, u8 orval,
- u8 mask)
-{
- u8 data = pci_read_config8(dev, where);
- data &= (~mask);
- data |= orval;
- pci_write_config8(dev, where, data);
-}
-
-static void via_pci_inittable(u8 chipversion,
- const struct VIA_PCI_REG_INIT_TABLE *initdata)
-{
- u8 i = 0;
- pci_devfn_t devbxdxfx;
- for (i = 0;; i++) {
- if ((initdata[i].Mask == 0) && (initdata[i].Value == 0)
- && (initdata[i].Bus == 0)
- && (initdata[i].ChipRevisionEnd == 0xff)
- && (initdata[i].ChipRevisionStart == 0)
- && (initdata[i].Device == 0)
- && (initdata[i].Function == 0)
- && (initdata[i].Register == 0))
- break;
- if ((chipversion >= initdata[i].ChipRevisionStart)
- && (chipversion <= initdata[i].ChipRevisionEnd)) {
- devbxdxfx =
- PCI_DEV(initdata[i].Bus, initdata[i].Device,
- initdata[i].Function);
- pci_modify_config8(devbxdxfx,
- initdata[i].Register,
- initdata[i].Value,
- initdata[i].Mask);
- }
- }
-}
-#endif