diff options
author | Luc Verhaegen <libv@skynet.be> | 2007-04-04 22:45:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2007-04-04 22:45:58 +0000 |
commit | 8e3a600123110d47076926cb8ee7c68195658f20 (patch) | |
tree | d2865da3322423bfafd95ef73853e29bb1833377 /flash.h | |
parent | af2b52dc5f48f245d9b6097a03d4b1f52938a891 (diff) | |
download | ast2050-flashrom-8e3a600123110d47076926cb8ee7c68195658f20.zip ast2050-flashrom-8e3a600123110d47076926cb8ee7c68195658f20.tar.gz |
Split flash_enable.c into chipset_enable.c and board_enable.c
This splits up the ROM Write enable code into chipset specific and
board specific parts. This of course means that a lot of code is
plainly moved about.
* Allows for linuxbios name matching and pci-subsystem id matching.
The latter uses a double set to properly distuinguish boards despite
of some known vendors being lax about it.
* Fixes GPIO15 being raised on every VT8235 southbridge, regardless of what
that line actually controls; rom on EPIA-M, backlight on mitac 8999 laptop.
* Adds flashrom support for Asus A7V400-MX (KM400 + VT8235)
* Island aruma was renamed agami aruma, the board specific code now got
adjusted. A set of pci-ids was retrieved from source code.
Corresponding to flashrom svn r99 and coreboot v2 svn r2581.
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -3,7 +3,7 @@ * * Copyright 2000 Silicon Integrated System Corporation * Copyright 2000 Ronald G. Minnich <rminnich@gmail.com> - * Copyright 2005 coresystems GmbH <stepan@coresystems.de> + * Copyright 2005-2007 coresystems GmbH <stepan@coresystems.de> * * 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 @@ -128,7 +128,15 @@ extern struct flashchip flashchips[]; extern void myusec_delay(int time); extern void myusec_calibrate_delay(); -extern int enable_flash_write(void); + +/* pci handling for board/chipset_enable */ +extern struct pci_access *pacc; /* For board and chipset_enable */ +extern struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device); +extern struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device, + uint16_t card_vendor, uint16_t card_device); + +extern int board_flash_enable(char *vendor, char *part); /* board_enable.c */ +extern int chipset_flash_enable(void); /* chipset_enable.c */ /* physical memory mapping device */ |