Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77150
b: refs/heads/master
c: 2ca39c4
h: refs/heads/master
v: v3
  • Loading branch information
Salyzyn, Mark authored and James Bottomley committed Jan 23, 2008
1 parent db591d2 commit 5d64c2a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c27f5bd00aba65a2a3313859ebce1c77c90000e
refs/heads/master: 2ca39c48ea0d2fd265479d0b62f2ac8878900360
25 changes: 25 additions & 0 deletions trunk/drivers/scsi/aacraid/linit.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,23 @@ static ssize_t aac_show_vendor(struct class_device *class_dev,
return len;
}

static ssize_t aac_show_flags(struct class_device *class_dev, char *buf)
{
int len = 0;
struct aac_dev *dev = (struct aac_dev*)class_to_shost(class_dev)->hostdata;

if (nblank(dprintk(x)))
len = snprintf(buf, PAGE_SIZE, "dprintk\n");
#ifdef AAC_DETAILED_STATUS_INFO
len += snprintf(buf + len, PAGE_SIZE - len,
"AAC_DETAILED_STATUS_INFO\n");
#endif
if (dev->raw_io_interface && dev->raw_io_64)
len += snprintf(buf + len, PAGE_SIZE - len,
"SAI_READ_CAPACITY_16\n");
return len;
}

static ssize_t aac_show_kernel_version(struct class_device *class_dev,
char *buf)
{
Expand Down Expand Up @@ -899,6 +916,13 @@ static struct class_device_attribute aac_vendor = {
},
.show = aac_show_vendor,
};
static struct class_device_attribute aac_flags = {
.attr = {
.name = "flags",
.mode = S_IRUGO,
},
.show = aac_show_flags,
};
static struct class_device_attribute aac_kernel_version = {
.attr = {
.name = "hba_kernel_version",
Expand Down Expand Up @@ -953,6 +977,7 @@ static struct class_device_attribute aac_reset = {
static struct class_device_attribute *aac_attrs[] = {
&aac_model,
&aac_vendor,
&aac_flags,
&aac_kernel_version,
&aac_monitor_version,
&aac_bios_version,
Expand Down

0 comments on commit 5d64c2a

Please sign in to comment.