extern unsigned long pmac_find_end_of_memory(void);
extern int of_show_percpuinfo(struct seq_file *, int);
-extern kdev_t boot_dev;
+extern dev_t boot_dev;
extern PTE *Hash, *Hash_end;
extern unsigned long Hash_size, Hash_mask;
void *boot_host;
int boot_target;
int boot_part;
-extern kdev_t boot_dev;
+extern dev_t boot_dev;
#ifdef CONFIG_SCSI
void __init
#endif
#if defined(CONFIG_BLK_DEV_IDE) && defined(CONFIG_BLK_DEV_IDE_PMAC)
-kdev_t __init
+dev_t __init
find_ide_boot(void)
{
char *p;
int n;
- kdev_t __init pmac_find_ide_boot(char *bootdevice, int n);
+ dev_t __init pmac_find_ide_boot(char *bootdevice, int n);
if (bootdevice == NULL)
- return NODEV;
+ return 0;
p = strrchr(bootdevice, '/');
if (p == NULL)
- return NODEV;
+ return 0;
n = p - bootdevice;
return pmac_find_ide_boot(bootdevice, n);
/* can't be __init - can be called whenever a disk is first accessed */
void __pmac
-note_bootable_part(kdev_t dev, int part, int goodness)
+note_bootable_part(dev_t dev, int part, int goodness)
{
static int found_boot = 0;
char *p;
find_boot_device();
found_boot = 1;
}
- if (kdev_same(boot_dev, NODEV) || kdev_same(dev, boot_dev)) {
- ROOT_DEV = MKDEV(major(dev), minor(dev) + part);
- boot_dev = NODEV;
+ if (!boot_dev || dev == boot_dev) {
+ ROOT_DEV = dev + part;
+ boot_dev = 0;
current_root_goodness = goodness;
}
}
#define cached_A1 (((char *)(ppc_cached_irq_mask))[2])
/* for the mac fs */
-kdev_t boot_dev;
+dev_t boot_dev;
#ifdef CONFIG_SOUND_CS4232
long ppc_cs4232_dma, ppc_cs4232_dma2;
extern void SystemReset_FWNMI(void), MachineCheck_FWNMI(void); /* from head.S */
int fwnmi_active; /* TRUE if an FWNMI handler is present */
-kdev_t boot_dev;
+dev_t boot_dev;
unsigned long virtPython0Facilities = 0; // python0 facility area (memory mapped io) (64-bit format) VIRTUAL address.
extern unsigned long loops_per_jiffy;
static int ide_majors[] __pmacdata = { 3, 22, 33, 34, 56, 57 };
-kdev_t __init
+dev_t __init
pmac_find_ide_boot(char *bootdevice, int n)
{
int i;
name = pmac_ide[i].node->full_name;
if (memcmp(name, bootdevice, n) == 0 && name[n] == 0) {
/* XXX should cope with the 2nd drive as well... */
- return mk_kdev(ide_majors[i], 0);
+ return MKDEV(ide_majors[i], 0);
}
}
#include "mac.h"
#ifdef CONFIG_ALL_PPC
-extern void note_bootable_part(kdev_t dev, int part, int goodness);
+extern void note_bootable_part(dev_t dev, int part, int goodness);
#endif
/*
}
#ifdef CONFIG_ALL_PPC
if (found_root_goodness)
- note_bootable_part(to_kdev_t(bdev->bd_dev),
- found_root, found_root_goodness);
+ note_bootable_part(bdev->bd_dev, found_root, found_root_goodness);
#endif
put_dev_sector(sect);