Subject: RE: framebuffer device drivers
To: None <port-macppc@netbsd.org>
From: David H. Gutteridge <dhgutteridge@sympatico.ca>
List: port-macppc
Date: 07/22/2007 18:45:25
Hi Michael,

machfb doesn't seem to attach on my clamshell iBook SE.  You'd know
better than I if that's desired behavior or not, but X does report it
as a Mach64-based chip.

Details are:

NetBSD 4.0_BETA2 (GENERIC) #0: Sun Jul 22 03:32:39 PDT 2007
        
builds@wb30:/home/builds/ab/netbsd-4/macppc/200707210002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/macppc/compile/GENERIC
total memory = 320 MB
avail memory = 300 MB
timecounter: Timecounters tick every 10.000 msec
init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 3.0), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
cpu0: 366.67 MHz, no-parity 512KB WB L2 cache (PB SRAM) at 2.5:1 ratio
uni_n0 at mainbus0 address 0xf8000000
ki2c0 at uni_n0 address 0xf8001000
iic0 at ki2c0: I2C bus
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies Rage L Mobility
ofb0: 800 x 600, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0

pcictl output:

PCI configuration registers:
  Common header:
    0x00: 0x4c4e1002 0x02900087 0x03000064 0x0000ff08

    Vendor Name: ATI Technologies (0x1002)
    Device Name: Rage L Mobility (0x4c4e)
    Command register: 0x0087
      I/O space accesses: on
      Memory space accesses: on
      Bus mastering: on
      Special cycles: off
      MWI transactions: off
      Palette snooping: off
      Parity error checking: off
      Address/data stepping: on
      System error (SERR): off
      Fast back-to-back transactions: off
    Status register: 0x0290
      Capability List support: on
      66 MHz capable: off
      User Definable Features (UDF) support: off
      Fast back-to-back capable: on
      Data parity error detected: off
      DEVSEL timing: medium (0x1)
      Slave signaled Target Abort: off
      Master received Target Abort: off
      Master received Master Abort: off
      Asserted System Error (SERR): off
      Parity error detected: off
    Class Name: display (0x03)
    Subclass Name: VGA (0x00)
    Interface: 0x00
    Revision ID: 0x64
    BIST: 0x00
    Header Type: 0x00 (0x00)
    Latency Timer: 0xff
    Cache Line Size: 0x08

  Type 0 ("normal" device) header:
    0x10: 0x91000000 0x00000401 0x90000000 0x00000000
    0x20: 0x00000000 0x00000000 0x00000000 0x00000000
    0x30: 0x90020000 0x00000050 0x00000000 0x00080130

    Base address register at 0x10
      type: 32-bit nonprefetchable memory
      base: 0x91000000, not sized
    Base address register at 0x14
      type: i/o
      base: 0x00000400, not sized
    Base address register at 0x18
      type: 32-bit nonprefetchable memory
      base: 0x90000000, not sized
    Base address register at 0x1c
      not implemented(?)
    Base address register at 0x20
      not implemented(?)
    Base address register at 0x24
      not implemented(?)
    Cardbus CIS Pointer: 0x00000000
    Subsystem vendor ID: 0x0000
    Subsystem ID: 0x0000
    Expansion ROM Base Address: 0x90020000
    Capability list pointer: 0x50
    Reserved @ 0x38: 0x00000000
    Maximum Latency: 0x00
    Minimum Grant: 0x08
    Interrupt pin: 0x01 (pin A)
    Interrupt line: 0x30

  Capability register at 0x50
    type: 0x02 (AGP, rev. 1.0)
  Capability register at 0x5c
    type: 0x01 (Power Management, rev. 1.0)

  Device-dependent header:
    0x40: 0x0000000c 0x00000000 0x00000000 0x00000000
    0x50: 0x00105c02 0xff000203 0x00000000 0x06010001
    0x60: 0x00000000 0x00000000 0x00000000 0x00000000
    0x70: 0x00000000 0x00000000 0x00000000 0x00000000
    0x80: 0x00000000 0x00000000 0x00000000 0x00000000
    0x90: 0x00000000 0x00000000 0x00000000 0x00000000
    0xa0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xf0: 0x00000000 0x00000000 0x00000000 0x00000000

XFree86 log snippet:

(--) ATI(0): ATI 3D Rage Mobility graphics controller detected.
(--) ATI(0): Chip type 4C4E "LN", version 4, foundry TSMC, class 0, revision 
0x01.
(--) ATI(0): AGP bus interface detected.
(--) ATI(0): ATI Mach64 adapter detected.

Regards,

Dave