diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bio.h | 5 | ||||
-rw-r--r-- | include/linux/blkdev.h | 1 | ||||
-rw-r--r-- | include/linux/kernel.h | 4 | ||||
-rw-r--r-- | include/linux/mg_disk.h | 45 |
4 files changed, 54 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 12737be58601..2a04eb54c0dd 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -590,6 +590,11 @@ static inline void bio_list_merge_head(struct bio_list *bl, | |||
590 | bl->head = bl2->head; | 590 | bl->head = bl2->head; |
591 | } | 591 | } |
592 | 592 | ||
593 | static inline struct bio *bio_list_peek(struct bio_list *bl) | ||
594 | { | ||
595 | return bl->head; | ||
596 | } | ||
597 | |||
593 | static inline struct bio *bio_list_pop(struct bio_list *bl) | 598 | static inline struct bio *bio_list_pop(struct bio_list *bl) |
594 | { | 599 | { |
595 | struct bio *bio = bl->head; | 600 | struct bio *bio = bl->head; |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 0b1a6cae9de1..8963d9149b5f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -926,6 +926,7 @@ extern void blk_queue_alignment_offset(struct request_queue *q, | |||
926 | unsigned int alignment); | 926 | unsigned int alignment); |
927 | extern void blk_queue_io_min(struct request_queue *q, unsigned int min); | 927 | extern void blk_queue_io_min(struct request_queue *q, unsigned int min); |
928 | extern void blk_queue_io_opt(struct request_queue *q, unsigned int opt); | 928 | extern void blk_queue_io_opt(struct request_queue *q, unsigned int opt); |
929 | extern void blk_set_default_limits(struct queue_limits *lim); | ||
929 | extern int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, | 930 | extern int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, |
930 | sector_t offset); | 931 | sector_t offset); |
931 | extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, | 932 | extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 99b7aada28da..c5a71c38a95f 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -97,12 +97,14 @@ extern const char linux_proc_banner[]; | |||
97 | #define KERN_INFO "<6>" /* informational */ | 97 | #define KERN_INFO "<6>" /* informational */ |
98 | #define KERN_DEBUG "<7>" /* debug-level messages */ | 98 | #define KERN_DEBUG "<7>" /* debug-level messages */ |
99 | 99 | ||
100 | /* Use the default kernel loglevel */ | ||
101 | #define KERN_DEFAULT "<d>" | ||
100 | /* | 102 | /* |
101 | * Annotation for a "continued" line of log printout (only done after a | 103 | * Annotation for a "continued" line of log printout (only done after a |
102 | * line that had no enclosing \n). Only to be used by core/arch code | 104 | * line that had no enclosing \n). Only to be used by core/arch code |
103 | * during early bootup (a continued line is not SMP-safe otherwise). | 105 | * during early bootup (a continued line is not SMP-safe otherwise). |
104 | */ | 106 | */ |
105 | #define KERN_CONT "" | 107 | #define KERN_CONT "<c>" |
106 | 108 | ||
107 | extern int console_printk[]; | 109 | extern int console_printk[]; |
108 | 110 | ||
diff --git a/include/linux/mg_disk.h b/include/linux/mg_disk.h new file mode 100644 index 000000000000..e11f4d9f1c2e --- /dev/null +++ b/include/linux/mg_disk.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * include/linux/mg_disk.c | ||
3 | * | ||
4 | * Private data for mflash platform driver | ||
5 | * | ||
6 | * (c) 2008 mGine Co.,LTD | ||
7 | * (c) 2008 unsik Kim <donari75@gmail.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MG_DISK_H__ | ||
15 | #define __MG_DISK_H__ | ||
16 | |||
17 | /* name for platform device */ | ||
18 | #define MG_DEV_NAME "mg_disk" | ||
19 | |||
20 | /* names of GPIO resource */ | ||
21 | #define MG_RST_PIN "mg_rst" | ||
22 | /* except MG_BOOT_DEV, reset-out pin should be assigned */ | ||
23 | #define MG_RSTOUT_PIN "mg_rstout" | ||
24 | |||
25 | /* device attribution */ | ||
26 | /* use mflash as boot device */ | ||
27 | #define MG_BOOT_DEV (1 << 0) | ||
28 | /* use mflash as storage device */ | ||
29 | #define MG_STORAGE_DEV (1 << 1) | ||
30 | /* same as MG_STORAGE_DEV, but bootloader already done reset sequence */ | ||
31 | #define MG_STORAGE_DEV_SKIP_RST (1 << 2) | ||
32 | |||
33 | /* private driver data */ | ||
34 | struct mg_drv_data { | ||
35 | /* disk resource */ | ||
36 | u32 use_polling; | ||
37 | |||
38 | /* device attribution */ | ||
39 | u32 dev_attr; | ||
40 | |||
41 | /* internally used */ | ||
42 | void *host; | ||
43 | }; | ||
44 | |||
45 | #endif | ||