diff options
Diffstat (limited to 'include/linux')
31 files changed, 603 insertions, 248 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 95ac82340c3b..39da666067b9 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -56,8 +56,6 @@ header-y += dlm_device.h | |||
| 56 | header-y += dlm_netlink.h | 56 | header-y += dlm_netlink.h |
| 57 | header-y += dm-ioctl.h | 57 | header-y += dm-ioctl.h |
| 58 | header-y += dn.h | 58 | header-y += dn.h |
| 59 | header-y += dqblk_v1.h | ||
| 60 | header-y += dqblk_v2.h | ||
| 61 | header-y += dqblk_xfs.h | 59 | header-y += dqblk_xfs.h |
| 62 | header-y += efs_fs_sb.h | 60 | header-y += efs_fs_sb.h |
| 63 | header-y += elf-fdpic.h | 61 | header-y += elf-fdpic.h |
| @@ -134,8 +132,6 @@ header-y += posix_types.h | |||
| 134 | header-y += ppdev.h | 132 | header-y += ppdev.h |
| 135 | header-y += prctl.h | 133 | header-y += prctl.h |
| 136 | header-y += qnxtypes.h | 134 | header-y += qnxtypes.h |
| 137 | header-y += quotaio_v1.h | ||
| 138 | header-y += quotaio_v2.h | ||
| 139 | header-y += radeonfb.h | 135 | header-y += radeonfb.h |
| 140 | header-y += raw.h | 136 | header-y += raw.h |
| 141 | header-y += resource.h | 137 | header-y += resource.h |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 1ee608fd7b77..484b3abf61bb 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -234,6 +234,7 @@ struct cpufreq_driver { | |||
| 234 | int (*suspend) (struct cpufreq_policy *policy, pm_message_t pmsg); | 234 | int (*suspend) (struct cpufreq_policy *policy, pm_message_t pmsg); |
| 235 | int (*resume) (struct cpufreq_policy *policy); | 235 | int (*resume) (struct cpufreq_policy *policy); |
| 236 | struct freq_attr **attr; | 236 | struct freq_attr **attr; |
| 237 | bool hide_interface; | ||
| 237 | }; | 238 | }; |
| 238 | 239 | ||
| 239 | /* flags */ | 240 | /* flags */ |
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index c17fd334e574..8209e08969f9 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
| @@ -45,6 +45,8 @@ typedef void (*dm_dtr_fn) (struct dm_target *ti); | |||
| 45 | */ | 45 | */ |
| 46 | typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio, | 46 | typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio, |
| 47 | union map_info *map_context); | 47 | union map_info *map_context); |
| 48 | typedef int (*dm_map_request_fn) (struct dm_target *ti, struct request *clone, | ||
| 49 | union map_info *map_context); | ||
| 48 | 50 | ||
| 49 | /* | 51 | /* |
| 50 | * Returns: | 52 | * Returns: |
| @@ -57,6 +59,9 @@ typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio, | |||
| 57 | typedef int (*dm_endio_fn) (struct dm_target *ti, | 59 | typedef int (*dm_endio_fn) (struct dm_target *ti, |
| 58 | struct bio *bio, int error, | 60 | struct bio *bio, int error, |
| 59 | union map_info *map_context); | 61 | union map_info *map_context); |
| 62 | typedef int (*dm_request_endio_fn) (struct dm_target *ti, | ||
| 63 | struct request *clone, int error, | ||
| 64 | union map_info *map_context); | ||
| 60 | 65 | ||
| 61 | typedef void (*dm_flush_fn) (struct dm_target *ti); | 66 | typedef void (*dm_flush_fn) (struct dm_target *ti); |
| 62 | typedef void (*dm_presuspend_fn) (struct dm_target *ti); | 67 | typedef void (*dm_presuspend_fn) (struct dm_target *ti); |
| @@ -75,6 +80,13 @@ typedef int (*dm_ioctl_fn) (struct dm_target *ti, unsigned int cmd, | |||
| 75 | typedef int (*dm_merge_fn) (struct dm_target *ti, struct bvec_merge_data *bvm, | 80 | typedef int (*dm_merge_fn) (struct dm_target *ti, struct bvec_merge_data *bvm, |
| 76 | struct bio_vec *biovec, int max_size); | 81 | struct bio_vec *biovec, int max_size); |
| 77 | 82 | ||
| 83 | /* | ||
| 84 | * Returns: | ||
| 85 | * 0: The target can handle the next I/O immediately. | ||
| 86 | * 1: The target can't handle the next I/O immediately. | ||
| 87 | */ | ||
| 88 | typedef int (*dm_busy_fn) (struct dm_target *ti); | ||
| 89 | |||
| 78 | void dm_error(const char *message); | 90 | void dm_error(const char *message); |
| 79 | 91 | ||
| 80 | /* | 92 | /* |
| @@ -100,14 +112,23 @@ void dm_put_device(struct dm_target *ti, struct dm_dev *d); | |||
| 100 | /* | 112 | /* |
| 101 | * Information about a target type | 113 | * Information about a target type |
| 102 | */ | 114 | */ |
| 115 | |||
| 116 | /* | ||
| 117 | * Target features | ||
| 118 | */ | ||
| 119 | #define DM_TARGET_SUPPORTS_BARRIERS 0x00000001 | ||
| 120 | |||
| 103 | struct target_type { | 121 | struct target_type { |
| 122 | uint64_t features; | ||
| 104 | const char *name; | 123 | const char *name; |
| 105 | struct module *module; | 124 | struct module *module; |
| 106 | unsigned version[3]; | 125 | unsigned version[3]; |
| 107 | dm_ctr_fn ctr; | 126 | dm_ctr_fn ctr; |
| 108 | dm_dtr_fn dtr; | 127 | dm_dtr_fn dtr; |
| 109 | dm_map_fn map; | 128 | dm_map_fn map; |
| 129 | dm_map_request_fn map_rq; | ||
| 110 | dm_endio_fn end_io; | 130 | dm_endio_fn end_io; |
| 131 | dm_request_endio_fn rq_end_io; | ||
| 111 | dm_flush_fn flush; | 132 | dm_flush_fn flush; |
| 112 | dm_presuspend_fn presuspend; | 133 | dm_presuspend_fn presuspend; |
| 113 | dm_postsuspend_fn postsuspend; | 134 | dm_postsuspend_fn postsuspend; |
| @@ -117,6 +138,7 @@ struct target_type { | |||
| 117 | dm_message_fn message; | 138 | dm_message_fn message; |
| 118 | dm_ioctl_fn ioctl; | 139 | dm_ioctl_fn ioctl; |
| 119 | dm_merge_fn merge; | 140 | dm_merge_fn merge; |
| 141 | dm_busy_fn busy; | ||
| 120 | }; | 142 | }; |
| 121 | 143 | ||
| 122 | struct io_restrictions { | 144 | struct io_restrictions { |
| @@ -157,8 +179,7 @@ struct dm_target { | |||
| 157 | }; | 179 | }; |
| 158 | 180 | ||
| 159 | int dm_register_target(struct target_type *t); | 181 | int dm_register_target(struct target_type *t); |
| 160 | int dm_unregister_target(struct target_type *t); | 182 | void dm_unregister_target(struct target_type *t); |
| 161 | |||
| 162 | 183 | ||
| 163 | /*----------------------------------------------------------------- | 184 | /*----------------------------------------------------------------- |
| 164 | * Functions for creating and manipulating mapped devices. | 185 | * Functions for creating and manipulating mapped devices. |
| @@ -276,6 +297,9 @@ void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size); | |||
| 276 | *---------------------------------------------------------------*/ | 297 | *---------------------------------------------------------------*/ |
| 277 | #define DM_NAME "device-mapper" | 298 | #define DM_NAME "device-mapper" |
| 278 | 299 | ||
| 300 | #define DMCRIT(f, arg...) \ | ||
| 301 | printk(KERN_CRIT DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) | ||
| 302 | |||
| 279 | #define DMERR(f, arg...) \ | 303 | #define DMERR(f, arg...) \ |
| 280 | printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) | 304 | printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) |
| 281 | #define DMERR_LIMIT(f, arg...) \ | 305 | #define DMERR_LIMIT(f, arg...) \ |
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index 136f170cecc2..af1dab41674b 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
| @@ -17,7 +17,15 @@ struct dmar_domain; | |||
| 17 | struct root_entry; | 17 | struct root_entry; |
| 18 | 18 | ||
| 19 | extern void free_dmar_iommu(struct intel_iommu *iommu); | 19 | ex |
