aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/aacraid/linit.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 6650f6fa9890..5ab733d4faf4 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -790,6 +790,23 @@ static ssize_t aac_show_vendor(struct class_device *class_dev,
790 return len; 790 return len;
791} 791}
792 792
793static ssize_t aac_show_flags(struct class_device *class_dev, char *buf)
794{
795 int len = 0;
796 struct aac_dev *dev = (struct aac_dev*)class_to_shost(class_dev)->hostdata;
797
798 if (nblank(dprintk(x)))
799 len = snprintf(buf, PAGE_SIZE, "dprintk\n");
800#ifdef AAC_DETAILED_STATUS_INFO
801 len += snprintf(buf + len, PAGE_SIZE - len,
802 "AAC_DETAILED_STATUS_INFO\n");
803#endif
804 if (dev->raw_io_interface && dev->raw_io_64)
805 len += snprintf(buf + len, PAGE_SIZE - len,
806 "SAI_READ_CAPACITY_16\n");
807 return len;
808}
809
793static ssize_t aac_show_kernel_version(struct class_device *class_dev, 810static ssize_t aac_show_kernel_version(struct class_device *class_dev,
794 char *buf) 811 char *buf)
795{ 812{
@@ -899,6 +916,13 @@ static struct class_device_attribute aac_vendor = {
899 }, 916 },
900 .show = aac_show_vendor, 917 .show = aac_show_vendor,
901}; 918};
919static struct class_device_attribute aac_flags = {
920 .attr = {
921 .name = "flags",
922 .mode = S_IRUGO,
923 },
924 .show = aac_show_flags,
925};
902static struct class_device_attribute aac_kernel_version = { 926static struct class_device_attribute aac_kernel_version = {
903 .attr = { 927 .attr = {
904 .name = "hba_kernel_version", 928 .name = "hba_kernel_version",
@@ -953,6 +977,7 @@ static struct class_device_attribute aac_reset = {
953static struct class_device_attribute *aac_attrs[] = { 977static struct class_device_attribute *aac_attrs[] = {
954 &aac_model, 978 &aac_model,
955 &aac_vendor, 979 &aac_vendor,
980 &aac_flags,
956 &aac_kernel_version, 981 &aac_kernel_version,
957 &aac_monitor_version, 982 &aac_monitor_version,
958 &aac_bios_version, 983 &aac_bios_version,