From: Donald Becker <becker@scyld.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: PCI hotplug question: resources
Date: Fri, 08 Feb 2002 01:06:01 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-101313037813542@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-101290913112826@msgid-missing>
On Thu, 7 Feb 2002, Greg KH wrote:
> On Tue, Feb 05, 2002 at 05:17:02PM -0800, Stephen Williams wrote:
> > I have in front of me an Adex Electronics PCI bus extender with a
> > disconnect switch. I would like to use this to plug PCI boards into
...
> I don't think it did anything about removals.
I wrote PCI hotplug code for a similar board, primarily for testing
my drivers. It hooked into the CardBus/hotplug interface ("pci-scan")
that I use.
I handled the removal (actually power-off) case just by polling the
vendor ID register in PCI configuration space in a normal add_timer().
This initially looks sleazy, but it's very low overhead and the
semantics match CardBus controllers. ("Oh, yeah, the card was ejected
two seconds ago. I assumed that you knew that when you got 0xffffffff
when reading. Here is your eject callback so that you can clean up.")
Donald Becker becker@scyld.com
Scyld Computing Corporation http://www.scyld.com
410 Severn Ave. Suite 210 Second Generation Beowulf Clusters
Annapolis MD 21403 410-990-9993
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2002-02-08 1:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 11:37 PCI hotplug question: resources Dirk Stieler
2002-02-05 13:55 ` Matti Aarnio
2002-02-06 1:17 ` Stephen Williams
2002-02-06 10:20 ` Matti Aarnio
2002-02-06 17:55 ` Chris Brand
2002-02-07 8:43 ` Greg KH
2002-02-07 16:42 ` Stephen Williams
2002-02-07 23:51 ` Greg KH
2002-02-08 1:06 ` Donald Becker [this message]
2002-02-08 1:34 ` Martin Diehl
2002-02-08 15:44 ` John Carlson
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=marc-linux-hotplug-101313037813542@msgid-missing \
--to=becker@scyld.com \
--cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).