X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2Fdevice.c;h=459851af42b47f9704b3d1f0b30410b96b533aed;hb=refs%2Ftags%2Fupstream%2F24.1;hp=2a5c8ff657aeceda0bde0dc4f41e36e5b2930684;hpb=0a7ead9db7967764f0d93d30f9a83c94cb6fc358;p=rrq%2Fmaintain_lilo.git diff --git a/src/device.c b/src/device.c index 2a5c8ff..459851a 100644 --- a/src/device.c +++ b/src/device.c @@ -1,13 +1,13 @@ -/* device.c - Device access */ -/* -Copyright 1992-1997 Werner Almesberger. -Copyright 1999-2006 John Coffman. -All rights reserved. - -Licensed under the terms contained in the file 'COPYING' in the -source directory. - -*/ +/* device.c - Device access + * + * Copyright 1992-1997 Werner Almesberger + * Copyright 1999-2006 John Coffman + * Copyright 2009-2014 Joachim Wiedorn + * All rights reserved. + * + * Licensed under the terms contained in the file 'COPYING' + * in the source directory. + */ #define _GNU_SOURCE #include @@ -347,7 +347,6 @@ void preload_dev_cache(void) cache_add(DEV_DIR "/fd1", 0x0201); } -#if 1 cache_ide(DEV_DISK_DIR "/hdt", MAJOR_IDE10); cache_ide(DEV_DISK_DIR "/hds", MAJOR_IDE10); cache_ide(DEV_DISK_DIR "/hdr", MAJOR_IDE9); @@ -360,11 +359,9 @@ void preload_dev_cache(void) cache_ide(DEV_DISK_DIR "/hdl", MAJOR_IDE6); cache_ide(DEV_DISK_DIR "/hdk", MAJOR_IDE6); -#ifdef MAJOR_IDE5 + cache_ide(DEV_DISK_DIR "/hdj", MAJOR_IDE5); cache_ide(DEV_DISK_DIR "/hdi", MAJOR_IDE5); -#endif -#endif for (i = MAX; i >= 0; i--) { sprintf(tmp, is_devfs() ? DEV_DISK_DIR "/md/%d" : DEV_DISK_DIR "/md%d", i); @@ -385,8 +382,8 @@ void preload_dev_cache(void) cache_ide(DEV_DISK_DIR "/hdd", MAJOR_IDE2); cache_ide(DEV_DISK_DIR "/hdc", MAJOR_IDE2); - cache_ide(DEV_DISK_DIR "/hdb", MAJOR_HD); - cache_ide(DEV_DISK_DIR "/hda", MAJOR_HD); + cache_ide(DEV_DISK_DIR "/hdb", MAJOR_IDE); + cache_ide(DEV_DISK_DIR "/hda", MAJOR_IDE); verbose = vsave; }