summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-05 20:32:09 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-05 20:32:09 +0100
commit22a28f9caa2f96b52e1a427c32851298e14f8f33 (patch)
tree219467e72d72ea4204c28dcf6f8fd3643e5f8009 /firmware
parent2f4a94189da37e226a3a66766ed16726e04b5f36 (diff)
downloadrockbox-22a28f9caa2f96b52e1a427c32851298e14f8f33.tar.gz
rockbox-22a28f9caa2f96b52e1a427c32851298e14f8f33.tar.bz2
rockbox-22a28f9caa2f96b52e1a427c32851298e14f8f33.zip
Add missing kernel.h includes (hopefully all of them).
Change-Id: I9c1825296a788587b8d494d8514b3314847b0ff0
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/tlv320.c5
-rw-r--r--firmware/drivers/audio/uda1380.c1
-rw-r--r--firmware/drivers/audio/wm8978.c2
-rw-r--r--firmware/target/arm/as3525/button-clip.c3
-rw-r--r--firmware/target/arm/as3525/button-e200v2-fuze.c2
-rw-r--r--firmware/target/arm/ata-nand-telechips.c6
-rw-r--r--firmware/target/arm/imx233/adc-imx233.c2
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.c8
-rw-r--r--firmware/target/arm/imx233/button-lradc-imx233.c6
-rw-r--r--firmware/target/arm/imx233/creative-zen/lcd-zen.c3
-rw-r--r--firmware/target/arm/imx233/dcp-imx233.c4
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c2
-rw-r--r--firmware/target/arm/imx233/dma-imx233.c3
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-target.h1
-rw-r--r--firmware/target/arm/rk27xx/ma/audio-ma.c3
-rw-r--r--firmware/target/arm/rk27xx/ma/pca9555-ma.c1
-rw-r--r--firmware/target/arm/rk27xx/pcm-rk27xx.c2
-rw-r--r--firmware/target/arm/s3c2440/debug-s3c2440.c1
-rw-r--r--firmware/target/arm/s3c2440/i2c-s3c2440.c2
-rw-r--r--firmware/target/arm/s3c2440/lcd-s3c2440.c2
-rw-r--r--firmware/target/arm/s5l8700/system-target.h1
-rw-r--r--firmware/target/arm/s5l8702/system-target.h1
-rw-r--r--firmware/target/arm/tcc780x/system-target.h1
-rw-r--r--firmware/target/arm/tms320dm320/debug-dm320.c1
-rw-r--r--firmware/target/arm/tms320dm320/i2c-dm320.c3
-rw-r--r--firmware/target/coldfire/debug-coldfire.c4
-rw-r--r--firmware/target/coldfire/iriver/lcd-remote-iriver.c1
-rw-r--r--firmware/target/sh/archos/player/lcd-player.c5
-rw-r--r--firmware/target/sh/debug-sh.c6
29 files changed, 64 insertions, 18 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c
index 9fa676f3d5..c4c748d527 100644
--- a/firmware/drivers/audio/tlv320.c
+++ b/firmware/drivers/audio/tlv320.c
@@ -18,9 +18,11 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
-#include "logf.h"
#include "system.h"
+#include "kernel.h"
+#include "logf.h"
#include "string.h"
#include "audio.h"
@@ -313,4 +315,3 @@ void audiohw_set_monitor(bool enable)
tlv320_write_reg(REG_PC, value_pc);
}
#endif /* HAVE_RECORDING */
-
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c
index 9d6ece105b..debe299322 100644
--- a/firmware/drivers/audio/uda1380.c
+++ b/firmware/drivers/audio/uda1380.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "logf.h"
#include "system.h"
+#include "kernel.h"
#include "audio.h"
#include "debug.h"
#include "udacodec.h"
diff --git a/firmware/drivers/audio/wm8978.c b/firmware/drivers/audio/wm8978.c
index 69ae608e5d..0730ff5118 100644
--- a/firmware/drivers/audio/wm8978.c
+++ b/firmware/drivers/audio/wm8978.c
@@ -20,8 +20,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "audiohw.h"
#include "wmcodec.h"
#include "audio.h"
diff --git a/firmware/target/arm/as3525/button-clip.c b/firmware/target/arm/as3525/button-clip.c
index 2bd472c049..35b5e8af5e 100644
--- a/firmware/target/arm/as3525/button-clip.c
+++ b/firmware/target/arm/as3525/button-clip.c
@@ -20,7 +20,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "as3525v2.h"
#ifndef BOOTLOADER
diff --git a/firmware/target/arm/as3525/button-e200v2-fuze.c b/firmware/target/arm/as3525/button-e200v2-fuze.c
index d8bb90ee98..7c29c74861 100644
--- a/firmware/target/arm/as3525/button-e200v2-fuze.c
+++ b/firmware/target/arm/as3525/button-e200v2-fuze.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "backlight.h"
#include "dbop-as3525.h"
@@ -122,4 +123,3 @@ int button_read_device(void)
return btn;
}
-
diff --git a/firmware/target/arm/ata-nand-telechips.c b/firmware/target/arm/ata-nand-telechips.c
index fe1314d35a..b8e572068c 100644
--- a/firmware/target/arm/ata-nand-telechips.c
+++ b/firmware/target/arm/ata-nand-telechips.c
@@ -18,10 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <string.h>
+#include "system.h"
+#include "kernel.h"
#include "nand.h"
#include "ata-nand-target.h"
-#include "system.h"
-#include <string.h>
#include "led.h"
#include "panic.h"
#include "nand_id.h"
diff --git a/firmware/target/arm/imx233/adc-imx233.c b/firmware/target/arm/imx233/adc-imx233.c
index 36ac0f4eae..f3b7869159 100644
--- a/firmware/target/arm/imx233/adc-imx233.c
+++ b/firmware/target/arm/imx233/adc-imx233.c
@@ -19,8 +19,10 @@
*
****************************************************************************/
+#include "config.h"
#include "adc-target.h"
#include "system.h"
+#include "kernel.h"
#include "powermgmt-target.h"
#include "lradc-imx233.h"
#include "power-imx233.h"
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c
index 26a480d05c..c92804c2d4 100644
--- a/firmware/target/arm/imx233/audioout-imx233.c
+++ b/firmware/target/arm/imx233/audioout-imx233.c
@@ -18,11 +18,15 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <string.h>
+
+#include "config.h"
+#include "kernel.h"
#include "audioout-imx233.h"
#include "clkctrl-imx233.h"
#include "rtc-imx233.h"
#include "pcm_sampr.h"
-#include "string.h"
#include "audio-target.h"
#ifndef IMX233_AUDIO_COUPLING_MODE
@@ -294,4 +298,4 @@ struct imx233_audioout_info_t imx233_audioout_get_info(void)
info.dac = !BF_RD(AUDIOOUT_PWRDN, DAC);
info.capless = BF_RD(AUDIOOUT_PWRDN, CAPLESS);
return info;
-} \ No newline at end of file
+}
diff --git a/firmware/target/arm/imx233/button-lradc-imx233.c b/firmware/target/arm/imx233/button-lradc-imx233.c
index 5e3b7165a6..6bb7f9babe 100644
--- a/firmware/target/arm/imx233/button-lradc-imx233.c
+++ b/firmware/target/arm/imx233/button-lradc-imx233.c
@@ -18,8 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <stdlib.h>
+
+#include "cpu.h"
+#include "kernel.h"
#include "button-lradc-imx233.h"
-#include "stdlib.h"
#include "lradc-imx233.h"
#include "pinctrl-imx233.h"
diff --git a/firmware/target/arm/imx233/creative-zen/lcd-zen.c b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
index 7e9e98271c..c653b54848 100644
--- a/firmware/target/arm/imx233/creative-zen/lcd-zen.c
+++ b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
@@ -18,10 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include <sys/types.h> /* off_t */
#include <string.h>
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "backlight-target.h"
#include "lcd.h"
#include "lcdif-imx233.h"
@@ -346,4 +348,3 @@ void lcd_update_rect(int x, int y, int w, int h)
}
}
}
-
diff --git a/firmware/target/arm/imx233/dcp-imx233.c b/firmware/target/arm/imx233/dcp-imx233.c
index 8c0c1c4592..c800d890d3 100644
--- a/firmware/target/arm/imx233/dcp-imx233.c
+++ b/firmware/target/arm/imx233/dcp-imx233.c
@@ -18,8 +18,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "dcp-imx233.h"
#include "string.h"
#include "kernel-imx233.h"
@@ -247,4 +249,4 @@ struct imx233_dcp_info_t imx233_dcp_get_info(unsigned flags)
info.csc.enable = HW_DCP_CSCCTRL0 & HW_DCP_CSCCTRL0__ENABLE;
}
return info;
-} \ No newline at end of file
+}
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index 55dbe183b4..6fe59cad20 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -19,7 +19,9 @@
*
****************************************************************************/
+#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "dma-imx233.h"
#include "lcd.h"
#include "font.h"
diff --git a/firmware/target/arm/imx233/dma-imx233.c b/firmware/target/arm/imx233/dma-imx233.c
index 81ae5aeb72..6727e9b95b 100644
--- a/firmware/target/arm/imx233/dma-imx233.c
+++ b/firmware/target/arm/imx233/dma-imx233.c
@@ -18,8 +18,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "dma-imx233.h"
#include "lcd.h"
#include "string.h"
@@ -287,4 +289,3 @@ struct imx233_dma_info_t imx233_dma_get_info(unsigned chan, unsigned flags)
s.nr_unaligned = apb_nr_unaligned[chan];
return s;
}
-
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-target.h b/firmware/target/arm/imx31/gigabeat-s/system-target.h
index b12ca13bb5..c08b3acfed 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
/* High enough for most tasks but low enough for reduced voltage */
#define CPUFREQ_DEFAULT 264000000
diff --git a/firmware/target/arm/rk27xx/ma/audio-ma.c b/firmware/target/arm/rk27xx/ma/audio-ma.c
index f842824c26..6a4da1a4f3 100644
--- a/firmware/target/arm/rk27xx/ma/audio-ma.c
+++ b/firmware/target/arm/rk27xx/ma/audio-ma.c
@@ -19,11 +19,12 @@
*
****************************************************************************/
+#include "system.h"
+#include "kernel.h"
#include "audiohw.h"
#include "df1704.h"
#include "pca9555.h"
#include "i2c-rk27xx.h"
-#include "system.h"
void df1704_set_ml_dir(const int dir)
{
diff --git a/firmware/target/arm/rk27xx/ma/pca9555-ma.c b/firmware/target/arm/rk27xx/ma/pca9555-ma.c
index 328a87e8ca..bec2fb17fa 100644
--- a/firmware/target/arm/rk27xx/ma/pca9555-ma.c
+++ b/firmware/target/arm/rk27xx/ma/pca9555-ma.c
@@ -20,6 +20,7 @@
****************************************************************************/
#include "system.h"
+#include "kernel.h"
#include "i2c-rk27xx.h"
#include "pca9555.h"
diff --git a/firmware/target/arm/rk27xx/pcm-rk27xx.c b/firmware/target/arm/rk27xx/pcm-rk27xx.c
index 4e6b8fe6b6..21feaf6cc4 100644
--- a/firmware/target/arm/rk27xx/pcm-rk27xx.c
+++ b/firmware/target/arm/rk27xx/pcm-rk27xx.c
@@ -19,7 +19,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
+#include "kernel.h"
#include "audio.h"
#include "string.h"
#include "panic.h"
diff --git a/firmware/target/arm/s3c2440/debug-s3c2440.c b/firmware/target/arm/s3c2440/debug-s3c2440.c
index dcdea65011..de06a43bb9 100644
--- a/firmware/target/arm/s3c2440/debug-s3c2440.c
+++ b/firmware/target/arm/s3c2440/debug-s3c2440.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "string.h"
#include <stdbool.h>
#include "button.h"
diff --git a/firmware/target/arm/s3c2440/i2c-s3c2440.c b/firmware/target/arm/s3c2440/i2c-s3c2440.c
index 33c4e3180a..b8fbb19003 100644
--- a/firmware/target/arm/s3c2440/i2c-s3c2440.c
+++ b/firmware/target/arm/s3c2440/i2c-s3c2440.c
@@ -18,7 +18,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
+#include "kernel.h"
#include "i2c-s3c2440.h"
static struct semaphore i2c_complete; /* Transfer completion signal */
diff --git a/firmware/target/arm/s3c2440/lcd-s3c2440.c b/firmware/target/arm/s3c2440/lcd-s3c2440.c
index 1631e350f3..55e151376b 100644
--- a/firmware/target/arm/s3c2440/lcd-s3c2440.c
+++ b/firmware/target/arm/s3c2440/lcd-s3c2440.c
@@ -19,8 +19,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "lcd.h"
#include "lcd-target.h"
diff --git a/firmware/target/arm/s5l8700/system-target.h b/firmware/target/arm/s5l8700/system-target.h
index 170794a999..efd66fe43b 100644
--- a/firmware/target/arm/s5l8700/system-target.h
+++ b/firmware/target/arm/s5l8700/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
#define CPUFREQ_SLEEP 32768
#define CPUFREQ_MAX (1843200 * 4 * 26 / 1) /* 191692800 Hz */
diff --git a/firmware/target/arm/s5l8702/system-target.h b/firmware/target/arm/s5l8702/system-target.h
index ba05c2f6fb..202ac83051 100644
--- a/firmware/target/arm/s5l8702/system-target.h
+++ b/firmware/target/arm/s5l8702/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
#define CPUFREQ_SLEEP 32768
#define CPUFREQ_MAX 216000000
diff --git a/firmware/target/arm/tcc780x/system-target.h b/firmware/target/arm/tcc780x/system-target.h
index fe66a6eb68..a369c2fb9a 100644
--- a/firmware/target/arm/tcc780x/system-target.h
+++ b/firmware/target/arm/tcc780x/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h" /* TIME_BEFORE */
#define CPUFREQ_DEFAULT 32000000
#define CPUFREQ_NORMAL 48000000
diff --git a/firmware/target/arm/tms320dm320/debug-dm320.c b/firmware/target/arm/tms320dm320/debug-dm320.c
index 89d8d506b3..37e48d16a2 100644
--- a/firmware/target/arm/tms320dm320/debug-dm320.c
+++ b/firmware/target/arm/tms320dm320/debug-dm320.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "string.h"
#include <stdbool.h>
#include "button.h"
diff --git a/firmware/target/arm/tms320dm320/i2c-dm320.c b/firmware/target/arm/tms320dm320/i2c-dm320.c
index c2010199e1..629dae394c 100644
--- a/firmware/target/arm/tms320dm320/i2c-dm320.c
+++ b/firmware/target/arm/tms320dm320/i2c-dm320.c
@@ -21,8 +21,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
-#include "thread.h"
+#include "kernel.h"
#include "i2c-dm320.h"
#ifdef HAVE_SOFTWARE_I2C
diff --git a/firmware/target/coldfire/debug-coldfire.c b/firmware/target/coldfire/debug-coldfire.c
index acc2c411eb..249c0a75ab 100644
--- a/firmware/target/coldfire/debug-coldfire.c
+++ b/firmware/target/coldfire/debug-coldfire.c
@@ -19,9 +19,11 @@
*
****************************************************************************/
+#include <stdbool.h>
+
#include "config.h"
#include "system.h"
-#include <stdbool.h>
+#include "kernel.h"
#include "font.h"
#include "lcd.h"
#include "button.h"
diff --git a/firmware/target/coldfire/iriver/lcd-remote-iriver.c b/firmware/target/coldfire/iriver/lcd-remote-iriver.c
index 03c0e40dbe..fcf741af3f 100644
--- a/firmware/target/coldfire/iriver/lcd-remote-iriver.c
+++ b/firmware/target/coldfire/iriver/lcd-remote-iriver.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "file.h"
#include "lcd-remote.h"
#include "adc.h"
diff --git a/firmware/target/sh/archos/player/lcd-player.c b/firmware/target/sh/archos/player/lcd-player.c
index 330cc266bc..95b0164bf5 100644
--- a/firmware/target/sh/archos/player/lcd-player.c
+++ b/firmware/target/sh/archos/player/lcd-player.c
@@ -20,10 +20,11 @@
*
****************************************************************************/
-#include "config.h"
#include <string.h>
-#include "hwcompat.h"
+#include "config.h"
#include "system.h"
+#include "kernel.h"
+#include "hwcompat.h"
#include "lcd.h"
#include "lcd-charcell.h"
diff --git a/firmware/target/sh/debug-sh.c b/firmware/target/sh/debug-sh.c
index 180c37f3c6..bee4896174 100644
--- a/firmware/target/sh/debug-sh.c
+++ b/firmware/target/sh/debug-sh.c
@@ -19,10 +19,12 @@
*
****************************************************************************/
-#include "config.h"
-#include "system.h"
#include <stdbool.h>
#include <string.h>
+
+#include "config.h"
+#include "system.h"
+#include "kernel.h"
#include "font.h"
#include "lcd.h"
#include "button.h"