On Sep 7, 2013, at 10:51 PM, Sergey Isakov <isakov...@bk.ru> wrote: > Ops, corrected > > On 08.09.2013, at 8:34, Sergey Isakov <isakov...@bk.ru> wrote: > >> >> On 08.09.2013, at 4:59, David F. <df7...@gmail.com> wrote: >> >>> Hi, >>> >>> is there a generic equivalent to something like sync() in Linux or do you >>> loop through block handles and issue >>> disconnectcontroller()/connectcontroller() or do the exclusive open then >>> connectcontroller(). >>>
Some of the protocols support syncing via the protocol like, EFI_FILE_PROTOCOL.Flush(). Disconnect also does a sync for that part of the device tree. >>> >>> Also in general, what is the difference between a "ControllerHandle" and a >>> "DriverHandle" in terms of getting handles. The DriverHandle is the handle associated with the device driver, and it contains the EFI Loaded Image Protocol. See chapter 12 UEFI 2.4. >>> In other words, If I have a block io protocol handle is that a controller >>> handle or a driver handle or some other handle? If you had a end-device >>> like a hd, how would you get the controller's handle (what protocol do you >>> locate for the parent for a controller) ??? >>> In general the device paths are generic abstractions. From a bus driver point of view you just copy your parents device path and append a node that represents what your driver manages. So for example the partition driver is adding the HD(1,GPT,E223FF7F-F2DA-4DBB-B765-756F2D95B0FE,0x28,0x64000) node, but it just copies PcieRoot(0x0)/Pci(0x1F,0x2)/Sata(0x0,0x0,0x0) and does not need to understand anything about that path. Thanks, Andrew Fish >> No differences. >> There are handles with protocols and with DevicePathes >> PcieRoot(0x0)/ > this is a bus >> PcieRoot(0x0)/Pci(0x1F,0x2)/ > this is SATA controller >> PcieRoot(0x0)/Pci(0x1F,0x2)/Sata(0x0,0x0,0x0)/ > this is HDD >> PcieRoot(0x0)/Pci(0x1F,0x2)/Sata(0x0,0x0,0x0)/HD(1,GPT,E223FF7F-F2DA-4DBB-B765-756F2D95B0FE,0x28,0x64000) > this is partition > > Best wishes! > Sergey > >> and the last is a Partition. >> There is no Device HDD. >> There is another concept >> >> >>> >>> ------------------------------------------------------------------------------ >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >>> Discover the easy way to master current and previous Microsoft technologies >>> and advance your career. Get an incredible 1,500+ hours of step-by-step >>> tutorial videos with LearnDevNow. Subscribe today and save! >>> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk_______________________________________________ >>> edk2-devel mailing list >>> edk2-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/edk2-devel >> >> >> ------------------------------------------------------------------------------ >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> Discover the easy way to master current and previous Microsoft technologies >> and advance your career. Get an incredible 1,500+ hours of step-by-step >> tutorial videos with LearnDevNow. Subscribe today and save! >> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/edk2-devel >> > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel