public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: kumarg27061979@gmail.com
To: devel@edk2.groups.io
Subject: Device and driver
Date: Mon, 8 Jun 2020 13:45:19 +0530	[thread overview]
Message-ID: <CA+mqX-xroUWiQ2GqO-n+oGX+T0KqPgqVx0sMaY3yFmHCcLnFRw@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2020-06-08  8:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-08  8:15 kumarg27061979 [this message]
2020-06-08 11:33 ` [edk2-devel] Device and driver 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+mqX-xroUWiQ2GqO-n+oGX+T0KqPgqVx0sMaY3yFmHCcLnFRw@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox