From: Shao Miller Date: Thu, 23 Dec 2010 14:19:34 +0000 (-0500) Subject: [driver] Set IsBus flag on the main bus FDO X-Git-Url: http://git.etherboot.org/people/sha0/winvblock.git/commitdiff_plain/5907e8f1d09701bd3a0c12343ae7b98b38717d1f [driver] Set IsBus flag on the main bus FDO --- diff --git a/src/winvblock/driver.c b/src/winvblock/driver.c index ecfc554..f1748c4 100644 --- a/src/winvblock/driver.c +++ b/src/winvblock/driver.c @@ -143,7 +143,6 @@ static NTSTATUS STDCALL driver__attach_fdo_( WV_SP_BUS_T bus; PUNICODE_STRING dev_name = NULL; PDEVICE_OBJECT fdo = NULL; - WV_SP_DEV_T dev_ptr; DBG("Entry\n"); /* Do we alreay have our main bus? */ @@ -185,6 +184,7 @@ static NTSTATUS STDCALL driver__attach_fdo_( /* Set associations for the bus, device, FDO, PDO. */ WvDevForDevObj(fdo, &bus->Dev); bus->Dev.Self = bus->Fdo = fdo; + bus->Dev.IsBus = TRUE; bus->PhysicalDeviceObject = PhysicalDeviceObject; fdo->Flags |= DO_DIRECT_IO; /* FIXME? */ fdo->Flags |= DO_POWER_INRUSH; /* FIXME? */