x86: Unify arch/io.h and arch/romcc_io.h
Here's the great news: From now on you don't have to worry about hitting the right io.h include anymore. Just forget about romcc_io.h and use io.h instead. This cleanup has a number of advantages, like you don't have to guard device/ includes for SMM and pre RAM anymore. This allows to get rid of a number of ifdefs and will generally make the code more readable and understandable. Potentially in the future some of the code in the io.h __PRE_RAM__ path should move to device.h or other device/ includes instead, but that's another incremental change. Change-Id: I356f06110e2e355e9a5b4b08c132591f36fec7d9 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2872 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
55ed310655
commit
24d1d4b472
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for the Fintek F71805F/FG Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f71805f.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for the Fintek F71859 Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f71859.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for the Fintek F71863FG Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f71863fg.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for the Fintek F71872F/FG Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f71872.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f71889.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for the Fintek F81865F/FG Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "f81865f.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "i3100.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8661f.h"
|
||||
|
||||
/* Perform MB PnP setup to put the SIO chip at 0x3f0. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8671f.h"
|
||||
|
||||
/* The base address is 0x3f0, 0x3bd, or 0x370, depending on config bytes. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8673f.h"
|
||||
|
||||
/* The base address is 0x3f0, 0x3bd, or 0x370, depending on config bytes. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8705f.h"
|
||||
|
||||
/* The base address is 0x2e or 0x4e, depending on config bytes. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8712f.h"
|
||||
|
||||
/* The base address is 0x2e or 0x4e, depending on config bytes. */
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8716f.h"
|
||||
|
||||
void it8716f_disable_dev(device_t dev)
|
||||
|
@@ -21,7 +21,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8716f.h"
|
||||
|
||||
/* The base address is 0x2e or 0x4e, depending on config bytes. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8718f.h"
|
||||
|
||||
/* The base address is 0x2e or 0x4e, depending on config bytes. */
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "it8721f.h"
|
||||
|
||||
/* The base address is 0x2e or 0x4e, depending on config bytes. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include <device/pnp_def.h>
|
||||
#include "it8772f.h"
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc8374.h"
|
||||
|
||||
static void pc8374_enable(u16 iobase, u8 *init)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87309.h"
|
||||
|
||||
static void pc87309_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87351.h"
|
||||
|
||||
static void pc87351_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87360.h"
|
||||
|
||||
static void pc87360_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87366.h"
|
||||
|
||||
static void pc87366_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87392.h"
|
||||
|
||||
static void pc87392_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87417.h"
|
||||
|
||||
static void pc87417_disable_dev(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87417.h"
|
||||
|
||||
void pc87417_enable_serial(device_t dev, u16 iobase)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc87427.h"
|
||||
|
||||
static void pc87427_disable_dev(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pc97317.h"
|
||||
|
||||
#define PM_DEV PNP_DEV(0x2e, PC97317_PM)
|
||||
|
@@ -19,7 +19,6 @@
|
||||
*/
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <device/pnp_def.h>
|
||||
#include "wpcm450.h"
|
||||
|
||||
|
@@ -21,7 +21,7 @@
|
||||
|
||||
/* PILOT Super I/O is only based on LPC observation done on factory system. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "pilot.h"
|
||||
|
||||
/* Pilot uses 0x5A/0xA5 pattern to actiavte deactivate config access. */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "fdc37m60x.h"
|
||||
|
||||
/* The base address is 0x3f0 or 0x370, depending on the SYSOPT pin. */
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
/* Pre-RAM driver for the SMSC KBC1100 Super I/O chip */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "kbc1100.h"
|
||||
|
||||
static inline void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for SMSC LPC47B272 Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "lpc47b272.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "lpc47b397.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "lpc47m10x.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
/* Pre-RAM driver for the SMSC LPC47M15X Super I/O chip */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "lpc47m15x.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for SMSC LPC47N217 Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include <assert.h>
|
||||
#include "lpc47n217.h"
|
||||
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
/* Pre-RAM driver for SMSC LPC47N227 Super I/O chip. */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "lpc47n227.h"
|
||||
|
||||
static void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "sch4037.h"
|
||||
|
||||
static inline void pnp_enter_conf_state(device_t dev)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
/* Pre-RAM driver for the SMSC KBC1100 Super I/O chip */
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "sio1036.h"
|
||||
|
||||
#ifndef CONFIG_TTYS0_BASE
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include <device/pnp_def.h>
|
||||
|
||||
/* All known/supported SMSC Super I/Os have the same logical device IDs
|
||||
|
@@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include <arch/io.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <device/pnp_def.h>
|
||||
#include <stdint.h>
|
||||
#include "w83627dhg.h"
|
||||
|
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627ehg.h"
|
||||
|
||||
void w83627ehg_disable_dev(device_t dev)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627ehg.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627hf.h"
|
||||
|
||||
void w83627hf_disable_dev(device_t dev)
|
||||
|
@@ -21,7 +21,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627hf.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627thg.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -18,8 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <stdint.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83627uhg.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -18,8 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83697hf.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83977f.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <arch/romcc_io.h>
|
||||
#include <arch/io.h>
|
||||
#include "w83977tf.h"
|
||||
|
||||
static void pnp_enter_ext_func_mode(device_t dev)
|
||||
|
Reference in New Issue
Block a user