Re: is it supposed to be this broken?

2001-04-02 Thread John Baldwin


On 31-Mar-01 Warner Losh wrote:
 In message [EMAIL PROTECTED] Alfred Perlstein writes:
: This is cute...
: hint.ppc.1.disabled="1"
: ppc1: ECP parallel printer port at port 0x378-0x37f,0x778-0x77b irq 7 drq
: 3 on
:  isa0
 
 That should work.
 
 However, if it doesn't, consider removing the 'at' lines from your
 hints file.
 
 Warner

It doesn't work because he didn't specify all of the hints, so the fd0 "device"
that he has in his hints file isn't a perfect match to the fd0 device that
comes from the PnP BIOS.  If he specifies all the resources like the normal
hints file then it should work fine, I think.  Though as Mike points out, it
doesn't change the fact that the IRQ is already allocated off to something else.

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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



Re: is it supposed to be this broken?

2001-03-31 Thread Warner Losh

In message [EMAIL PROTECTED] Alfred Perlstein writes:
: This is cute...
: hint.ppc.1.disabled="1"
: ppc1: ECP parallel printer port at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on
:  isa0

That should work.

However, if it doesn't, consider removing the 'at' lines from your
hints file.

Warner

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



Re: is it supposed to be this broken?

2001-03-31 Thread Alfred Perlstein

* Mike Smith [EMAIL PROTECTED] [010331 12:41] wrote:
  This is cute...
  
  If you disable a device using /boot/device.hints like so:
  hint.ppc.0.disabled="1"
  hint.ppc.1.disabled="1"
  hint.ppbus.0.disabled="1"
  hint.ppbus.1.disabled="1"
  
  you get this:
  ppc1: ECP parallel printer port at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on
   isa0
 
 That's because the PnP entity is still matched.  You can't disable PnP 
 devices; it just doesn't work that way. 8)

You mean it's impossible to disable lpt/floppy in a pnp system 
and use thier IRQs for anything else unless you remove the drivers
from the kernel?

Why?

Also, is there any system in place so that I can tell a device to
go away?  (one that isn't pccard/cardbus) ?

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
Represent yourself, show up at BABUG http://www.babug.org/

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



Re: is it supposed to be this broken?

2001-03-31 Thread Adam

On Sat, 31 Mar 2001, Alfred Perlstein wrote:

* Mike Smith [EMAIL PROTECTED] [010331 12:41] wrote:
  This is cute...
 
  If you disable a device using /boot/device.hints like so:
  hint.ppc.0.disabled="1"
  hint.ppc.1.disabled="1"
  hint.ppbus.0.disabled="1"
  hint.ppbus.1.disabled="1"
 
  you get this:
  ppc1: ECP parallel printer port at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on
   isa0

 That's because the PnP entity is still matched.  You can't disable PnP
 devices; it just doesn't work that way. 8)

You mean it's impossible to disable lpt/floppy in a pnp system
and use thier IRQs for anything else unless you remove the drivers
from the kernel?

Why?

Also, is there any system in place so that I can tell a device to
go away?  (one that isn't pccard/cardbus) ?

--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]

I thought you had to disable hardware in the bios to make it actually go
away, otherwise an interrupt is still "there" even if FreeBSD isn't
putting the usual device driver on it.


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



Re: is it supposed to be this broken?

2001-03-31 Thread Warner Losh

In message [EMAIL PROTECTED] Alfred Perlstein writes:
: You mean it's impossible to disable lpt/floppy in a pnp system 
: and use thier IRQs for anything else unless you remove the drivers
: from the kernel?

That's right.

: Why?

because no one has implement it.

: Also, is there any system in place so that I can tell a device to
: go away?  (one that isn't pccard/cardbus) ?

Nope.  Not from userland.

Warner

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



Re: is it supposed to be this broken?

2001-03-31 Thread Mike Smith

   ppc1: ECP parallel printer port at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on
isa0
  
  That's because the PnP entity is still matched.  You can't disable PnP 
  devices; it just doesn't work that way. 8)
 
 You mean it's impossible to disable lpt/floppy in a pnp system 
 and use thier IRQs for anything else unless you remove the drivers
 from the kernel?

 Why?

Because you can't use their IRQs anyway; the PnP data for devices like 
that is a statement of fact - IRQ 7 is connected to the super-IO chip and 
you simply *CANNOT* use it for another device.

 Also, is there any system in place so that I can tell a device to
 go away?  (one that isn't pccard/cardbus) ?

Not at this time, no.  Why would you want to, short of reloading the 
driver? 

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
   V I C T O R Y   N O T   V E N G E A N C E



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