diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/libata.h | 3 | ||||
| -rw-r--r-- | include/scsi/scsi_device.h | 5 | ||||
| -rw-r--r-- | include/uapi/linux/cdrom.h | 34 |
3 files changed, 41 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 649e5f86b5f0..91c9d109e5f1 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -620,6 +620,9 @@ struct ata_device { | |||
| 620 | union acpi_object *gtf_cache; | 620 | union acpi_object *gtf_cache; |
| 621 | unsigned int gtf_filter; | 621 | unsigned int gtf_filter; |
| 622 | #endif | 622 | #endif |
| 623 | #ifdef CONFIG_SATA_ZPODD | ||
| 624 | void *zpodd; | ||
| 625 | #endif | ||
| 623 | struct device tdev; | 626 | struct device tdev; |
| 624 | /* n_sector is CLEAR_BEGIN, read comment above CLEAR_BEGIN */ | 627 | /* n_sector is CLEAR_BEGIN, read comment above CLEAR_BEGIN */ |
| 625 | u64 n_sectors; /* size of device, if ATA */ | 628 | u64 n_sectors; /* size of device, if ATA */ |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index e65c62e82c5a..a7f9cba275e9 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
| @@ -157,10 +157,11 @@ struct scsi_device { | |||
| 157 | unsigned no_read_capacity_16:1; /* Avoid READ_CAPACITY_16 cmds */ | 157 | unsigned no_read_capacity_16:1; /* Avoid READ_CAPACITY_16 cmds */ |
| 158 | unsigned try_rc_10_first:1; /* Try READ_CAPACACITY_10 first */ | 158 | unsigned try_rc_10_first:1; /* Try READ_CAPACACITY_10 first */ |
| 159 | unsigned is_visible:1; /* is the device visible in sysfs */ | 159 | unsigned is_visible:1; /* is the device visible in sysfs */ |
| 160 | unsigned can_power_off:1; /* Device supports runtime power off */ | ||
| 161 | unsigned wce_default_on:1; /* Cache is ON by default */ | 160 | unsigned wce_default_on:1; /* Cache is ON by default */ |
| 162 | unsigned no_dif:1; /* T10 PI (DIF) should be disabled */ | 161 | unsigned no_dif:1; /* T10 PI (DIF) should be disabled */ |
| 163 | 162 | ||
| 163 | atomic_t disk_events_disable_depth; /* disable depth for disk events */ | ||
| 164 | |||
| 164 | DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */ | 165 | DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBITS); /* supported events */ |
| 165 | struct list_head event_list; /* asserted events */ | 166 | struct list_head event_list; /* asserted events */ |
| 166 | struct work_struct event_work; | 167 | struct work_struct event_work; |
| @@ -397,6 +398,8 @@ extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, | |||
| 397 | int data_direction, void *buffer, unsigned bufflen, | 398 | int data_direction, void *buffer, unsigned bufflen, |
| 398 | struct scsi_sense_hdr *, int timeout, int retries, | 399 | struct scsi_sense_hdr *, int timeout, int retries, |
| 399 | int *resid); | 400 | int *resid); |
| 401 | extern void sdev_disable_disk_events(struct scsi_device *sdev); | ||
| 402 | extern void sdev_enable_disk_events(struct scsi_device *sdev); | ||
| 400 | 403 | ||
| 401 | #ifdef CONFIG_PM_RUNTIME | 404 | #ifdef CONFIG_PM_RUNTIME |
| 402 | extern int scsi_autopm_get_device(struct scsi_device *); | 405 | extern int scsi_autopm_get_device(struct scsi_device *); |
diff --git a/include/uapi/linux/cdrom.h b/include/uapi/linux/cdrom.h index 898b866b300c..bd17ad5aa06d 100644 --- a/include/uapi/linux/cdrom.h +++ b/include/uapi/linux/cdrom.h | |||
| @@ -908,5 +908,39 @@ struct mode_page_header { | |||
| 908 | __be16 desc_length; | 908 | __be16 desc_length; |
| 909 | }; | 909 | }; |
| 910 | 910 | ||
| 911 | /* removable medium feature descriptor */ | ||
| 912 | struct rm_feature_desc { | ||
| 913 | __be16 feature_code; | ||
| 914 | #if defined(__BIG_ENDIAN_BITFIELD) | ||
| 915 | __u8 reserved1:2; | ||
| 916 | __u8 feature_version:4; | ||
| 917 | __u8 persistent:1; | ||
| 918 | __u8 curr:1; | ||
| 919 | #elif defined(__LITTLE_ENDIAN_BITFIELD) | ||
| 920 | __u8 curr:1; | ||
| 921 | __u8 persistent:1; | ||
| 922 | __u8 feature_version:4; | ||
| 923 | __u8 reserved1:2; | ||
| 924 | #endif | ||
| 925 | __u8 add_len; | ||
| 926 | #if defined(__BIG_ENDIAN_BITFIELD) | ||
| 927 | __u8 mech_type:3; | ||
| 928 | __u8 load:1; | ||
| 929 | __u8 eject:1; | ||
| 930 | __u8 pvnt_jmpr:1; | ||
| 931 | __u8 dbml:1; | ||
| 932 | __u8 lock:1; | ||
| 933 | #elif defined(__LITTLE_ENDIAN_BITFIELD) | ||
| 934 | __u8 lock:1; | ||
| 935 | __u8 dbml:1; | ||
| 936 | __u8 pvnt_jmpr:1; | ||
| 937 | __u8 eject:1; | ||
| 938 | __u8 load:1; | ||
| 939 | __u8 mech_type:3; | ||
| 940 | #endif | ||
| 941 | __u8 reserved2; | ||
| 942 | __u8 reserved3; | ||
| 943 | __u8 reserved4; | ||
| 944 | }; | ||
| 911 | 945 | ||
| 912 | #endif /* _UAPI_LINUX_CDROM_H */ | 946 | #endif /* _UAPI_LINUX_CDROM_H */ |
