patch-2.1.80 linux/drivers/block/ide-proc.c
Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/ide-dma.c
Back to the patch index
Back to the overall index
- Lines: 77
- Date:
Wed Jan 14 13:48:38 1998
- Orig file:
v2.1.79/linux/drivers/block/ide-proc.c
- Orig date:
Mon Jan 12 22:09:11 1998
diff -u --recursive --new-file v2.1.79/linux/drivers/block/ide-proc.c linux/drivers/block/ide-proc.c
@@ -87,16 +87,6 @@
return digit;
}
-static int ide_getdigit(char c)
-{
- int digit;
- if (isdigit(c))
- digit = c - '0';
- else
- digit = -1;
- return digit;
-}
-
static int xx_xx_parse_error (const char *data, unsigned long len, const char *msg)
{
char errbuf[16];
@@ -254,24 +244,6 @@
return xx_xx_parse_error(start, startn, msg);
}
-static int proc_ide_read_drivers
- (char *page, char **start, off_t off, int count, int *eof, void *data)
-{
- char *out = page;
- int len;
- ide_module_t *p = ide_modules;
- ide_driver_t *driver;
-
- while (p) {
- driver = (ide_driver_t *) p->info;
- if (p->type == IDE_DRIVER_MODULE && driver)
- out += sprintf(out, "%s version %s\n", driver->name, driver->version);
- p = p->next;
- }
- len = out - page;
- PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
-}
-
static int proc_ide_read_config
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
@@ -310,6 +282,34 @@
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}
#endif /* CONFIG_PCI */
+
+static int ide_getdigit(char c)
+{
+ int digit;
+ if (isdigit(c))
+ digit = c - '0';
+ else
+ digit = -1;
+ return digit;
+}
+
+static int proc_ide_read_drivers
+ (char *page, char **start, off_t off, int count, int *eof, void *data)
+{
+ char *out = page;
+ int len;
+ ide_module_t *p = ide_modules;
+ ide_driver_t *driver;
+
+ while (p) {
+ driver = (ide_driver_t *) p->info;
+ if (p->type == IDE_DRIVER_MODULE && driver)
+ out += sprintf(out, "%s version %s\n", driver->name, driver->version);
+ p = p->next;
+ }
+ len = out - page;
+ PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
+}
static int proc_ide_read_type
(char *page, char **start, off_t off, int count, int *eof, void *data)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov