summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-19 20:12:52 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-19 20:12:52 +0000
commitfdc29d0ea4fbdd2cc1509a53122be7ec85cdb432 (patch)
tree3855b7ea3a288059458b847b4bdfabd5c48ccce4 /firmware/export
parent7d61376ef80bc6ac7a817201729ee1e612625ef6 (diff)
downloadrockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.zip
rockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.tar.gz
rockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.tar.bz2
rockbox-fdc29d0ea4fbdd2cc1509a53122be7ec85cdb432.tar.xz
Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/disk.h3
-rw-r--r--firmware/export/mmc.h1
-rw-r--r--firmware/export/nand.h1
-rw-r--r--firmware/export/pcm-internal.h2
-rw-r--r--firmware/export/pcm.h1
-rw-r--r--firmware/export/power.h2
-rw-r--r--firmware/export/ramdisk.h1
-rw-r--r--firmware/export/scroll_engine.h1
-rw-r--r--firmware/export/sd.h1
-rw-r--r--firmware/export/tuner.h1
-rw-r--r--firmware/export/usb.h3
11 files changed, 15 insertions, 2 deletions
diff --git a/firmware/export/disk.h b/firmware/export/disk.h
index ece0e26..8d6b41b 100644
--- a/firmware/export/disk.h
+++ b/firmware/export/disk.h
@@ -21,6 +21,7 @@
#ifndef _DISK_H_
#define _DISK_H_
+#include "config.h"
#include "mv.h" /* for volume definitions */
struct partinfo {
@@ -38,7 +39,7 @@ struct partinfo {
struct partinfo* disk_init(IF_MD_NONVOID(int drive));
struct partinfo* disk_partinfo(int partition);
-void disk_init_subsystem(void); /* Initialises mutexes */
+void disk_init_subsystem(void) INIT_ATTR; /* Initialises mutexes */
int disk_mount_all(void); /* returns the # of successful mounts */
int disk_mount(int drive);
int disk_unmount_all(void);
diff --git a/firmware/export/mmc.h b/firmware/export/mmc.h
index 7e72cb0..4c7e9c0 100644
--- a/firmware/export/mmc.h
+++ b/firmware/export/mmc.h
@@ -23,6 +23,7 @@
#define __MMC_H__
#include <stdbool.h>
+#include "config.h"
#include "mv.h" /* for HAVE_MULTIDRIVE or not */
struct storage_info;
diff --git a/firmware/export/nand.h b/firmware/export/nand.h
index 13d5594..58751ab 100644
--- a/firmware/export/nand.h
+++ b/firmware/export/nand.h
@@ -23,6 +23,7 @@
#define __NAND_H__
#include <stdbool.h>
+#include "config.h"
#include "mv.h" /* for HAVE_MULTIDRIVE or not */
struct storage_info;
diff --git a/firmware/export/pcm-internal.h b/firmware/export/pcm-internal.h
index d881963..89d895f 100644
--- a/firmware/export/pcm-internal.h
+++ b/firmware/export/pcm-internal.h
@@ -22,6 +22,8 @@
#ifndef PCM_INTERNAL_H
#define PCM_INTERNAL_H
+#include "config.h"
+
/* Cheapo buffer align macro to align to the 16-16 PCM size */
#define ALIGN_AUDIOBUF(start, size) \
({ (start) = (void *)(((uintptr_t)(start) + 3) & ~3); \
diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h
index 40d5afc..4a7a5b3 100644
--- a/firmware/export/pcm.h
+++ b/firmware/export/pcm.h
@@ -22,6 +22,7 @@
#define PCM_PLAYBACK_H
#include <string.h> /* size_t */
+#include "config.h"
#define DMA_REC_ERROR_DMA (-1)
#ifdef HAVE_SPDIF_REC
diff --git a/firmware/export/power.h b/firmware/export/power.h
index 137f40c..d46b9ba 100644
--- a/firmware/export/power.h
+++ b/firmware/export/power.h
@@ -21,6 +21,8 @@
#ifndef _POWER_H_
#define _POWER_H_
+#include "config.h"
+
#if CONFIG_CHARGING
enum power_input_flags {
/* No external power source? Default. */
diff --git a/firmware/export/ramdisk.h b/firmware/export/ramdisk.h
index 5135e38..c478c78 100644
--- a/firmware/export/ramdisk.h
+++ b/firmware/export/ramdisk.h
@@ -23,6 +23,7 @@
#define __RAMDISK_H__
#include <stdbool.h>
+#include "config.h"
#include "mv.h" /* for HAVE_MULTIDRIVE or not */
struct storage_info;
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h
index 0fe6fe4..55f4120 100644
--- a/firmware/export/scroll_engine.h
+++ b/firmware/export/scroll_engine.h
@@ -25,6 +25,7 @@
#ifndef __SCROLL_ENGINE_H__
#define __SCROLL_ENGINE_H__
+#include "config.h"
#include <lcd.h>
#include "file.h"
diff --git a/firmware/export/sd.h b/firmware/export/sd.h
index 43c961e..1c3c429 100644
--- a/firmware/export/sd.h
+++ b/firmware/export/sd.h
@@ -23,6 +23,7 @@
#define __SD_H__
#include <stdbool.h>
+#include "config.h"
#include "mv.h" /* for HAVE_MULTIDRIVE or not */
#ifdef HAVE_BOOTLOADER_USB_MODE
diff --git a/firmware/export/tuner.h b/firmware/export/tuner.h
index 6fedc0f..694da7c 100644
--- a/firmware/export/tuner.h
+++ b/firmware/export/tuner.h
@@ -22,6 +22,7 @@
#ifndef __TUNER_H__
#define __TUNER_H__
+#include "config.h"
#include "hwcompat.h"
/** Settings to the tuner layer **/
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index 3baacc5..ae6d59b 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -21,6 +21,7 @@
#ifndef _USB_H_
#define _USB_H_
+#include "config.h"
#include "kernel.h"
#include "button.h"
@@ -103,7 +104,7 @@ struct usb_transfer_completion_event_data
void usb_init(void) INIT_ATTR;
void usb_enable(bool on);
void usb_attach(void);
-void usb_start_monitoring(void);
+void usb_start_monitoring(void) INIT_ATTR;
void usb_close(void);
void usb_acknowledge(long id);
void usb_wait_for_disconnect(struct event_queue *q);