- accept device_type of "block", which is how psim/gdb6.0 defines

disks. continue to accept "disk" for psim/gdb5.x users.
- remove unneeded ofwd_identify
This commit is contained in:
Peter Grehan 2003-12-12 09:54:39 +00:00
parent 099fe19901
commit 2abd35bc59

View File

@ -60,7 +60,6 @@ static int ofwd_probe(device_t);
static int ofwd_attach(device_t);
static device_method_t ofwd_methods[] = {
DEVMETHOD(device_identify, ofwd_identify),
DEVMETHOD(device_probe, ofwd_probe),
DEVMETHOD(device_attach, ofwd_attach),
{ 0, 0 }
@ -145,7 +144,8 @@ ofwd_probe(device_t dev)
type = nexus_get_device_type(dev);
if (type == NULL || strcmp(type, "disk") != 0)
if (type == NULL ||
(strcmp(type, "disk") != 0 && strcmp(type, "block") != 0))
return (ENXIO);
device_set_desc(dev, "OpenFirmware disk");
@ -183,8 +183,3 @@ ofwd_attach(device_t dev)
return (0);
}
static void
ofwd_identify(driver_t *driver, device_t parent)
{
}