mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-30 00:19:41 +02:00
qi-add-ui-api.patch
Introduce the ability for boards to have UI inputs for purposes decided by Qi Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
d0c9237ee1
commit
263f4335ad
@ -42,6 +42,11 @@ enum filesystem {
|
|||||||
FS_EXT2
|
FS_EXT2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum ui_actions {
|
||||||
|
UI_ACTION_ADD_DEBUG = (1 << 0),
|
||||||
|
UI_ACTION_SKIPKERNEL = (1 << 1),
|
||||||
|
};
|
||||||
|
|
||||||
/* describes a source for getting kernel image */
|
/* describes a source for getting kernel image */
|
||||||
|
|
||||||
struct kernel_source {
|
struct kernel_source {
|
||||||
@ -76,22 +81,18 @@ struct board_api {
|
|||||||
const char *commandline_board_debug;
|
const char *commandline_board_debug;
|
||||||
const char *noboot;
|
const char *noboot;
|
||||||
const char *append;
|
const char *append;
|
||||||
|
|
||||||
const struct board_variant const * (*get_board_variant)(void);
|
const struct board_variant const * (*get_board_variant)(void);
|
||||||
int (*is_this_board)(void);
|
int (*is_this_board)(void);
|
||||||
void (*early_port_init)(void);
|
void (*early_port_init)(void);
|
||||||
void (*port_init)(void);
|
void (*port_init)(void);
|
||||||
void (*putc)(char);
|
void (*putc)(char);
|
||||||
void (*close)(void);
|
void (*close)(void);
|
||||||
|
u8 (*get_ui_keys)(void);
|
||||||
|
|
||||||
struct kernel_source kernel_source[8];
|
struct kernel_source kernel_source[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* these are the boards we support for a given CPU */
|
|
||||||
|
|
||||||
struct cpu_supported_boards {
|
|
||||||
const u32 cpu_id;
|
|
||||||
const struct board_api **boards;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* this is the board we are running on */
|
/* this is the board we are running on */
|
||||||
|
|
||||||
extern struct board_api const * this_board;
|
extern struct board_api const * this_board;
|
||||||
|
Loading…
Reference in New Issue
Block a user