(Sorry about the repost...)
Hi Adam,
Have you tried reading other registers in this space? Are all giving
you 0xffffffff? Does your code compile without any warnings?
Since the space is supposed to be memory mapped, have you tried
looking at the memory using mdb?
max
Adam Chunn wrote:
Kerry Shu wrote:
Have you enabled the MEM/IO access bits in pci configuration command
register?
No. Where do I find more information about the pci configuration
command register? This sounds like it is probably my problem. Oh
please let it be this... :-)
I'd also like to see the whole result of:
# /usr/X11/bin/scanpci -v
% pfexec /usr/X11/bin/scanpci -v
pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x8086 device 0x3590
Intel Corporation E7520 Memory Controller Hub
CardVendor 0x1028 card 0x0183 (Dell, Card unknown)
STATUS 0x0090 COMMAND 0x0146
CLASS 0x06 0x00 0x00 REVISION 0x09
BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00
BYTE_0 0x09 BYTE_1 0x00 BYTE_2 0x05 BYTE_3 0x41
pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x8086 device 0x3595
Intel Corporation E7525/E7520/E7320 PCI Express Port A
STATUS 0x0010 COMMAND 0x0047
CLASS 0x06 0x04 0x00 REVISION 0x09
HEADER 0x01 LATENCY 0x00
PRIBUS 0x00 SECBUS 0x01 SUBBUS 0x03
SECLT 0x00 SECSTATUS 0x2000
IOBASE 0xe000 IOLIM 0xefff
NOPREFETCH_MEMBASE 0xfe700000 MEMLIM 0xfeafffff
PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN SERR_EN PERR_EN
pci bus 0x0000 cardnum 0x04 function 0x00: vendor 0x8086 device 0x3597
Intel Corporation E7525/E7520 PCI Express Port B
STATUS 0x0018 COMMAND 0x0047
CLASS 0x06 0x04 0x00 REVISION 0x09
HEADER 0x01 LATENCY 0x00
PRIBUS 0x00 SECBUS 0x04 SUBBUS 0x04
SECLT 0x00 SECSTATUS 0x2000
IOBASE 0xf000 IOLIM 0x0fff
NOPREFETCH_MEMBASE 0xfff00000 MEMLIM 0x000fffff
PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN SERR_EN PERR_EN
pci bus 0x0000 cardnum 0x06 function 0x00: vendor 0x8086 device 0x3599
Intel Corporation E7520 PCI Express Port C
STATUS 0x0018 COMMAND 0x0047
CLASS 0x06 0x04 0x00 REVISION 0x09
HEADER 0x01 LATENCY 0x00
PRIBUS 0x00 SECBUS 0x05 SUBBUS 0x05
SECLT 0x00 SECSTATUS 0x2000
IOBASE 0x1000 IOLIM 0x1fff
NOPREFETCH_MEMBASE 0xfe500000 MEMLIM 0xfe6fffff
PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN SERR_EN PERR_EN
pci bus 0x0000 cardnum 0x1d function 0x00: vendor 0x8086 device 0x24d2
Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
CardVendor 0x1028 card 0x0183 (Dell PowerEdge 1800)
STATUS 0x0280 COMMAND 0x0005
CLASS 0x0c 0x03 0x00 REVISION 0x02
BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00
BASE4 0x0000cce1 addr 0x0000cce0 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0000 cardnum 0x1d function 0x01: vendor 0x8086 device 0x24d4
Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
CardVendor 0x1028 card 0x0183 (Dell PowerEdge 1800)
STATUS 0x0280 COMMAND 0x0005
CLASS 0x0c 0x03 0x00 REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE4 0x0000ccc1 addr 0x0000ccc0 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x02 INT_LINE 0x0a
pci bus 0x0000 cardnum 0x1d function 0x02: vendor 0x8086 device 0x24d7
Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3
CardVendor 0x1028 card 0x0183 (Dell PowerEdge 1800)
STATUS 0x0280 COMMAND 0x0005
CLASS 0x0c 0x03 0x00 REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE4 0x0000cca1 addr 0x0000cca0 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x05
pci bus 0x0000 cardnum 0x1d function 0x07: vendor 0x8086 device 0x24dd
Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
CardVendor 0x1028 card 0x0183 (Dell PowerEdge 1800)
STATUS 0x0290 COMMAND 0x0106
CLASS 0x0c 0x03 0x20 REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE0 0xfeb00000 addr 0xfeb00000 MEM
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x04 INT_LINE 0x03
pci bus 0x0000 cardnum 0x1e function 0x00: vendor 0x8086 device 0x244e
Intel Corporation 82801 PCI Bridge
STATUS 0x0080 COMMAND 0x0147
CLASS 0x06 0x04 0x00 REVISION 0xc2
HEADER 0x01 LATENCY 0x00
PRIBUS 0x00 SECBUS 0x06 SUBBUS 0x06
SECLT 0x20 SECSTATUS 0x2280
IOBASE 0xd000 IOLIM 0xdfff
NOPREFETCH_MEMBASE 0xfe300000 MEMLIM 0xfe4fffff
PREFETCH_MEMBASE 0xf0000000 MEMLIM 0xf7ffffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT VGA_EN NO_ISA_EN SERR_EN PERR_EN
pci bus 0x0000 cardnum 0x1f function 0x00: vendor 0x8086 device 0x24d0
Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge
STATUS 0x0280 COMMAND 0x014f
CLASS 0x06 0x01 0x00 REVISION 0x02
BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00
BYTE_0 0x01 BYTE_1 0x08 BYTE_2 0x00 BYTE_3 0x00
pci bus 0x0000 cardnum 0x1f function 0x01: vendor 0x8086 device 0x24db
Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller
CardVendor 0x1028 card 0x0183 (Dell, Card unknown)
STATUS 0x0288 COMMAND 0x0007
CLASS 0x01 0x01 0x8a REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE0 0x00000001 addr 0x00000000 I/O
BASE1 0x00000001 addr 0x00000000 I/O
BASE2 0x00000001 addr 0x00000000 I/O
BASE3 0x00000001 addr 0x00000000 I/O
BASE4 0x0000fc01 addr 0x0000fc00 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x00
BYTE_0 0x03 BYTE_1 0xe3 BYTE_2 0x00 BYTE_3 0x00
pci bus 0x0000 cardnum 0x1f function 0x02: vendor 0x8086 device 0x24d1
Intel Corporation 82801EB (ICH5) SATA Controller
CardVendor 0x1028 card 0x0183 (Dell, Card unknown)
STATUS 0x02a0 COMMAND 0x0045
CLASS 0x01 0x01 0x8f REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00
BASE0 0x0000cc99 addr 0x0000cc98 I/O
BASE1 0x0000cc91 addr 0x0000cc90 I/O
BASE2 0x0000cc81 addr 0x0000cc80 I/O
BASE3 0x0000cc79 addr 0x0000cc78 I/O
BASE4 0x0000cc61 addr 0x0000cc60 I/O
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x05
BYTE_0 0x00 BYTE_1 0x80 BYTE_2 0x00 BYTE_3 0x80
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x8086 device 0x0329
Intel Corporation 6700PXH PCI Express-to-PCI Bridge A
STATUS 0x0010 COMMAND 0x0047
CLASS 0x06 0x04 0x00 REVISION 0x09
HEADER 0x81 LATENCY 0x00
PRIBUS 0x01 SECBUS 0x02 SUBBUS 0x02
SECLT 0x40 SECSTATUS 0x22a0
IOBASE 0xf000 IOLIM 0x0fff
NOPREFETCH_MEMBASE 0xfe700000 MEMLIM 0xfe7fffff
PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN SERR_EN PERR_EN
pci bus 0x0001 cardnum 0x00 function 0x02: vendor 0x8086 device 0x032a
Intel Corporation 6700PXH PCI Express-to-PCI Bridge B
STATUS 0x0010 COMMAND 0x0047
CLASS 0x06 0x04 0x00 REVISION 0x09
HEADER 0x81 LATENCY 0x00
PRIBUS 0x01 SECBUS 0x03 SUBBUS 0x03
SECLT 0x20 SECSTATUS 0x22a0
IOBASE 0xe000 IOLIM 0xefff
NOPREFETCH_MEMBASE 0xfe900000 MEMLIM 0xfeafffff
PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff
NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN SERR_EN PERR_EN
pci bus 0x0003 cardnum 0x07 function 0x00: vendor 0x8086 device 0x1076
Intel Corporation 82541GI Gigabit Ethernet Controller
CardVendor 0x1028 card 0x0183 (Dell, Card unknown)
STATUS 0x0230 COMMAND 0x0157
CLASS 0x02 0x00 0x00 REVISION 0x05
BIST 0x00 HEADER 0x00 LATENCY 0x20 CACHE 0x10
BASE0 0xfe9e0000 addr 0xfe9e0000 MEM
BASE2 0x0000ecc1 addr 0x0000ecc0 I/O
MAX_LAT 0x00 MIN_GNT 0xff INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0005 cardnum 0x00 function 0x00: vendor 0x15b6 device 0x0014
Texas Memory Systems Inc Device unknown
CardVendor 0x10ee card 0x0014 (Card unknown)
STATUS 0x0010 COMMAND 0x0047
CLASS 0x05 0x01 0x00 REVISION 0x02
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10
BASE0 0xfe5f0000 addr 0xfe5f0000 MEM
BASE1 0xfe5e0000 addr 0xfe5e0000 MEM
BASEROM 0xfe600000 addr 0xfe600000 not-decode-enabled
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0b
BYTE_0 0x01 BYTE_1 0x48 BYTE_2 0x03 BYTE_3 0x08
pci bus 0x0006 cardnum 0x05 function 0x00: vendor 0x1002 device 0x5159
ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
CardVendor 0x1028 card 0x0183 (Dell, Card unknown)
STATUS 0x0290 COMMAND 0x0087
CLASS 0x03 0x00 0x00 REVISION 0x00
BIST 0x00 HEADER 0x00 LATENCY 0x20 CACHE 0x10
BASE0 0xf0000008 addr 0xf0000000 MEM PREFETCHABLE
BASE1 0x0000dc01 addr 0x0000dc00 I/O
BASE2 0xfe3f0000 addr 0xfe3f0000 MEM
MAX_LAT 0x00 MIN_GNT 0x08 INT_PIN 0x01 INT_LINE 0x0b
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss