public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Device and driver
@ 2020-06-08  8:15 kumarg27061979
  2020-06-08 11:33 ` [edk2-devel] " Tomas Pilar (tpilar)
  0 siblings, 1 reply; 6+ messages in thread
From: kumarg27061979 @ 2020-06-08  8:15 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

Hi Edk2 expert folks,
I am starting on UEFI coming from Linux background,
In Linux,
There is clear identification of device and driver, platform code adds the
device into system and
later OS code binds driver for the same.
With UEFI driver writer guide, I am bit confused,
please help me, how devices are being added in UEFI.
what code/API adds device.
Let me ask with an example, say i have PCI controller then
driver for this controller (DXE_DRIVER) could be named as controller
handle.
Now there could be a driver represented as device handle, which handles
device connected over this PCIe.
Now when PCIe bus driver scans the bus then it found a PCIe device,
how this bus driver adds the device into system ?
Second, say we have spi controller and with this controller
there is spi flash.
with UEFI terminology
spi controller will be controller handle
spi flash will be device and
driver for this flash will be called driver handle.
spi controller and spi flash are marked as DXE_DRIVER
what I am missing,where are added spi flash as device in system ?
Sorry for basic question, but UEFI is complicated w.r.t originally i
thought
Thanks
KumarG

[-- Attachment #2: Type: text/html, Size: 1371 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-09 21:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-08  8:15 Device and driver kumarg27061979
2020-06-08 11:33 ` [edk2-devel] " Tomas Pilar (tpilar)
2020-06-08 18:10   ` Kumar G
2020-06-09  9:56     ` Tomas Pilar (tpilar)
2020-06-09 11:16       ` Kumar G
2020-06-09 21:48       ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox