1 #include <linux/kernel.h>
3 #include <linux/slab.h>
4 #include <linux/export.h>
43 static int idedisk_cache_proc_show(
struct seq_file *
m,
void *
v)
61 .open = idedisk_cache_proc_open,
67 static int idedisk_capacity_proc_show(
struct seq_file *m,
void *v)
75 static int idedisk_capacity_proc_open(
struct inode *inode,
struct file *file)
82 .open = idedisk_capacity_proc_open,
96 (
void)smart_enable(drive);
98 if (get_smart_data(drive, buf, sub_cmd) == 0) {
104 (i % 8) == 7 ?
'\n' :
' ');
111 static int idedisk_sv_proc_show(
struct seq_file *m,
void *v)
116 static int idedisk_sv_proc_open(
struct inode *inode,
struct file *file)
123 .open = idedisk_sv_proc_open,
129 static int idedisk_st_proc_show(
struct seq_file *m,
void *v)
134 static int idedisk_st_proc_open(
struct inode *inode,
struct file *file)
141 .open = idedisk_st_proc_open,
164 IDE_PROC_DEVSET(acoustic, 0, 254),
165 IDE_PROC_DEVSET(
address, 0, 2),
166 IDE_PROC_DEVSET(bios_cyl, 0, 65535),
167 IDE_PROC_DEVSET(bios_head, 0, 255),
168 IDE_PROC_DEVSET(bios_sect, 0, 63),
169 IDE_PROC_DEVSET(failures, 0, 65535),
170 IDE_PROC_DEVSET(
lun, 0, 7),
171 IDE_PROC_DEVSET(max_failures, 0, 65535),
172 IDE_PROC_DEVSET(multcount, 0, 16),
173 IDE_PROC_DEVSET(nowerr, 0, 1),
174 IDE_PROC_DEVSET(wcache, 0, 1),