Re: device_add_child??

1999-08-21 Thread Nick Hibma


man 9 device_probe_and_attach

Nick

On Sat, 21 Aug 1999, Warner Losh wrote:

 In message [EMAIL PROTECTED] "David E. Cross" writes:
 : I have been writing a nasty kludge to treat a CardBus bridge as a standard
 : PCI bridge (with static config)  you may start throwing rocks now.
 
 Ewe.  Yuck.  Wouldn't it be better to help the pccard/cardbus efforts :-)
 
 : I have
 : it to the point where I can (after the system is booted) 'pciconf -r
 : pci5:0:0 0' and get scan information (neat, huh :).  Welll, I thought it would
 : then just be a simple matter of 'device_add_child(dev, "pci", 5, 0);' to get
 : the bus to show up at PCI5: at bootup, but it seems to ignore it.  following
 : from pcisupport.c I also tried to 'bus_generic_attach()' it after
 : device_add_child() finished.  no go.  Any suggestions?
 
 device_add_child just adds it to the tree.  It doesn't probe or attach
 it.  If you kludge adding it into the tree, you'll have to kludge
 attaching it.  You might want to look at my pccard kludge-o-matic for
 examples.
 
 Warner
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 
 

-- 
e-Mail: [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: device_add_child??

1999-08-21 Thread Warner Losh
In message 199908210557.baa22...@cs.rpi.edu David E. Cross writes:
: I have been writing a nasty kludge to treat a CardBus bridge as a standard
: PCI bridge (with static config)  you may start throwing rocks now.

Ewe.  Yuck.  Wouldn't it be better to help the pccard/cardbus efforts :-)

: I have
: it to the point where I can (after the system is booted) 'pciconf -r
: pci5:0:0 0' and get scan information (neat, huh :).  Welll, I thought it would
: then just be a simple matter of 'device_add_child(dev, pci, 5, 0);' to get
: the bus to show up at PCI5: at bootup, but it seems to ignore it.  following
: from pcisupport.c I also tried to 'bus_generic_attach()' it after
: device_add_child() finished.  no go.  Any suggestions?

device_add_child just adds it to the tree.  It doesn't probe or attach
it.  If you kludge adding it into the tree, you'll have to kludge
attaching it.  You might want to look at my pccard kludge-o-matic for
examples.

Warner



To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: device_add_child??

1999-08-21 Thread Nick Hibma

man 9 device_probe_and_attach

Nick

On Sat, 21 Aug 1999, Warner Losh wrote:

 In message 199908210557.baa22...@cs.rpi.edu David E. Cross writes:
 : I have been writing a nasty kludge to treat a CardBus bridge as a standard
 : PCI bridge (with static config)  you may start throwing rocks now.
 
 Ewe.  Yuck.  Wouldn't it be better to help the pccard/cardbus efforts :-)
 
 : I have
 : it to the point where I can (after the system is booted) 'pciconf -r
 : pci5:0:0 0' and get scan information (neat, huh :).  Welll, I thought it 
 would
 : then just be a simple matter of 'device_add_child(dev, pci, 5, 0);' to get
 : the bus to show up at PCI5: at bootup, but it seems to ignore it.  following
 : from pcisupport.c I also tried to 'bus_generic_attach()' it after
 : device_add_child() finished.  no go.  Any suggestions?
 
 device_add_child just adds it to the tree.  It doesn't probe or attach
 it.  If you kludge adding it into the tree, you'll have to kludge
 attaching it.  You might want to look at my pccard kludge-o-matic for
 examples.
 
 Warner
 
 
 
 To Unsubscribe: send mail to majord...@freebsd.org
 with unsubscribe freebsd-hackers in the body of the message
 
 

-- 
e-Mail: hi...@skylink.it



To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: device_add_child??

1999-08-20 Thread Warner Losh

In message [EMAIL PROTECTED] "David E. Cross" writes:
: I have been writing a nasty kludge to treat a CardBus bridge as a standard
: PCI bridge (with static config)  you may start throwing rocks now.

Ewe.  Yuck.  Wouldn't it be better to help the pccard/cardbus efforts :-)

: I have
: it to the point where I can (after the system is booted) 'pciconf -r
: pci5:0:0 0' and get scan information (neat, huh :).  Welll, I thought it would
: then just be a simple matter of 'device_add_child(dev, "pci", 5, 0);' to get
: the bus to show up at PCI5: at bootup, but it seems to ignore it.  following
: from pcisupport.c I also tried to 'bus_generic_attach()' it after
: device_add_child() finished.  no go.  Any suggestions?

device_add_child just adds it to the tree.  It doesn't probe or attach
it.  If you kludge adding it into the tree, you'll have to kludge
attaching it.  You might want to look at my pccard kludge-o-matic for
examples.

Warner



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



device_add_child??

1999-08-20 Thread David E. Cross
I have been writing a nasty kludge to treat a CardBus bridge as a standard
PCI bridge (with static config)  you may start throwing rocks now.  I have
it to the point where I can (after the system is booted) 'pciconf -r
pci5:0:0 0' and get scan information (neat, huh :).  Welll, I thought it would
then just be a simple matter of 'device_add_child(dev, pci, 5, 0);' to get
the bus to show up at PCI5: at bootup, but it seems to ignore it.  following
from pcisupport.c I also tried to 'bus_generic_attach()' it after
device_add_child() finished.  no go.  Any suggestions?

--
David Cross   | email: cro...@cs.rpi.edu 
Systems Administrator/Research Programmer | Web: http://www.cs.rpi.edu/~crossd 
Rensselaer Polytechnic Institute, | Ph: 518.276.2860
Department of Computer Science| Fax: 518.276.4033
I speak only for myself.  | WinNT:Linux::Linux:FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message