Subject: config_attach_pseudo(cfdata, aux)
To: None <tech-kern@netbsd.org>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 03/20/2006 18:24:24
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1152741200-1142879064=:146
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,
   Am creating pseudo device instances and have some attach arguments that
the device would like to see, but config_attach_pseudo() does not pass aux
arguments through to the device attach routine as config_found() would.

   I can configure the device externally (I get the softc back and can
twiddle it directly) but it seems cleaner for the device attach() routine
to handle that. Would this patch be ok to enable that?

iain
--0-1152741200-1142879064=:146
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=pseudo.0.patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.63.0603201824240.146@localhost.>
Content-Description: config_attach_pseudo
Content-Disposition: attachment; filename=pseudo.0.patch

SW5kZXg6IHN5cy9rZXJuL3N1YnJfYXV0b2NvbmYuYw0KPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQ0KUkNTIGZpbGU6IC9jdnNyb290L3NyYy9zeXMva2Vybi9z
dWJyX2F1dG9jb25mLmMsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjEwMw0K
ZGlmZiAtdSAtcjEuMTAzIHN1YnJfYXV0b2NvbmYuYw0KLS0tIHN5cy9rZXJu
L3N1YnJfYXV0b2NvbmYuYwkyNCBEZWMgMjAwNSAxOToxMjoyMyAtMDAwMAkx
LjEwMw0KKysrIHN5cy9rZXJuL3N1YnJfYXV0b2NvbmYuYwkxNiBNYXIgMjAw
NiAwNzoyMTowNSAtMDAwMA0KQEAgLTEwMzgsNyArMTAzOCw3IEBADQogICog
bmFtZSBieSB0aGUgYXR0YWNoIHJvdXRpbmUuDQogICovDQogZGV2aWNlX3QN
Ci1jb25maWdfYXR0YWNoX3BzZXVkbyhjZmRhdGFfdCBjZikNCitjb25ma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