14 #include <linux/kernel.h>
16 #include <linux/stat.h>
25 return sprintf(buf,
"0x%02x\n", (d->id & 0xff));
34 return sprintf(buf,
"0x%02x\n", d->ipl);
43 return sprintf(buf,
"0x%02x\n", ((d->id >> 8)& 0xff));
52 return sprintf(buf,
"%s\n", d->name);
58 struct dio_dev *d = to_dio_dev(dev);
60 return sprintf(buf,
"0x%08lx 0x%08lx 0x%08lx\n",
61 (
unsigned long)dio_resource_start(d),
62 (
unsigned long)dio_resource_end(d),
63 dio_resource_flags(d));
69 struct device *dev = &d->dev;