RE: pci-probe-mask
RE: pci-probe-mask
- Subject: RE: pci-probe-mask
- From: "Joe van Tunen" <email@hidden>
- Date: Wed, 1 Nov 2006 11:58:50 -0800
- Thread-topic: pci-probe-mask
This is off topic for the Darwin list but anyway...
What you have to do is examine how pci-probe-mask is used in the probe-slots method of /pci
There is a pci-probe-history value that keeps track of which slots were probed. On a fully populated B&W G3, this would be 0x0001005F (bit positions 0,1,2,3,4,6,0x10).
probe-slots of /pci calls probe-slots of /pci/pci-bridge (" /pci/@d") with pci-probe-request which is pci-probe-mask minus pci-probe-history.
probe-slots of /pci/pci-bridge then calls a method 6 times with values 0,1,2,3,4,6. That method probes the slot depending on the mask.
When probe-slots of /pci/pci-bridge returns, probe-slots of /pci calls a method with a value of 0x10.
On my B&W G3, I have devices:
ff85ec58: /pci@80000000
ff85faf0: /pci-bridge@d
ff860a58: /mac-io@5
ff873730: /firewire@0
ff8739f8: /pci-ata@1
ff877ff0: /usb@2
ff87bdc0: /pci17fc,1688@2,3
ff87c078: /pci104c,8025@3
ff87c320: /ACARD,6280M@4
ff887c00: /usb@6
ff88bd08: /ATY,BugsyParent@10
I'm guessing that for each bit, the slots are:
0: built-in firewire
1: built-in ata
2: built-in usb
3: 33 MHz 64 bit PCI slot
4: 33 MHz 64 bit PCI slot
6: 33 MHz 64 bit PCI slot
0x10: 66 MHz 32 bit PCI slot
> ----------
> From: Rakesh Singhal
> Sent: Monday, October 30, 2006 10:53 PM
>
> I'm using a G3 machine with the following configuration:
>
> Machine Name: PowerMacG3series
> Machine Model: PowerMac1,1
> CPU Type: PowerPC 750 (2.2)
> Number Of CPUs: 1
> CPU Speed: 350 MHz
> L2 Cache (per CPU): 1 MB
> Memory: 256 MB
> Bus Speed: 100 MHz
> Boot ROM Version: 1.1.1f4
>
> I need to disable probing of pci slots to test my firmware code. I know pci-probe-mask is the NVRAM variable where I need to mask the bit for a particular PCI slot. But I haven't found any document so far describing the bit significance of pci-probe-mask. With trial and error I could find the masking bit for a G4 machine but for G3 this mask is not working.
>
> Can anyone tell me how do achieve what I'm looking for.
>
> Thanks
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden