public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
To: Patrick Mochel <mochel-3NddpPZAyC0@public.gmane.org>
Cc: Matthew Wilcox <willy-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: device model?
Date: Thu, 12 Jun 2003 16:30:24 +0100	[thread overview]
Message-ID: <20030612153024.GJ30843@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0306120818510.11379-100000-L1xM/EEGAB4@public.gmane.org>

On Thu, Jun 12, 2003 at 08:23:41AM -0700, Patrick Mochel wrote:
> > Why doesn't struct acpi_device contain a struct device?
> 
> Because they are not devices, only the firmware representation of them. :) 

Umm.  OK, smartypants :-P

But I have some devices which _only_ have a firmware representation.
For example, there's a couple of serial ports on this workstation which
can't be found any other way.  Then there's the SBA and LBA devices I
mention below.  These devices have basically nothing in common except
that they only have an acpi_device to represent them.

> struct acpi_device contains a kobject that is registered in 
> drivers/acpi/scan.c. The hierarchy is represented in 
> /sys/firmware/acpi/namespace.
> 
> Ideally, when an ACPI namespace object is found, the bus on which the 
> device belongs will be notified of a found device, so that it may probe,
> intiialize, and register the device properly. That will give it 
> representation in /sys/devices, and ACPI could then provide a symlink 
> between its object's directory and the device's directory. 
> 
> But, it hasn't happened yet.

hmm.  so you want a serial_object, an lba_object and an sba_object?
then we can tie them together through the namespaces?  I feel lost in
a maze of pointers, all subtly different.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

  parent reply	other threads:[~2003-06-12 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-12 11:56 device model? Matthew Wilcox
     [not found] ` <20030612115641.GD30843-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2003-06-12 15:23   ` Patrick Mochel
     [not found]     ` <Pine.LNX.4.44.0306120818510.11379-100000-L1xM/EEGAB4@public.gmane.org>
2003-06-12 15:30       ` Matthew Wilcox [this message]
     [not found]         ` <20030612153024.GJ30843-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2003-06-12 15:51           ` Patrick Mochel

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-all 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=20030612153024.GJ30843@parcelfarce.linux.theplanet.co.uk \
    --to=willy-8fiuurrzop0dnm+yrofe0a@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=mochel-3NddpPZAyC0@public.gmane.org \
    /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