diff options
179 files changed, 8 insertions, 326 deletions
diff --git a/src/cpu/amd/agesa/family10/chip.h b/src/cpu/amd/agesa/family10/chip.h index d5a749b3c6d0..4f9fa770bf93 100644 --- a/src/cpu/amd/agesa/family10/chip.h +++ b/src/cpu/amd/agesa/family10/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_agesa_family10_ops; - struct cpu_amd_agesa_family10_config { }; diff --git a/src/cpu/amd/agesa/family12/chip.h b/src/cpu/amd/agesa/family12/chip.h index f63a87f5d9e3..0eaa0e2789f3 100644 --- a/src/cpu/amd/agesa/family12/chip.h +++ b/src/cpu/amd/agesa/family12/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_agesa_family12_ops; - struct cpu_amd_agesa_family12_config { }; diff --git a/src/cpu/amd/agesa/family14/chip.h b/src/cpu/amd/agesa/family14/chip.h index d67184e30614..59c7cfeb67f5 100644 --- a/src/cpu/amd/agesa/family14/chip.h +++ b/src/cpu/amd/agesa/family14/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_agesa_family14_ops; - struct cpu_amd_agesa_family14_config { }; diff --git a/src/cpu/amd/agesa/family15/chip.h b/src/cpu/amd/agesa/family15/chip.h index 0171e7fcd0c6..e6daaefd58d6 100644 --- a/src/cpu/amd/agesa/family15/chip.h +++ b/src/cpu/amd/agesa/family15/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_agesa_family15_ops; - struct cpu_amd_agesa_family15_config { }; diff --git a/src/cpu/amd/agesa/family15tn/chip.h b/src/cpu/amd/agesa/family15tn/chip.h index cf8294f16127..5ad93c5e0cd5 100644 --- a/src/cpu/amd/agesa/family15tn/chip.h +++ b/src/cpu/amd/agesa/family15tn/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_agesa_family15tn_ops; - struct cpu_amd_agesa_family15tn_config { }; diff --git a/src/cpu/amd/sc520/chip.h b/src/cpu/amd/sc520/chip.h index b16db54a5ab2..64f3a85afc72 100644 --- a/src/cpu/amd/sc520/chip.h +++ b/src/cpu/amd/sc520/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_sc520_ops; - struct cpu_amd_sc520_config { }; diff --git a/src/cpu/amd/socket_754/chip.h b/src/cpu/amd/socket_754/chip.h index d9f3600b2cb2..197145faf6af 100644 --- a/src/cpu/amd/socket_754/chip.h +++ b/src/cpu/amd/socket_754/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_754_ops; - struct cpu_amd_socket_754_config { }; diff --git a/src/cpu/amd/socket_939/chip.h b/src/cpu/amd/socket_939/chip.h index 2a635b7477cd..ca934512b2c4 100644 --- a/src/cpu/amd/socket_939/chip.h +++ b/src/cpu/amd/socket_939/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_939_ops; - struct cpu_amd_socket_939_config { }; diff --git a/src/cpu/amd/socket_940/chip.h b/src/cpu/amd/socket_940/chip.h index 7154dd15931b..8b966141b563 100644 --- a/src/cpu/amd/socket_940/chip.h +++ b/src/cpu/amd/socket_940/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_940_ops; - struct cpu_amd_socket_940_config { }; diff --git a/src/cpu/amd/socket_AM2/chip.h b/src/cpu/amd/socket_AM2/chip.h index 6b3290c90ed2..5d9e87532055 100644 --- a/src/cpu/amd/socket_AM2/chip.h +++ b/src/cpu/amd/socket_AM2/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_AM2_ops; - struct cpu_amd_socket_AM2_config { }; diff --git a/src/cpu/amd/socket_AM2r2/chip.h b/src/cpu/amd/socket_AM2r2/chip.h index fe49ad285151..1c93a99bd5f9 100644 --- a/src/cpu/amd/socket_AM2r2/chip.h +++ b/src/cpu/amd/socket_AM2r2/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_socket_AM2r2_ops; - struct cpu_amd_socket_AM2r2_config { }; diff --git a/src/cpu/amd/socket_AM3/chip.h b/src/cpu/amd/socket_AM3/chip.h index 16e0935225d3..70f6b1fcbba3 100644 --- a/src/cpu/amd/socket_AM3/chip.h +++ b/src/cpu/amd/socket_AM3/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_socket_AM3_ops; - struct cpu_amd_socket_AM3_config { }; diff --git a/src/cpu/amd/socket_ASB2/chip.h b/src/cpu/amd/socket_ASB2/chip.h index 3a536966304a..5939c2b71d2e 100644 --- a/src/cpu/amd/socket_ASB2/chip.h +++ b/src/cpu/amd/socket_ASB2/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_socket_ASB2_ops; - struct cpu_amd_socket_ASB2_config { }; diff --git a/src/cpu/amd/socket_C32/chip.h b/src/cpu/amd/socket_C32/chip.h index 0e06de56e705..e9d57c7a7a20 100644 --- a/src/cpu/amd/socket_C32/chip.h +++ b/src/cpu/amd/socket_C32/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_socket_C32_ops; - struct cpu_amd_socket_C32_config { }; diff --git a/src/cpu/amd/socket_F/chip.h b/src/cpu/amd/socket_F/chip.h index ce2fde0bff8d..cb582d3f61a4 100644 --- a/src/cpu/amd/socket_F/chip.h +++ b/src/cpu/amd/socket_F/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_F_ops; - struct cpu_amd_socket_F_config { }; diff --git a/src/cpu/amd/socket_F_1207/chip.h b/src/cpu/amd/socket_F_1207/chip.h index 95b13e237dfa..3f7d8242e3e4 100644 --- a/src/cpu/amd/socket_F_1207/chip.h +++ b/src/cpu/amd/socket_F_1207/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_amd_socket_F_1207_ops; - struct cpu_amd_socket_F_1207_config { }; diff --git a/src/cpu/amd/socket_S1G1/chip.h b/src/cpu/amd/socket_S1G1/chip.h index 826c7067a910..3109da265e8e 100644 --- a/src/cpu/amd/socket_S1G1/chip.h +++ b/src/cpu/amd/socket_S1G1/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_amd_socket_S1G1_ops; - struct cpu_amd_socket_S1G1_config { }; diff --git a/src/cpu/intel/ep80579/chip.h b/src/cpu/intel/ep80579/chip.h index 6383c86baedc..08e752916d3b 100644 --- a/src/cpu/intel/ep80579/chip.h +++ b/src/cpu/intel/ep80579/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_intel_ep80579_ops; - struct cpu_intel_ep80579_config { }; diff --git a/src/cpu/intel/model_206ax/chip.h b/src/cpu/intel/model_206ax/chip.h index 96b4c5d9a927..85cbe1b0f086 100644 --- a/src/cpu/intel/model_206ax/chip.h +++ b/src/cpu/intel/model_206ax/chip.h @@ -17,8 +17,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_intel_model_206ax_ops; - /* Magic value used to locate this chip in the device tree */ #define SPEEDSTEP_APIC_MAGIC 0xACAC diff --git a/src/cpu/intel/slot_1/chip.h b/src/cpu/intel/slot_1/chip.h index 6721d6ee8bff..8650f90a7ce3 100644 --- a/src/cpu/intel/slot_1/chip.h +++ b/src/cpu/intel/slot_1/chip.h @@ -18,7 +18,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_intel_slot_1_ops; - struct cpu_intel_slot_1_config { }; diff --git a/src/cpu/intel/slot_2/chip.h b/src/cpu/intel/slot_2/chip.h index 0f504dbc5f81..d7bb2b17644a 100644 --- a/src/cpu/intel/slot_2/chip.h +++ b/src/cpu/intel/slot_2/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_slot_2_ops; - struct cpu_intel_slot_2_config { }; diff --git a/src/cpu/intel/socket_441/chip.h b/src/cpu/intel/socket_441/chip.h index 264dafa9bfe8..70c4ac8c647a 100644 --- a/src/cpu/intel/socket_441/chip.h +++ b/src/cpu/intel/socket_441/chip.h @@ -17,7 +17,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_intel_socket_441_ops; - struct cpu_intel_socket_441_config { }; diff --git a/src/cpu/intel/socket_BGA956/chip.h b/src/cpu/intel/socket_BGA956/chip.h index 68ec1d2dc871..399200dc5101 100644 --- a/src/cpu/intel/socket_BGA956/chip.h +++ b/src/cpu/intel/socket_BGA956/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_BGA956_ops; - struct cpu_intel_socket_BGA956_config { }; diff --git a/src/cpu/intel/socket_FC_PGA370/chip.h b/src/cpu/intel/socket_FC_PGA370/chip.h index c1195c2fd57f..7148d4761fda 100644 --- a/src/cpu/intel/socket_FC_PGA370/chip.h +++ b/src/cpu/intel/socket_FC_PGA370/chip.h @@ -18,7 +18,5 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern struct chip_operations cpu_intel_socket_FC_PGA370_ops; - struct cpu_intel_socket_FC_PGA370_config { }; diff --git a/src/cpu/intel/socket_LGA771/chip.h b/src/cpu/intel/socket_LGA771/chip.h index d3f312ea8505..fc51d777cfe9 100644 --- a/src/cpu/intel/socket_LGA771/chip.h +++ b/src/cpu/intel/socket_LGA771/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_LGA771_ops; - struct cpu_intel_socket_LGA771_config { }; diff --git a/src/cpu/intel/socket_PGA370/chip.h b/src/cpu/intel/socket_PGA370/chip.h index 469b662dfb0e..c2c70ec4adec 100644 --- a/src/cpu/intel/socket_PGA370/chip.h +++ b/src/cpu/intel/socket_PGA370/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_PGA370_ops; - struct cpu_intel_socket_PGA370_config { }; diff --git a/src/cpu/intel/socket_mFCBGA479/chip.h b/src/cpu/intel/socket_mFCBGA479/chip.h index 9dee4a9e46ca..57e432c615a6 100644 --- a/src/cpu/intel/socket_mFCBGA479/chip.h +++ b/src/cpu/intel/socket_mFCBGA479/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mFCBGA479_ops; - struct cpu_intel_socket_mFCBGA479_config { }; diff --git a/src/cpu/intel/socket_mFCPGA478/chip.h b/src/cpu/intel/socket_mFCPGA478/chip.h index b747698d6e22..50268f5705d7 100644 --- a/src/cpu/intel/socket_mFCPGA478/chip.h +++ b/src/cpu/intel/socket_mFCPGA478/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mFCPGA478_ops; - struct cpu_intel_socket_mFCPGA478_config { }; diff --git a/src/cpu/intel/socket_mPGA478/chip.h b/src/cpu/intel/socket_mPGA478/chip.h index 8cc29b172622..3dafc9ae3ebf 100644 --- a/src/cpu/intel/socket_mPGA478/chip.h +++ b/src/cpu/intel/socket_mPGA478/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mPGA478_ops; - struct cpu_intel_socket_mPGA478_config { }; diff --git a/src/cpu/intel/socket_mPGA479M/chip.h b/src/cpu/intel/socket_mPGA479M/chip.h index 57e9bd5bcbdb..c0c5cd4d6d08 100644 --- a/src/cpu/intel/socket_mPGA479M/chip.h +++ b/src/cpu/intel/socket_mPGA479M/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mPGA479M_ops; - struct cpu_intel_socket_mPGA479M_config { }; diff --git a/src/cpu/intel/socket_mPGA603/chip.h b/src/cpu/intel/socket_mPGA603/chip.h index 0170297e6804..b39982ab1fa2 100644 --- a/src/cpu/intel/socket_mPGA603/chip.h +++ b/src/cpu/intel/socket_mPGA603/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mPGA603_ops; - struct cpu_intel_socket_mPGA603_config { }; diff --git a/src/cpu/intel/socket_mPGA604/chip.h b/src/cpu/intel/socket_mPGA604/chip.h index 636d797bb33e..3a09b82b8bca 100644 --- a/src/cpu/intel/socket_mPGA604/chip.h +++ b/src/cpu/intel/socket_mPGA604/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_mPGA604_ops; - struct cpu_intel_socket_mPGA604_config { }; diff --git a/src/cpu/intel/socket_rPGA989/chip.h b/src/cpu/intel/socket_rPGA989/chip.h index f843e747381b..ee3b396a1ec8 100644 --- a/src/cpu/intel/socket_rPGA989/chip.h +++ b/src/cpu/intel/socket_rPGA989/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations cpu_intel_socket_rPGA989_ops; - struct cpu_intel_socket_rPGA989_config { }; diff --git a/src/drivers/generic/debug/chip.h b/src/drivers/generic/debug/chip.h index 78ce2159a18b..661fd54d7c3d 100644 --- a/src/drivers/generic/debug/chip.h +++ b/src/drivers/generic/debug/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_generic_debug_ops; - struct drivers_generic_debug_config { }; diff --git a/src/drivers/generic/ioapic/chip.h b/src/drivers/generic/ioapic/chip.h index f6b298f07761..ad6ff0ba1f9b 100644 --- a/src/drivers/generic/ioapic/chip.h +++ b/src/drivers/generic/ioapic/chip.h @@ -20,7 +20,6 @@ #ifndef DRIVERS_GENERIC_IOAPIC_CHIP_H #define DRIVERS_GENERIC_IOAPIC_CHIP_H -extern struct chip_operations drivers_generic_ioapic_ops; struct drivers_generic_ioapic_config { u32 version; u8 apicid; diff --git a/src/drivers/i2c/adm1026/chip.h b/src/drivers/i2c/adm1026/chip.h index 4ccca764fb10..f8324ad7974c 100644 --- a/src/drivers/i2c/adm1026/chip.h +++ b/src/drivers/i2c/adm1026/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_adm1026_ops; - struct drivers_i2c_adm1026_config { }; diff --git a/src/drivers/i2c/adm1027/chip.h b/src/drivers/i2c/adm1027/chip.h index 94c4e888e932..8836817c364d 100644 --- a/src/drivers/i2c/adm1027/chip.h +++ b/src/drivers/i2c/adm1027/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_adm1027_ops; - struct drivers_i2c_adm1027_config { }; diff --git a/src/drivers/i2c/adt7463/chip.h b/src/drivers/i2c/adt7463/chip.h index fdb22b95c89c..351d548029ea 100644 --- a/src/drivers/i2c/adt7463/chip.h +++ b/src/drivers/i2c/adt7463/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_adt7463_ops; - struct drivers_i2c_adt7463_config { }; diff --git a/src/drivers/i2c/i2cmux/chip.h b/src/drivers/i2c/i2cmux/chip.h index ffaf87954a06..0cfd8377554b 100644 --- a/src/drivers/i2c/i2cmux/chip.h +++ b/src/drivers/i2c/i2cmux/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_i2cmux_ops; - struct drivers_i2c_i2cmux_config { }; diff --git a/src/drivers/i2c/i2cmux2/chip.h b/src/drivers/i2c/i2cmux2/chip.h index f6fd35f79601..dafa1d71ad61 100644 --- a/src/drivers/i2c/i2cmux2/chip.h +++ b/src/drivers/i2c/i2cmux2/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_i2cmux2_ops; - struct drivers_i2c_i2cmux2_config { }; diff --git a/src/drivers/i2c/lm63/chip.h b/src/drivers/i2c/lm63/chip.h index 5c558464f3f2..1c5bc7a33af2 100644 --- a/src/drivers/i2c/lm63/chip.h +++ b/src/drivers/i2c/lm63/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_lm63_ops; - struct drivers_i2c_lm63_config { }; diff --git a/src/drivers/i2c/w83793/chip.h b/src/drivers/i2c/w83793/chip.h index dc3cd7500f1b..65a50bb32fcd 100644 --- a/src/drivers/i2c/w83793/chip.h +++ b/src/drivers/i2c/w83793/chip.h @@ -1,5 +1,3 @@ -extern struct chip_operations drivers_i2c_w83793_ops; - struct drivers_i2c_w83793_config { u8 mfc; u8 fanin; diff --git a/src/drivers/i2c/w83795/chip.h b/src/drivers/i2c/w83795/chip.h index 290063682fbf..b5162c134474 100644 --- a/src/drivers/i2c/w83795/chip.h +++ b/src/drivers/i2c/w83795/chip.h @@ -1,4 +1,2 @@ -extern struct chip_operations drivers_i2c_w83795_ops; - struct drivers_i2c_w83795_config { }; diff --git a/src/drivers/ics/954309/chip.h b/src/drivers/ics/954309/chip.h index 8dfc3e06dd61..66cc2c636f3e 100644 --- a/src/drivers/ics/954309/chip.h +++ b/src/drivers/ics/954309/chip.h @@ -19,8 +19,6 @@ * MA 02110-1301 USA */ -extern struct chip_operations drivers_ics_954309_ops; - struct drivers_ics_954309_config { u8 reg0; u8 reg1; diff --git a/src/ec/lenovo/h8/chip.h b/src/ec/lenovo/h8/chip.h index 3a75f3bb84f5..1b14aa9b2935 100644 --- a/src/ec/lenovo/h8/chip.h +++ b/src/ec/lenovo/h8/chip.h @@ -20,7 +20,6 @@ #ifndef EC_LENOVO_H8EC_CHIP_H #define EC_LENOVO_H8EC_CHIP_H -extern struct chip_operations ec_lenovo_h8_ops; struct ec_lenovo_h8_config { u8 config0; diff --git a/src/ec/lenovo/pmh7/chip.h b/src/ec/lenovo/pmh7/chip.h index 725a5d5c74c0..c7e1de6808b1 100644 --- a/src/ec/lenovo/pmh7/chip.h +++ b/src/ec/lenovo/pmh7/chip.h @@ -20,8 +20,6 @@ #ifndef EC_LENOVO_PMH7_CHIP_H #define EC_LENOVO_PMH7_CHIP_H -extern struct chip_operations ec_lenovo_pmh7_ops; - struct ec_lenovo_pmh7_config { int backlight_enable:1; int dock_event_enable:1; diff --git a/src/ec/smsc/mec1308/chip.h b/src/ec/smsc/mec1308/chip.h index 3a8eae8f8a13..176818518458 100644 --- a/src/ec/smsc/mec1308/chip.h +++ b/src/ec/smsc/mec1308/chip.h @@ -27,7 +27,4 @@ struct ec_smsc_mec1308_config u16 mailbox_port; }; -struct chip_operations; -extern struct chip_operations ec_smsc_mec1308_ops; - #endif /* _EC_SMSC_MEC1308_CHIP_H */ diff --git a/src/mainboard/emulation/qemu-x86/chip.h b/src/mainboard/emulation/qemu-x86/chip.h index ff9301f41815..0aa8173a8b90 100644 --- a/src/mainboard/emulation/qemu-x86/chip.h +++ b/src/mainboard/emulation/qemu-x86/chip.h @@ -1,4 +1,2 @@ struct mainboard_emulation_qemu_x86_config {}; -extern struct chip_operations mainboard_emulation_qemu_x86_ops; - diff --git a/src/northbridge/amd/agesa/family10/chip.h b/src/northbridge/amd/agesa/family10/chip.h index c0ac56e5a901..f95d5b117030 100644 --- a/src/northbridge/amd/agesa/family10/chip.h +++ b/src/northbridge/amd/agesa/family10/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family10_config { }; -extern struct chip_operations northbridge_amd_agesa_family10_ops; diff --git a/src/northbridge/amd/agesa/family10/root_complex/chip.h b/src/northbridge/amd/agesa/family10/root_complex/chip.h index 15a2e1ae69be..80adb8eb7103 100644 --- a/src/northbridge/amd/agesa/family10/root_complex/chip.h +++ b/src/northbridge/amd/agesa/family10/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family10_root_complex_config { }; -extern struct chip_operations northbridge_amd_agesa_family10_root_complex_ops; diff --git a/src/northbridge/amd/agesa/family12/chip.h b/src/northbridge/amd/agesa/family12/chip.h index 462610d6ea8d..39efd523d64b 100644 --- a/src/northbridge/amd/agesa/family12/chip.h +++ b/src/northbridge/amd/agesa/family12/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family12_config { }; -extern struct chip_operations northbridge_amd_agesa_family12_ops; diff --git a/src/northbridge/amd/agesa/family12/root_complex/chip.h b/src/northbridge/amd/agesa/family12/root_complex/chip.h index 91599252fcc0..556f343ad548 100644 --- a/src/northbridge/amd/agesa/family12/root_complex/chip.h +++ b/src/northbridge/amd/agesa/family12/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family12_root_complex_config { }; -extern struct chip_operations northbridge_amd_agesa_family12_root_complex_ops; diff --git a/src/northbridge/amd/agesa/family14/chip.h b/src/northbridge/amd/agesa/family14/chip.h index 26a1aad6bbc1..46ea78a64a25 100644 --- a/src/northbridge/amd/agesa/family14/chip.h +++ b/src/northbridge/amd/agesa/family14/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family14_config { }; -extern struct chip_operations northbridge_amd_agesa_family14_ops; diff --git a/src/northbridge/amd/agesa/family14/root_complex/chip.h b/src/northbridge/amd/agesa/family14/root_complex/chip.h index 234f931aef7e..cf9517907324 100644 --- a/src/northbridge/amd/agesa/family14/root_complex/chip.h +++ b/src/northbridge/amd/agesa/family14/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family14_root_complex_config { }; -extern struct chip_operations northbridge_amd_agesa_family14_root_complex_ops; diff --git a/src/northbridge/amd/agesa/family15/chip.h b/src/northbridge/amd/agesa/family15/chip.h index cec1fc4ad1e9..b06318b98029 100644 --- a/src/northbridge/amd/agesa/family15/chip.h +++ b/src/northbridge/amd/agesa/family15/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family15_config { }; -extern struct chip_operations northbridge_amd_agesa_family15_ops; diff --git a/src/northbridge/amd/agesa/family15/root_complex/chip.h b/src/northbridge/amd/agesa/family15/root_complex/chip.h index 06b351070592..8f670f6b94d9 100644 --- a/src/northbridge/amd/agesa/family15/root_complex/chip.h +++ b/src/northbridge/amd/agesa/family15/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family15_root_complex_config { }; -extern struct chip_operations northbridge_amd_agesa_family15_root_complex_ops; diff --git a/src/northbridge/amd/agesa/family15tn/chip.h b/src/northbridge/amd/agesa/family15tn/chip.h index d8361719e10b..091de82f6d12 100644 --- a/src/northbridge/amd/agesa/family15tn/chip.h +++ b/src/northbridge/amd/agesa/family15tn/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family15tn_config { }; -extern struct chip_operations northbridge_amd_agesa_family15tn_ops; diff --git a/src/northbridge/amd/agesa/family15tn/root_complex/chip.h b/src/northbridge/amd/agesa/family15tn/root_complex/chip.h index 802bb95cf677..0306fdd08b11 100644 --- a/src/northbridge/amd/agesa/family15tn/root_complex/chip.h +++ b/src/northbridge/amd/agesa/family15tn/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_agesa_family15tn_root_complex_config { }; -extern struct chip_operations northbridge_amd_agesa_family15tn_root_complex_ops; diff --git a/src/northbridge/amd/amdfam10/chip.h b/src/northbridge/amd/amdfam10/chip.h index e05547578068..a8161cbb357f 100644 --- a/src/northbridge/amd/amdfam10/chip.h +++ b/src/northbridge/amd/amdfam10/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_amdfam10_config { }; -extern struct chip_operations northbridge_amd_amdfam10_ops; diff --git a/src/northbridge/amd/amdfam10/root_complex/chip.h b/src/northbridge/amd/amdfam10/root_complex/chip.h index ed42c0f36835..8c93020f7b85 100644 --- a/src/northbridge/amd/amdfam10/root_complex/chip.h +++ b/src/northbridge/amd/amdfam10/root_complex/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_amdfam10_root_complex_config { }; -extern struct chip_operations northbridge_amd_amdfam10_root_complex_ops; diff --git a/src/northbridge/amd/amdk8/chip.h b/src/northbridge/amd/amdk8/chip.h index 26d4e53ac6b2..a2331f41a27d 100644 --- a/src/northbridge/amd/amdk8/chip.h +++ b/src/northbridge/amd/amdk8/chip.h @@ -2,4 +2,3 @@ struct northbridge_amd_amdk8_config { }; -extern struct chip_operations northbridge_amd_amdk8_ops; diff --git a/src/northbridge/amd/amdk8/root_complex/chip.h b/src/northbridge/amd/amdk8/root_complex/chip.h index 0b49ca8ae988..a9b6b5b2cdf0 100644 --- a/src/northbridge/amd/amdk8/root_complex/chip.h +++ b/src/northbridge/amd/amdk8/root_complex/chip.h @@ -2,4 +2,3 @@ struct northbridge_amd_amdk8_root_complex_config { }; -extern struct chip_operations northbridge_amd_amdk8_root_complex_ops; diff --git a/src/northbridge/amd/cimx/rd890/chip.h b/src/northbridge/amd/cimx/rd890/chip.h index c2f985baccc1..ccc979f4ea28 100644 --- a/src/northbridge/amd/cimx/rd890/chip.h +++ b/src/northbridge/amd/cimx/rd890/chip.h @@ -17,12 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #ifndef _CIMX_RD890_CHIP_H_ #define _CIMX_RD890_CHIP_H_ -extern struct chip_operations northbridge_amd_cimx_rd890_ops; - /** * RD890 specific device configuration */ diff --git a/src/northbridge/amd/gx1/chip.h b/src/northbridge/amd/gx1/chip.h index 00374568bb28..0378b61f2e6c 100644 --- a/src/northbridge/amd/gx1/chip.h +++ b/src/northbridge/amd/gx1/chip.h @@ -2,4 +2,3 @@ struct northbridge_amd_gx1_config { }; -extern struct chip_operations northbridge_amd_gx1_ops; diff --git a/src/northbridge/amd/gx2/chip.h b/src/northbridge/amd/gx2/chip.h index 34021ba4d5d1..1e266c6dc520 100644 --- a/src/northbridge/amd/gx2/chip.h +++ b/src/northbridge/amd/gx2/chip.h @@ -22,4 +22,3 @@ struct northbridge_amd_gx2_config }; -extern struct chip_operations northbridge_amd_gx2_ops; diff --git a/src/northbridge/amd/lx/chip.h b/src/northbridge/amd/lx/chip.h index 94ef6c559910..12b50fbecfc1 100644 --- a/src/northbridge/amd/lx/chip.h +++ b/src/northbridge/amd/lx/chip.h @@ -21,4 +21,3 @@ struct northbridge_amd_lx_config { }; -extern struct chip_operations northbridge_amd_lx_ops; diff --git a/src/northbridge/intel/e7501/chip.h b/src/northbridge/intel/e7501/chip.h index 458510bc9ef4..112c03cdc4f0 100644 --- a/src/northbridge/intel/e7501/chip.h +++ b/src/northbridge/intel/e7501/chip.h @@ -2,4 +2,3 @@ struct northbridge_intel_e7501_config { }; -extern struct chip_operations northbridge_intel_e7501_ops; diff --git a/src/northbridge/intel/e7505/chip.h b/src/northbridge/intel/e7505/chip.h index 9677dca04401..8fd3cdcfb0e6 100644 --- a/src/northbridge/intel/e7505/chip.h +++ b/src/northbridge/intel/e7505/chip.h @@ -2,5 +2,3 @@ struct northbridge_intel_e7505_config { }; -extern struct chip_operations northbridge_intel_e7505_ops; - diff --git a/src/northbridge/intel/e7520/chip.h b/src/northbridge/intel/e7520/chip.h index b02b8b8ad780..99833bd4a42c 100644 --- a/src/northbridge/intel/e7520/chip.h +++ b/src/northbridge/intel/e7520/chip.h @@ -4,4 +4,3 @@ struct northbridge_intel_e7520_config unsigned int intrline; }; -extern struct chip_operations northbridge_intel_e7520_ops; diff --git a/src/northbridge/intel/e7525/chip.h b/src/northbridge/intel/e7525/chip.h index 7daadefefe59..c7783d40c195 100644 --- a/src/northbridge/intel/e7525/chip.h +++ b/src/northbridge/intel/e7525/chip.h @@ -4,4 +4,3 @@ struct northbridge_intel_e7525_config unsigned int intrline; }; -extern struct chip_operations northbridge_intel_e7525_ops; diff --git a/src/northbridge/intel/i3100/chip.h b/src/northbridge/intel/i3100/chip.h index 0ed31a48a89b..76e81dde6879 100644 --- a/src/northbridge/intel/i3100/chip.h +++ b/src/northbridge/intel/i3100/chip.h @@ -23,4 +23,3 @@ struct northbridge_intel_i3100_config u16 intrline; }; -extern struct chip_operations northbridge_intel_i3100_ops; diff --git a/src/northbridge/intel/i440bx/chip.h b/src/northbridge/intel/i440bx/chip.h index a43a20cac149..15ecb4d73527 100644 --- a/src/northbridge/intel/i440bx/chip.h +++ b/src/northbridge/intel/i440bx/chip.h @@ -22,4 +22,3 @@ struct northbridge_intel_i440bx_config { }; -extern struct chip_operations northbridge_intel_i440bx_ops; diff --git a/src/northbridge/intel/i440lx/chip.h b/src/northbridge/intel/i440lx/chip.h index 8d800f8cac3c..19a9b2698057 100644 --- a/src/northbridge/intel/i440lx/chip.h +++ b/src/northbridge/intel/i440lx/chip.h @@ -22,4 +22,3 @@ struct northbridge_intel_i440lx_config { }; -extern struct chip_operations northbridge_intel_i440lx_ops; diff --git a/src/northbridge/intel/i5000/chip.h b/src/northbridge/intel/i5000/chip.h index a23be90df767..214ffcf23bcf 100644 --- a/src/northbridge/intel/i5000/chip.h +++ b/src/northbridge/intel/i5000/chip.h @@ -20,4 +20,3 @@ struct northbridge_intel_i5000_config { }; -extern struct chip_operations northbridge_intel_i5000_ops; diff --git a/src/northbridge/intel/i82810/chip.h b/src/northbridge/intel/i82810/chip.h index f8c523e067e8..c57167756a88 100644 --- a/src/northbridge/intel/i82810/chip.h +++ b/src/northbridge/intel/i82810/chip.h @@ -21,4 +21,3 @@ struct northbridge_intel_i82810_config { }; -extern struct chip_operations northbridge_intel_i82810_ops; diff --git a/src/northbridge/intel/i82830/chip.h b/src/northbridge/intel/i82830/chip.h index af398f5e23b7..d0360fe92503 100644 --- a/src/northbridge/intel/i82830/chip.h +++ b/src/northbridge/intel/i82830/chip.h @@ -21,4 +21,3 @@ struct northbridge_intel_i82830_config { }; -extern struct chip_operations northbridge_intel_i82830_ops; diff --git a/src/northbridge/intel/i855/chip.h b/src/northbridge/intel/i855/chip.h index f98fe7b40a06..40b1d38e1af1 100644 --- a/src/northbridge/intel/i855/chip.h +++ b/src/northbridge/intel/i855/chip.h @@ -22,4 +22,3 @@ struct northbridge_intel_i855_config { }; -extern struct chip_operations northbridge_intel_i855_ops; diff --git a/src/northbridge/intel/i945/chip.h b/src/northbridge/intel/i945/chip.h index 6c51394d907e..2deb985bb0c3 100644 --- a/src/northbridge/intel/i945/chip.h +++ b/src/northbridge/intel/i945/chip.h @@ -20,4 +20,3 @@ struct northbridge_intel_i945_config { }; -extern struct chip_operations northbridge_intel_i945_ops; diff --git a/src/northbridge/intel/sandybridge/chip.h b/src/northbridge/intel/sandybridge/chip.h index bd8978746381..05034f1a5a42 100644 --- a/src/northbridge/intel/sandybridge/chip.h +++ b/src/northbridge/intel/sandybridge/chip.h @@ -40,4 +40,3 @@ struct northbridge_intel_sandybridge_config { u32 gpu_pch_backlight; /* PCH Backlight PWM value */ }; -extern struct chip_operations northbridge_intel_sandybridge_ops; diff --git a/src/northbridge/intel/sch/chip.h b/src/northbridge/intel/sch/chip.h index 52c2b164c113..b3aebd35c828 100644 --- a/src/northbridge/intel/sch/chip.h +++ b/src/northbridge/intel/sch/chip.h @@ -20,4 +20,3 @@ struct northbridge_intel_sch_config { }; -extern struct chip_operations northbridge_intel_sch_ops; diff --git a/src/northbridge/rdc/r8610/chip.h b/src/northbridge/rdc/r8610/chip.h index 01c835697f57..150f032d69db 100644 --- a/src/northbridge/rdc/r8610/chip.h +++ b/src/northbridge/rdc/r8610/chip.h @@ -21,4 +21,3 @@ struct northbridge_rdc_r8610_config { }; -extern struct chip_operations northbridge_rdc_r8610_ops; diff --git a/src/northbridge/via/cn400/chip.h b/src/northbridge/via/cn400/chip.h index cc3f7c0de8f9..e403d352c0fb 100644 --- a/src/northbridge/via/cn400/chip.h +++ b/src/northbridge/via/cn400/chip.h @@ -21,4 +21,3 @@ struct northbridge_via_cn400_config { }; -extern struct chip_operations northbridge_via_cn400_ops; diff --git a/src/northbridge/via/cn700/chip.h b/src/northbridge/via/cn700/chip.h index e5534968d70b..5b1515dc8f4d 100644 --- a/src/northbridge/via/cn700/chip.h +++ b/src/northbridge/via/cn700/chip.h @@ -21,4 +21,3 @@ struct northbridge_via_cn700_config { }; -extern struct chip_operations northbridge_via_cn700_ops; diff --git a/src/northbridge/via/cx700/chip.h b/src/northbridge/via/cx700/chip.h index 7b7aca8e8951..0e8491bbb48c 100644 --- a/src/northbridge/via/cx700/chip.h +++ b/src/northbridge/via/cx700/chip.h @@ -20,4 +20,3 @@ struct northbridge_via_cx700_config { }; -extern struct chip_operations northbridge_via_cx700_ops; diff --git a/src/northbridge/via/vt8601/chip.h b/src/northbridge/via/vt8601/chip.h index 9f61465428d6..c65e12e54ce5 100644 --- a/src/northbridge/via/vt8601/chip.h +++ b/src/northbridge/via/vt8601/chip.h @@ -2,4 +2,3 @@ struct northbridge_via_vt8601_config { }; -extern struct chip_operations northbridge_via_vt8601_ops; diff --git a/src/northbridge/via/vt8623/chip.h b/src/northbridge/via/vt8623/chip.h index 6b0aa9695eb4..5fb3f80999d2 100644 --- a/src/northbridge/via/vt8623/chip.h +++ b/src/northbridge/via/vt8623/chip.h @@ -2,4 +2,3 @@ struct northbridge_via_vt8623_config { }; -extern struct chip_operations northbridge_via_vt8623_ops; diff --git a/src/northbridge/via/vx800/chip.h b/src/northbridge/via/vx800/chip.h index 7d7153cedad2..64df31af510d 100644 --- a/src/northbridge/via/vx800/chip.h +++ b/src/northbridge/via/vx800/chip.h @@ -20,4 +20,3 @@ struct northbridge_via_vx800_config { }; -extern struct chip_operations northbridge_via_vx800_ops; diff --git a/src/southbridge/amd/agesa/hudson/chip.h b/src/southbridge/amd/agesa/hudson/chip.h index 7732f6d2fe51..1970608978e2 100644 --- a/src/southbridge/amd/agesa/hudson/chip.h +++ b/src/southbridge/amd/agesa/hudson/chip.h @@ -30,7 +30,5 @@ struct southbridge_amd_agesa_hudson_config u8 gpp_configuration; #endif }; -struct chip_operations; -extern struct chip_operations southbridge_amd_agesa_hudson_ops; #endif /* HUDSON_CHIP_H */ diff --git a/src/southbridge/amd/amd8111/chip.h b/src/southbridge/amd/amd8111/chip.h index 601038c4410a..622bf10fb760 100644 --- a/src/southbridge/amd/amd8111/chip.h +++ b/src/southbridge/amd/amd8111/chip.h @@ -8,7 +8,4 @@ struct southbridge_amd_amd8111_config unsigned int phy_lowreset : 1; }; -struct chip_operations; -extern struct chip_operations southbridge_amd_amd8111_ops; - #endif /* AMD8111_CHIP_H */ diff --git a/src/southbridge/amd/cimx/sb700/chip.h b/src/southbridge/amd/cimx/sb700/chip.h index ef294f450c5b..05edc5c2883f 100644 --- a/src/southbridge/amd/cimx/sb700/chip.h +++ b/src/southbridge/amd/cimx/sb700/chip.h @@ -20,8 +20,6 @@ #ifndef _CIMX_SB700_CHIP_H_ #define _CIMX_SB700_CHIP_H_ -extern struct chip_operations southbridge_amd_cimx_sb700_ops; - /* * configuration set in mainboard/devicetree.cb * boot_switch_sata_ide: diff --git a/src/southbridge/amd/cimx/sb800/chip.h b/src/southbridge/amd/cimx/sb800/chip.h index 3581f2e3b0c8..7fc7b88c7637 100644 --- a/src/southbridge/amd/cimx/sb800/chip.h +++ b/src/southbridge/amd/cimx/sb800/chip.h @@ -20,8 +20,6 @@ #ifndef _CIMX_SB800_CHIP_H_ #define _CIMX_SB800_CHIP_H_ -extern struct chip_operations southbridge_amd_cimx_sb800_ops; - /* * configuration set in mainboard/devicetree.cb * boot_switch_sata_ide: diff --git a/src/southbridge/amd/cimx/sb900/chip.h b/src/southbridge/amd/cimx/sb900/chip.h index 96afc42736d0..9004969b853d 100644 --- a/src/southbridge/amd/cimx/sb900/chip.h +++ b/src/southbridge/amd/cimx/sb900/chip.h @@ -20,8 +20,6 @@ #ifndef _CIMX_SB900_CHIP_H_ #define _CIMX_SB900_CHIP_H_ -extern struct chip_operations southbridge_amd_cimx_sb900_ops; - /* * configuration set in mainboard/devicetree.cb * boot_switch_sata_ide: diff --git a/src/southbridge/amd/cs5530/chip.h b/src/southbridge/amd/cs5530/chip.h index 92d64e49f9cf..271facb147ba 100644 --- a/src/southbridge/amd/cs5530/chip.h +++ b/src/southbridge/amd/cs5530/chip.h @@ -21,8 +21,6 @@ #ifndef SOUTHBRIDGE_AMD_CS5530_CHIP_H #define SOUTHBRIDGE_AMD_CS5530_CHIP_H -extern struct chip_operations southbridge_amd_cs5530_ops; - struct southbridge_amd_cs5530_config { int ide0_enable:1; int ide1_enable:1; diff --git a/src/southbridge/amd/cs5535/chip.h b/src/southbridge/amd/cs5535/chip.h index 3894a069068e..d4dde3d6ee44 100644 --- a/src/southbridge/amd/cs5535/chip.h +++ b/src/southbridge/amd/cs5535/chip.h @@ -1,8 +1,6 @@ #ifndef _SOUTHBRIDGE_AMD_CS5535 #define _SOUTHBRIDGE_AMD_CS5535 -extern struct chip_operations southbridge_amd_cs5535_ops; - struct southbridge_amd_cs5535_config { int setupflash; }; diff --git a/src/southbridge/amd/cs5536/chip.h b/src/southbridge/amd/cs5536/chip.h index ad9e736dec02..69deadc70b7d 100644 --- a/src/southbridge/amd/cs5536/chip.h +++ b/src/southbridge/amd/cs5536/chip.h @@ -23,8 +23,6 @@ #define MAX_UNWANTED_VPCI 8 /* increase if needed */ -extern struct chip_operations southbridge_amd_cs5536_ops; - struct southbridge_amd_cs5536_config { unsigned int lpc_serirq_enable; /* interrupt enables for LPC bus; each bit is an irq 0-15 */ unsigned int lpc_serirq_polarity; /* LPC IRQ polarity; each bit is an irq 0-15 */ diff --git a/src/southbridge/amd/rs690/chip.h b/src/southbridge/amd/rs690/chip.h index 5e08cc59f8d3..8ff4be5401e8 100644 --- a/src/southbridge/amd/rs690/chip.h +++ b/src/southbridge/amd/rs690/chip.h @@ -33,7 +33,5 @@ struct southbridge_amd_rs690_config u8 gfx_reconfiguration; /* Dynamic Lind Width Control */ u8 gfx_link_width; /* Desired width of lane 2 */ }; -struct chip_operations; -extern struct chip_operations southbridge_amd_rs690_ops; #endif /* RS690_CHIP_H */ diff --git a/src/southbridge/amd/rs780/chip.h b/src/southbridge/amd/rs780/chip.h index 4a10ae0f8aa1..7afcbf223634 100644 --- a/src/southbridge/amd/rs780/chip.h +++ b/src/southbridge/amd/rs780/chip.h @@ -36,7 +36,5 @@ struct southbridge_amd_rs780_config u8 gfx_pcie_config; /* GFX PCIE Modes */ u8 gfx_ddi_config; /* GFX DDI Modes */ }; -struct chip_operations; -extern struct chip_operations southbridge_amd_rs780_ops; #endif /* RS780_CHIP_H */ diff --git a/src/southbridge/amd/sb600/chip.h b/src/southbridge/amd/sb600/chip.h index ce40f18bf39a..e288cbff896c 100644 --- a/src/southbridge/amd/sb600/chip.h +++ b/src/southbridge/amd/sb600/chip.h @@ -24,7 +24,5 @@ struct southbridge_amd_sb600_config { u32 hda_viddid; }; -struct chip_operations; -extern struct chip_operations southbridge_amd_sb600_ops; #endif /* SB600_CHIP_H */ diff --git a/src/southbridge/amd/sb700/chip.h b/src/southbridge/amd/sb700/chip.h index acdb2b712c9e..390c579e523c 100644 --- a/src/southbridge/amd/sb700/chip.h +++ b/src/southbridge/amd/sb700/chip.h @@ -24,7 +24,5 @@ struct southbridge_amd_sb700_config { u32 boot_switch_sata_ide : 1; }; -struct chip_operations; -extern struct chip_operations southbridge_amd_sb700_ops; #endif /* SB700_CHIP_H */ diff --git a/src/southbridge/amd/sb800/chip.h b/src/southbridge/amd/sb800/chip.h index 41f26d16c080..13e1aacd7212 100644 --- a/src/southbridge/amd/sb800/chip.h +++ b/src/southbridge/amd/sb800/chip.h @@ -28,7 +28,5 @@ struct southbridge_amd_sb800_config u32 hda_viddid; u8 gpp_configuration; }; -struct chip_operations; -extern struct chip_operations southbridge_amd_sb800_ops; #endif /* SB800_CHIP_H */ diff --git a/src/southbridge/amd/sr5650/chip.h b/src/southbridge/amd/sr5650/chip.h index 43f8dd343c7f..236ac16b3e16 100644 --- a/src/southbridge/amd/sr5650/chip.h +++ b/src/southbridge/amd/sr5650/chip.h @@ -28,7 +28,5 @@ struct southbridge_amd_sr5650_config u8 gpp3a_configuration; /* The configuration of General Purpose Port. */ u16 port_enable; /* Which port is enabled? GPP(2,3,4,5,6,7,9,10,11,12,13) */ }; -struct chip_operations; -extern struct chip_operations southbridge_amd_sr5650_ops; #endif /* SR5650_CHIP_H */ diff --git a/src/southbridge/broadcom/bcm5785/chip.h b/src/southbridge/broadcom/bcm5785/chip.h index eb337e962429..d323bee6c416 100644 --- a/src/southbridge/broadcom/bcm5785/chip.h +++ b/src/southbridge/broadcom/bcm5785/chip.h @@ -28,7 +28,5 @@ struct southbridge_broadcom_bcm5785_config unsigned int sata0_enable : 1; unsigned int sata1_enable : 1; }; -struct chip_operations; -extern struct chip_operations southbridge_broadcom_bcm5785_ops; #endif /* BCM5785_CHIP_H */ diff --git a/src/southbridge/intel/bd82x6x/chip.h b/src/southbridge/intel/bd82x6x/chip.h index 07a2af7b9cdb..05eeab225df4 100644 --- a/src/southbridge/intel/bd82x6x/chip.h +++ b/src/southbridge/intel/bd82x6x/chip.h @@ -79,6 +79,4 @@ struct southbridge_intel_bd82x6x_config { uint8_t pcie_port_coalesce; }; -extern struct chip_operations southbridge_intel_bd82x6x_ops; - #endif /* SOUTHBRIDGE_INTEL_BD82X6X_CHIP_H */ diff --git a/src/southbridge/intel/esb6300/chip.h b/src/southbridge/intel/esb6300/chip.h index 4082769cce7c..c6dc3a36eeda 100644 --- a/src/southbridge/intel/esb6300/chip.h +++ b/src/southbridge/intel/esb6300/chip.h @@ -26,5 +26,4 @@ struct southbridge_intel_esb6300_config unsigned int pirq_a_d; unsigned int pirq_e_h; }; -extern struct chip_operations southbridge_intel_esb6300_ops; diff --git a/src/southbridge/intel/i3100/chip.h b/src/southbridge/intel/i3100/chip.h index 7e58674daf80..21d3a4659103 100644 --- a/src/southbridge/intel/i3100/chip.h +++ b/src/southbridge/intel/i3100/chip.h @@ -47,4 +47,3 @@ struct southbridge_intel_i3100_config u32 pirq_a_d; u32 pirq_e_h; }; -extern struct chip_operations southbridge_intel_i3100_ops; diff --git a/src/southbridge/intel/i82371eb/chip.h b/src/southbridge/intel/i82371eb/chip.h index 1cb29293464a..80846930c5c3 100644 --- a/src/southbridge/intel/i82371eb/chip.h +++ b/src/southbridge/intel/i82371eb/chip.h @@ -23,8 +23,6 @@ #include <device/device.h> -extern const struct chip_operations southbridge_intel_i82371eb_ops; - struct southbridge_intel_i82371eb_config { int ide0_enable:1; int ide0_drive0_udma33_enable:1; diff --git a/src/southbridge/intel/i82801ax/chip.h b/src/southbridge/intel/i82801ax/chip.h index 21b6f9fcf30c..989f35b9176a 100644 --- a/src/southbridge/intel/i82801ax/chip.h +++ b/src/southbridge/intel/i82801ax/chip.h @@ -37,6 +37,4 @@ struct southbridge_intel_i82801ax_config { u8 ide1_enable; }; -extern struct chip_operations southbridge_intel_i82801ax_ops; - #endif diff --git a/src/southbridge/intel/i82801bx/chip.h b/src/southbridge/intel/i82801bx/chip.h index 5cdfc5da50be..987eb8f8b259 100644 --- a/src/southbridge/intel/i82801bx/chip.h +++ b/src/southbridge/intel/i82801bx/chip.h @@ -41,6 +41,4 @@ struct southbridge_intel_i82801bx_config { u8 ide1_enable; }; -extern struct chip_operations southbridge_intel_i82801bx_ops; - #endif diff --git a/src/southbridge/intel/i82801cx/chip.h b/src/southbridge/intel/i82801cx/chip.h index 88415e055636..56185213eb7d 100644 --- a/src/southbridge/intel/i82801cx/chip.h +++ b/src/southbridge/intel/i82801cx/chip.h @@ -4,6 +4,5 @@ struct southbridge_intel_i82801cx_config { }; -extern struct chip_operations southbridge_intel_i82801cx_ops; #endif /* I82801CX_CHIP_H */ diff --git a/src/southbridge/intel/i82801dx/chip.h b/src/southbridge/intel/i82801dx/chip.h index 1209ec854b80..42701f778fee 100644 --- a/src/southbridge/intel/i82801dx/chip.h +++ b/src/southbridge/intel/i82801dx/chip.h @@ -41,6 +41,4 @@ struct southbridge_intel_i82801dx_config { uint8_t ide1_enable; }; -extern struct chip_operations southbridge_intel_i82801dx_ops; - #endif /* I82801DBM_CHIP_H */ diff --git a/src/southbridge/intel/i82801ex/chip.h b/src/southbridge/intel/i82801ex/chip.h index f04fc3fd29c6..891fa16d150e 100644 --- a/src/southbridge/intel/i82801ex/chip.h +++ b/src/southbridge/intel/i82801ex/chip.h @@ -30,7 +30,6 @@ struct southbridge_intel_i82801ex_config unsigned int pirq_a_d; unsigned int pirq_e_h; }; -extern struct chip_operations southbridge_intel_i82801ex_ops; #endif /* I82801EX_CHIP_H */ diff --git a/src/southbridge/intel/i82801gx/chip.h b/src/southbridge/intel/i82801gx/chip.h index cc17539d7dd9..5e4408aebf54 100644 --- a/src/southbridge/intel/i82801gx/chip.h +++ b/src/southbridge/intel/i82801gx/chip.h @@ -73,6 +73,4 @@ struct southbridge_intel_i82801gx_config { int c4onc3_enable:1; }; -extern struct chip_operations southbridge_intel_i82801gx_ops; - #endif /* SOUTHBRIDGE_INTEL_I82801GX_CHIP_H */ diff --git a/src/southbridge/intel/pxhd/chip.h b/src/southbridge/intel/pxhd/chip.h index 5aedb7777651..27d88a8277d2 100644 --- a/src/southbridge/intel/pxhd/chip.h +++ b/src/southbridge/intel/pxhd/chip.h @@ -3,4 +3,3 @@ struct southbridge_intel_pxhd_config /* nothing */ }; -extern struct chip_operations southbridge_intel_pxhd_ops; diff --git a/src/southbridge/intel/sch/chip.h b/src/southbridge/intel/sch/chip.h index 116d38276818..1ae5c32e0c76 100644 --- a/src/southbridge/intel/sch/chip.h +++ b/src/southbridge/intel/sch/chip.h @@ -35,6 +35,4 @@ struct southbridge_intel_sch_config { uint8_t pirqh_routing; }; -extern struct chip_operations southbridge_intel_sch_ops; - #endif diff --git a/src/southbridge/nvidia/ck804/chip.h b/src/southbridge/nvidia/ck804/chip.h index 17302055815d..64d42254afd5 100644 --- a/src/southbridge/nvidia/ck804/chip.h +++ b/src/southbridge/nvidia/ck804/chip.h @@ -30,7 +30,5 @@ struct southbridge_nvidia_ck804_config { unsigned int mac_eeprom_smbus; unsigned int mac_eeprom_addr; }; -struct chip_operations; -extern struct chip_operations southbridge_nvidia_ck804_ops; #endif diff --git a/src/southbridge/nvidia/mcp55/chip.h b/src/southbridge/nvidia/mcp55/chip.h index 00fd0829a332..bfcd1e9e41ea 100644 --- a/src/southbridge/nvidia/mcp55/chip.h +++ b/src/southbridge/nvidia/mcp55/chip.h @@ -33,7 +33,5 @@ struct southbridge_nvidia_mcp55_config unsigned int mac_eeprom_smbus; unsigned int mac_eeprom_addr; }; -struct chip_operations; -extern struct chip_operations southbridge_nvidia_mcp55_ops; #endif diff --git a/src/southbridge/ricoh/rl5c476/chip.h b/src/southbridge/ricoh/rl5c476/chip.h index 922eece219eb..98d8a6936dd7 100644 --- a/src/southbridge/ricoh/rl5c476/chip.h +++ b/src/southbridge/ricoh/rl5c476/chip.h @@ -1,8 +1,6 @@ #ifndef _SOUTHBRIDGE_RICOH_RL5C476 #define _SOUTHBRIDGE_RICOH_RL5C476 -extern struct chip_operations southbridge_ricoh_rl5c476_ops; - struct southbridge_ricoh_rl5c476_config { int enable_cf; }; diff --git a/src/southbridge/sis/sis966/chip.h b/src/southbridge/sis/sis966/chip.h index c169bb50cc19..3669f3bae9a9 100644 --- a/src/southbridge/sis/sis966/chip.h +++ b/src/southbridge/sis/sis966/chip.h @@ -31,7 +31,5 @@ struct southbridge_sis_sis966_config unsigned int mac_eeprom_smbus; unsigned int mac_eeprom_addr; }; -struct chip_operations; -extern struct chip_operations southbridge_sis_sis966_ops; #endif /* SIS966_CHIP_H */ diff --git a/src/southbridge/ti/pci1x2x/chip.h b/src/southbridge/ti/pci1x2x/chip.h index 4c3676153d05..2dbb1aab0d15 100644 --- a/src/southbridge/ti/pci1x2x/chip.h +++ b/src/southbridge/ti/pci1x2x/chip.h @@ -1,8 +1,6 @@ #ifndef SOUTHBRIDGE_TI_PCI1X2X_H #define SOUTHBRIDGE_TI_PCI1X2X_H -extern struct chip_operations southbridge_ti_pci1x2x_ops; - struct southbridge_ti_pci1x2x_config { int scr; int mrr; diff --git a/src/southbridge/ti/pci7420/chip.h b/src/southbridge/ti/pci7420/chip.h index d7ec2da4105c..cc218a12c95d 100644 --- a/src/southbridge/ti/pci7420/chip.h +++ b/src/southbridge/ti/pci7420/chip.h @@ -21,8 +21,6 @@ #ifndef _SOUTHBRIDGE_TI_PCI7420 #define _SOUTHBRIDGE_TI_PCI7420 -extern struct chip_operations southbridge_ti_pci7420_ops; - struct southbridge_ti_pci7420_config { int smartcard_enabled; }; diff --git a/src/southbridge/ti/pcixx12/chip.h b/src/southbridge/ti/pcixx12/chip.h index 42dc79cd1a48..03151a891661 100644 --- a/src/southbridge/ti/pcixx12/chip.h +++ b/src/southbridge/ti/pcixx12/chip.h @@ -20,8 +20,6 @@ #ifndef _SOUTHBRIDGE_TI_PCIXX12 #define _SOUTHBRIDGE_TI_PCIXX12 -extern struct chip_operations southbridge_ti_pcixx12_ops; - struct southbridge_ti_pcixx12_config { int dummy; diff --git a/src/southbridge/via/vt8231/chip.h b/src/southbridge/via/vt8231/chip.h index 277ead770584..e858ff50862b 100644 --- a/src/southbridge/via/vt8231/chip.h +++ b/src/southbridge/via/vt8231/chip.h @@ -1,8 +1,6 @@ #ifndef _SOUTHBRIDGE_VIA_VT8231 #define _SOUTHBRIDGE_VIA_VT8231 -extern struct chip_operations southbridge_via_vt8231_ops; - struct southbridge_via_vt8231_config { /* enables of Non-PCI devices */ int enable_native_ide; diff --git a/src/southbridge/via/vt8235/chip.h b/src/southbridge/via/vt8235/chip.h index 50f4a85547ad..eb1e82b7c8a4 100644 --- a/src/southbridge/via/vt8235/chip.h +++ b/src/southbridge/via/vt8235/chip.h @@ -1,8 +1,6 @@ #ifndef _SOUTHBRIDGE_VIA_VT8235 #define _SOUTHBRIDGE_VIA_VT8235 -extern struct chip_operations southbridge_via_vt8235_ops; - struct southbridge_via_vt8235_config { /* PCI function enables */ /* i.e. so that pci scan bus will find them. */ diff --git a/src/southbridge/via/vt8237r/chip.h b/src/southbridge/via/vt8237r/chip.h index 510854716ad0..cbc795271a2b 100644 --- a/src/southbridge/via/vt8237r/chip.h +++ b/src/southbridge/via/vt8237r/chip.h @@ -22,8 +22,6 @@ #include <stdint.h> -extern struct chip_operations southbridge_via_vt8237r_ops; - struct southbridge_via_vt8237r_config { /** * Function disable. 1 = disabled. diff --git a/src/southbridge/via/vt82c686/chip.h b/src/southbridge/via/vt82c686/chip.h index 8effc737e40f..44b3e2dfa121 100644 --- a/src/southbridge/via/vt82c686/chip.h +++ b/src/southbridge/via/vt82c686/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_via_vt82c686_ops; - struct superio_via_vt82c686_config { struct pc_keyboard keyboard; }; diff --git a/src/superio/fintek/f71805f/chip.h b/src/superio/fintek/f71805f/chip.h index 60eb684a32b2..603dbee36586 100644 --- a/src/superio/fintek/f71805f/chip.h +++ b/src/superio/fintek/f71805f/chip.h @@ -26,8 +26,6 @@ /* This chip doesn't have keyboard and mouse support. */ -extern struct chip_operations superio_fintek_f71805f_ops; - struct superio_fintek_f71805f_config { }; diff --git a/src/superio/fintek/f71859/chip.h b/src/superio/fintek/f71859/chip.h index 157ed26ab1b2..bd45ac0376a7 100644 --- a/src/superio/fintek/f71859/chip.h +++ b/src/superio/fintek/f71859/chip.h @@ -24,8 +24,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_fintek_f71859_ops; - struct superio_fintek_f71859_config { }; diff --git a/src/superio/fintek/f71863fg/chip.h b/src/superio/fintek/f71863fg/chip.h index ade7498e3513..522603b11a29 100644 --- a/src/superio/fintek/f71863fg/chip.h +++ b/src/superio/fintek/f71863fg/chip.h @@ -25,8 +25,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_fintek_f71863fg_ops; - struct superio_fintek_f71863fg_config { struct pc_keyboard keyboard; diff --git a/src/superio/fintek/f71872/chip.h b/src/superio/fintek/f71872/chip.h index bd41dd679df5..d897fae0b2ce 100644 --- a/src/superio/fintek/f71872/chip.h +++ b/src/superio/fintek/f71872/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_fintek_f71872_ops; - struct superio_fintek_f71872_config { struct pc_keyboard keyboard; diff --git a/src/superio/fintek/f71889/chip.h b/src/superio/fintek/f71889/chip.h index 65ae8700abbd..49e8cdd52b9c 100644 --- a/src/superio/fintek/f71889/chip.h +++ b/src/superio/fintek/f71889/chip.h @@ -25,8 +25,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_fintek_f71889_ops; - struct superio_fintek_f71889_config { struct pc_keyboard keyboard; diff --git a/src/superio/fintek/f81865f/chip.h b/src/superio/fintek/f81865f/chip.h index 711e2d0a58c7..29fb3a671ad6 100644 --- a/src/superio/fintek/f81865f/chip.h +++ b/src/superio/fintek/f81865f/chip.h @@ -26,8 +26,6 @@ /* This chip doesn't have keyboard and mouse support. */ -extern struct chip_operations superio_fintek_f81865f_ops; - struct superio_fintek_f81865f_config { struct pc_keyboard keyboard; diff --git a/src/superio/intel/i3100/chip.h b/src/superio/intel/i3100/chip.h index 4ed322527af2..05e2f452bf11 100644 --- a/src/superio/intel/i3100/chip.h +++ b/src/superio/intel/i3100/chip.h @@ -24,8 +24,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_intel_i3100_ops; - struct superio_intel_i3100_config { }; diff --git a/src/superio/ite/it8661f/chip.h b/src/superio/ite/it8661f/chip.h index 64b2cf873f77..1d9d1f9ba33e 100644 --- a/src/superio/ite/it8661f/chip.h +++ b/src/superio/ite/it8661f/chip.h @@ -26,8 +26,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8661f_ops; - struct superio_ite_it8661f_config { }; diff --git a/src/superio/ite/it8671f/chip.h b/src/superio/ite/it8671f/chip.h index 7fa7e26f578b..7659c87aee6d 100644 --- a/src/superio/ite/it8671f/chip.h +++ b/src/superio/ite/it8671f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8671f_ops; - struct superio_ite_it8671f_config { struct pc_keyboard keyboard; diff --git a/src/superio/ite/it8673f/chip.h b/src/superio/ite/it8673f/chip.h index 126180a19fe4..ace1725378d7 100644 --- a/src/superio/ite/it8673f/chip.h +++ b/src/superio/ite/it8673f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8673f_ops; - struct superio_ite_it8673f_config { struct pc_keyboard keyboard; diff --git a/src/superio/ite/it8705f/chip.h b/src/superio/ite/it8705f/chip.h index df620a8906cc..ac2ba77e87d4 100644 --- a/src/superio/ite/it8705f/chip.h +++ b/src/superio/ite/it8705f/chip.h @@ -26,8 +26,6 @@ #include <device/device.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8705f_ops; - struct superio_ite_it8705f_config { }; diff --git a/src/superio/ite/it8712f/chip.h b/src/superio/ite/it8712f/chip.h index 18630066db43..bb200e576213 100644 --- a/src/superio/ite/it8712f/chip.h +++ b/src/superio/ite/it8712f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8712f_ops; - struct superio_ite_it8712f_config { struct pc_keyboard keyboard; diff --git a/src/superio/ite/it8716f/chip.h b/src/superio/ite/it8716f/chip.h index 16b69ce2614c..8aaed3533d31 100644 --- a/src/superio/ite/it8716f/chip.h +++ b/src/superio/ite/it8716f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8716f_ops; - struct superio_ite_it8716f_config { struct pc_keyboard keyboard; diff --git a/src/superio/ite/it8718f/chip.h b/src/superio/ite/it8718f/chip.h index 43f7152fbb84..e70967a334ec 100644 --- a/src/superio/ite/it8718f/chip.h +++ b/src/superio/ite/it8718f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8718f_ops; - struct superio_ite_it8718f_config { struct pc_keyboard keyboard; diff --git a/src/superio/ite/it8721f/chip.h b/src/superio/ite/it8721f/chip.h index 3717d1967ff1..eb91566da26c 100644 --- a/src/superio/ite/it8721f/chip.h +++ b/src/superio/ite/it8721f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8721f_ops; - struct superio_ite_it8721f_config { struct pc_keyboard keyboard; }; diff --git a/src/superio/ite/it8772f/chip.h b/src/superio/ite/it8772f/chip.h index e91f6fac5308..1bfe8610b7c4 100644 --- a/src/superio/ite/it8772f/chip.h +++ b/src/superio/ite/it8772f/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_ite_it8772f_ops; - struct superio_ite_it8772f_config { struct pc_keyboard keyboard; diff --git a/src/superio/nsc/pc8374/chip.h b/src/superio/nsc/pc8374/chip.h index 4ae78f8ac0ab..2487b0c9a5cb 100644 --- a/src/superio/nsc/pc8374/chip.h +++ b/src/superio/nsc/pc8374/chip.h @@ -22,9 +22,6 @@ #ifndef SUPERIO_NSC_PC8374_CHIP_H #define SUPERIO_NSC_PC8374_CHIP_H -struct chip_operations; -extern struct chip_operations superio_nsc_pc8374_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc87309/chip.h b/src/superio/nsc/pc87309/chip.h index b9f5a7a9f9a4..4a9954a64581 100644 --- a/src/superio/nsc/pc87309/chip.h +++ b/src/superio/nsc/pc87309/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_nsc_pc87309_ops; - struct superio_nsc_pc87309_config { struct pc_keyboard keyboard; diff --git a/src/superio/nsc/pc87351/chip.h b/src/superio/nsc/pc87351/chip.h index 46b56afb719f..41e7e702ad86 100644 --- a/src/superio/nsc/pc87351/chip.h +++ b/src/superio/nsc/pc87351/chip.h @@ -22,9 +22,6 @@ #ifndef SUPERIO_NSC_PC87351_CHIP_H #define SUPERIO_NSC_PC87351_CHIP_H -struct chip_operations; -extern struct chip_operations superio_nsc_pc87351_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc87360/chip.h b/src/superio/nsc/pc87360/chip.h index 0cc6a89ee710..e56273371068 100644 --- a/src/superio/nsc/pc87360/chip.h +++ b/src/superio/nsc/pc87360/chip.h @@ -22,9 +22,6 @@ #ifndef SUPERIO_NSC_PC87360_CHIP_H #define SUPERIO_NSC_PC87360_CHIP_H -struct chip_operations; -extern struct chip_operations superio_nsc_pc87360_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc87366/chip.h b/src/superio/nsc/pc87366/chip.h index 6f656d4a65e5..1377bb8cd022 100644 --- a/src/superio/nsc/pc87366/chip.h +++ b/src/superio/nsc/pc87366/chip.h @@ -22,8 +22,6 @@ #ifndef SUPERIO_NSC_PC87366_CHIP_H #define SUPERIO_NSC_PC87366_CHIP_H -extern struct chip_operations superio_nsc_pc87366_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc87382/chip.h b/src/superio/nsc/pc87382/chip.h index 8cc049f52f3d..a9f0200f1821 100644 --- a/src/superio/nsc/pc87382/chip.h +++ b/src/superio/nsc/pc87382/chip.h @@ -22,7 +22,6 @@ #define SUPERIO_NSC_PC87382_CHIP_H #include <uart8250.h> -extern struct chip_operations superio_nsc_pc87382_ops; struct superio_nsc_pc87382_config { diff --git a/src/superio/nsc/pc87384/chip.h b/src/superio/nsc/pc87384/chip.h index ef202fc68bbb..1c49725235fe 100644 --- a/src/superio/nsc/pc87384/chip.h +++ b/src/superio/nsc/pc87384/chip.h @@ -22,7 +22,6 @@ #define SUPERIO_NSC_PC87384_CHIP_H #include <uart8250.h> -extern struct chip_operations superio_nsc_pc87384_ops; struct superio_nsc_pc87384_config { diff --git a/src/superio/nsc/pc87392/chip.h b/src/superio/nsc/pc87392/chip.h index 8b5fc52bfe3f..a6ebf1b5d9fd 100644 --- a/src/superio/nsc/pc87392/chip.h +++ b/src/superio/nsc/pc87392/chip.h @@ -21,8 +21,6 @@ #ifndef SUPERIO_NSC_PC87392_CHIP_H #define SUPERIO_NSC_PC87392_CHIP_H -extern struct chip_operations superio_nsc_pc87392_ops; - #include <uart8250.h> struct superio_nsc_pc87392_config { diff --git a/src/superio/nsc/pc87417/chip.h b/src/superio/nsc/pc87417/chip.h index ec3c381c92db..1d85fd9c2158 100644 --- a/src/superio/nsc/pc87417/chip.h +++ b/src/superio/nsc/pc87417/chip.h @@ -23,8 +23,6 @@ #ifndef SUPERIO_NSC_PC87417_CHIP_H #define SUPERIO_NSC_PC87417_CHIP_H -extern struct chip_operations superio_nsc_pc87417_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc87427/chip.h b/src/superio/nsc/pc87427/chip.h index 610dbdf8f72f..46c358f0c65b 100644 --- a/src/superio/nsc/pc87427/chip.h +++ b/src/superio/nsc/pc87427/chip.h @@ -22,8 +22,6 @@ #ifndef SUPERIO_NSC_PC87427_CHIP_H #define SUPERIO_NSC_PC87427_CHIP_H -extern struct chip_operations superio_nsc_pc87427_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc97307/chip.h b/src/superio/nsc/pc97307/chip.h index cc43323f7925..4d1df1f7b63b 100644 --- a/src/superio/nsc/pc97307/chip.h +++ b/src/superio/nsc/pc97307/chip.h @@ -28,8 +28,6 @@ #define PNP_DATA_REG 0x15D #endif -extern struct chip_operations superio_nsc_pc97307_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nsc/pc97317/chip.h b/src/superio/nsc/pc97317/chip.h index 4eb0c19cd9c1..23f8d2e74346 100644 --- a/src/superio/nsc/pc97317/chip.h +++ b/src/superio/nsc/pc97317/chip.h @@ -28,8 +28,6 @@ #define PNP_DATA_REG 0x15D #endif -extern struct chip_operations superio_nsc_pc97317_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/nuvoton/wpcm450/chip.h b/src/superio/nuvoton/wpcm450/chip.h index c921120501a2..75dd194e1e3d 100644 --- a/src/superio/nuvoton/wpcm450/chip.h +++ b/src/superio/nuvoton/wpcm450/chip.h @@ -21,9 +21,6 @@ #ifndef SUPERIO_NUVOTON_WPCM450_CHIP_H #define SUPERIO_NUVOTON_WPCM450_CHIP_H -struct chip_operations; -extern struct chip_operations superio_nuvoton_wpcm450_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/renesas/m3885x/chip.h b/src/superio/renesas/m3885x/chip.h index da2336d5dfb0..2b0b76a51203 100644 --- a/src/superio/renesas/m3885x/chip.h +++ b/src/superio/renesas/m3885x/chip.h @@ -23,8 +23,6 @@ #include <device/device.h> #include <pc80/keyboard.h> -extern struct chip_operations superio_renesas_m3885x_ops; - struct superio_renesas_m3885x_config { struct pc_keyboard keyboard; }; diff --git a/src/superio/smsc/fdc37m60x/chip.h b/src/superio/smsc/fdc37m60x/chip.h index 450ef75fbe98..8ca701f197bf 100644 --- a/src/superio/smsc/fdc37m60x/chip.h +++ b/src/superio/smsc/fdc37m60x/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_smsc_fdc37m60x_ops; - struct superio_smsc_fdc37m60x_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/fdc37n972/chip.h b/src/superio/smsc/fdc37n972/chip.h index 858cf532c194..caf5b14722fe 100644 --- a/src/superio/smsc/fdc37n972/chip.h +++ b/src/superio/smsc/fdc37n972/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_smsc_fdc37n972_ops; - struct superio_smsc_fdc37n972_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/kbc1100/chip.h b/src/superio/smsc/kbc1100/chip.h index 40aff0bf7d03..6c5425a656af 100644 --- a/src/superio/smsc/kbc1100/chip.h +++ b/src/superio/smsc/kbc1100/chip.h @@ -23,9 +23,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -struct chip_operations; -extern struct chip_operations superio_smsc_kbc1100_ops; - struct superio_smsc_kbc1100_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/lpc47b272/chip.h b/src/superio/smsc/lpc47b272/chip.h index 754d63d9677a..eab8c9bde154 100644 --- a/src/superio/smsc/lpc47b272/chip.h +++ b/src/superio/smsc/lpc47b272/chip.h @@ -21,9 +21,6 @@ #ifndef SUPERIO_SMSC_LPC47B272_CHIP_H #define SUPERIO_SMSC_LPC47B272_CHIP_H -struct chip_operations; -extern struct chip_operations superio_smsc_lpc47b272_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/smsc/lpc47b397/chip.h b/src/superio/smsc/lpc47b397/chip.h index 48fc6e475d15..e0d131f9a01d 100644 --- a/src/superio/smsc/lpc47b397/chip.h +++ b/src/superio/smsc/lpc47b397/chip.h @@ -23,9 +23,6 @@ #ifndef SUPERIO_SMSC_LPC47B397_CHIP_H #define SUPERIO_SMSC_LPC47B397_CHIP_H -struct chip_operations; -extern struct chip_operations superio_smsc_lpc47b397_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/smsc/lpc47m10x/chip.h b/src/superio/smsc/lpc47m10x/chip.h index 6d6ee97603fe..c8c293c84c61 100644 --- a/src/superio/smsc/lpc47m10x/chip.h +++ b/src/superio/smsc/lpc47m10x/chip.h @@ -25,9 +25,6 @@ #ifndef SUPERIO_SMSC_LPC47M10X_CHIP_H #define SUPERIO_SMSC_LPC47M10X_CHIP_H -struct chip_operations; -extern struct chip_operations superio_smsc_lpc47m10x_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/smsc/lpc47m15x/chip.h b/src/superio/smsc/lpc47m15x/chip.h index 57aba06dd816..2b5489a2d768 100644 --- a/src/superio/smsc/lpc47m15x/chip.h +++ b/src/superio/smsc/lpc47m15x/chip.h @@ -20,9 +20,6 @@ #ifndef SUPERIO_SMSC_LPC47M15X_CHIP_H #define SUPERIO_SMSC_LPC47M15X_CHIP_H -struct chip_operations; -extern struct chip_operations superio_smsc_lpc47m15x_ops; - #include <pc80/keyboard.h> #include <uart8250.h> diff --git a/src/superio/smsc/lpc47n217/chip.h b/src/superio/smsc/lpc47n217/chip.h index 89a778c22c54..b0fbe8cfe62c 100644 --- a/src/superio/smsc/lpc47n217/chip.h +++ b/src/superio/smsc/lpc47n217/chip.h @@ -21,9 +21,6 @@ #ifndef SUPERIO_SMSC_LPC47N217_CHIP_H #define SUPERIO_SMSC_LPC47N217_CHIP_H -struct chip_operations; -extern struct chip_operations superio_smsc_lpc47n217_ops; - #include <uart8250.h> struct superio_smsc_lpc47n217_config { diff --git a/src/superio/smsc/lpc47n227/chip.h b/src/superio/smsc/lpc47n227/chip.h index 8b3a2c9dfcb3..36ae6e33b544 100644 --- a/src/superio/smsc/lpc47n227/chip.h +++ b/src/superio/smsc/lpc47n227/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_smsc_lpc47n227_ops; - struct superio_smsc_lpc47n227_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/mec1308/chip.h b/src/superio/smsc/mec1308/chip.h index 3826888dd01e..0ebb1b6cd7fa 100644 --- a/src/superio/smsc/mec1308/chip.h +++ b/src/superio/smsc/mec1308/chip.h @@ -23,9 +23,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -struct chip_operations; -extern struct chip_operations superio_smsc_mec1308_ops; - struct superio_smsc_mec1308_config { struct pc_keyboard keyboard; }; diff --git a/src/superio/smsc/sch4037/chip.h b/src/superio/smsc/sch4037/chip.h index 3223750bf610..d79ccc16f777 100644 --- a/src/superio/smsc/sch4037/chip.h +++ b/src/superio/smsc/sch4037/chip.h @@ -23,9 +23,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -struct chip_operations; -extern struct chip_operations superio_smsc_sch4037_ops; - struct superio_smsc_sch4037_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/sio1036/chip.h b/src/superio/smsc/sio1036/chip.h index abed430cf8f7..a37f84f2a8b1 100644 --- a/src/superio/smsc/sio1036/chip.h +++ b/src/superio/smsc/sio1036/chip.h @@ -23,9 +23,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -struct chip_operations; -extern struct chip_operations superio_smsc_kbc1100_ops; - struct superio_smsc_sio1036_config { struct uart8250 com1; }; diff --git a/src/superio/smsc/sio10n268/chip.h b/src/superio/smsc/sio10n268/chip.h index cd6e87bedee7..22d8a3ab2b36 100644 --- a/src/superio/smsc/sio10n268/chip.h +++ b/src/superio/smsc/sio10n268/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_smsc_sio10n268_ops; - struct superio_smsc_sio10n268_config { struct pc_keyboard keyboard; diff --git a/src/superio/smsc/smscsuperio/chip.h b/src/superio/smsc/smscsuperio/chip.h index 86f93be58d5e..0f3a14d29d8c 100644 --- a/src/superio/smsc/smscsuperio/chip.h +++ b/src/superio/smsc/smscsuperio/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_smsc_smscsuperio_ops; - struct superio_smsc_smscsuperio_config { struct pc_keyboard keyboard; diff --git a/src/superio/via/vt1211/chip.h b/src/superio/via/vt1211/chip.h index 3fcd6ae1b19f..89d64cda20f4 100644 --- a/src/superio/via/vt1211/chip.h +++ b/src/superio/via/vt1211/chip.h @@ -23,8 +23,6 @@ #include <uart8250.h> -extern struct chip_operations superio_via_vt1211_ops; - struct superio_via_vt1211_config { }; diff --git a/src/superio/winbond/w83627dhg/chip.h b/src/superio/winbond/w83627dhg/chip.h index b516aacad03f..5fdbd1607553 100644 --- a/src/superio/winbond/w83627dhg/chip.h +++ b/src/superio/winbond/w83627dhg/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83627dhg_ops; - struct superio_winbond_w83627dhg_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83627ehg/chip.h b/src/superio/winbond/w83627ehg/chip.h index a16135dc0e20..51137461af99 100644 --- a/src/superio/winbond/w83627ehg/chip.h +++ b/src/superio/winbond/w83627ehg/chip.h @@ -25,8 +25,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83627ehg_ops; - struct superio_winbond_w83627ehg_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83627hf/chip.h b/src/superio/winbond/w83627hf/chip.h index 64d9920464ca..b7f217759069 100644 --- a/src/superio/winbond/w83627hf/chip.h +++ b/src/superio/winbond/w83627hf/chip.h @@ -26,8 +26,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83627hf_ops; - struct superio_winbond_w83627hf_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83627thg/chip.h b/src/superio/winbond/w83627thg/chip.h index ce064856656f..8268e5b892e9 100644 --- a/src/superio/winbond/w83627thg/chip.h +++ b/src/superio/winbond/w83627thg/chip.h @@ -26,8 +26,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83627thg_ops; - struct superio_winbond_w83627thg_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83627uhg/chip.h b/src/superio/winbond/w83627uhg/chip.h index 2802382ab9c3..d23eac2ac9c6 100644 --- a/src/superio/winbond/w83627uhg/chip.h +++ b/src/superio/winbond/w83627uhg/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83627uhg_ops; - struct superio_winbond_w83627uhg_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83697hf/chip.h b/src/superio/winbond/w83697hf/chip.h index 2359b6679fcf..4d36af915000 100644 --- a/src/superio/winbond/w83697hf/chip.h +++ b/src/superio/winbond/w83697hf/chip.h @@ -23,8 +23,6 @@ #include <uart8250.h> -extern struct chip_operations superio_winbond_w83697hf_ops; - struct superio_winbond_w83697hf_config { unsigned int hwmon_fan1_divisor; unsigned int hwmon_fan2_divisor; diff --git a/src/superio/winbond/w83977f/chip.h b/src/superio/winbond/w83977f/chip.h index aacb00918c31..d6c85bfedd83 100644 --- a/src/superio/winbond/w83977f/chip.h +++ b/src/superio/winbond/w83977f/chip.h @@ -24,8 +24,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83977f_ops; - struct superio_winbond_w83977f_config { struct pc_keyboard keyboard; diff --git a/src/superio/winbond/w83977tf/chip.h b/src/superio/winbond/w83977tf/chip.h index 80c4afd856b7..2a594e3c322d 100644 --- a/src/superio/winbond/w83977tf/chip.h +++ b/src/superio/winbond/w83977tf/chip.h @@ -26,8 +26,6 @@ #include <pc80/keyboard.h> #include <uart8250.h> -extern struct chip_operations superio_winbond_w83977tf_ops; - struct superio_winbond_w83977tf_config { struct pc_keyboard keyboard; diff --git a/util/sconfig/main.c b/util/sconfig/main.c index eb996a7e9e77..fe4c3b8e1257 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -624,6 +624,14 @@ int main(int argc, char** argv) { h = h->next; fprintf(autogen, "#include \"%s/chip.h\"\n", h->name); } + h = &headers; + while (h->next) { + h = h->next; + char *name_underscore = strdup(h->name); + translate_name(name_underscore, 0); + fprintf(autogen, "extern struct chip_operations %s_ops;\n", name_underscore); + free(name_underscore); + } walk_device_tree(autogen, &root, inherit_subsystem_ids, NULL); fprintf(autogen, "\n/* pass 0 */\n"); |