G4 powermac (dmesg below) which has 4.7 (although it looks like the
drivers in this case haven't changed).

Short version:
The gem manpage claims 10Mbit half-duplex (or full, but I didn't try
that), but it clearly does not.  Why?  No idea.  I've done some cursory
looking through the files for gem and brgphy and can't find anything
mentioning a quirk of the Apple gem.  (Which at least would be a bug in
the manpage, since it says it is supported and doesn't mention any
exceptions).

# ifconfig gem0 media
gem0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:30:65:e0:b9:98
        priority: 0
        media: Ethernet autoselect (none)
        status: no carrier
        supported media:
                media 100baseTX
                media 100baseTX mediaopt full-duplex
                media 1000baseT
                media 1000baseT mediaopt full-duplex
                media autoselect

If you try and put a "media 10baseT" in the hostname.gem0 file, it
throws an error at boot and the interface isn't configured.  I tried
that at first when I thought maybe it needed to be told what to do.

Any pointers on this?  If it's just undocumented, I'd be happy to put
together a patch for the manpage.

Below is the dmesg.

--Kurt

: memaddr 94000000 size 4000000, : consaddr 96008000, : ioaddr 90020000,
size 20000: memtag 8000, iotag 8000: width 640 linebytes 768 height 480
depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.7 (GENERIC) #281: Wed Mar 17 22:34:31 MDT 2010
    dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 805306368 (768MB)
avail mem = 770650112 (734MB)
mainbus0 at root: model PowerMac3,3
cpu0 at mainbus0: 7400 (Revision 0x208): 400 MHz: 1MB backside cache
mem0 at mainbus0
spdmem0 at mem0: 256MB SDRAM non-parity PC100CL3
spdmem1 at mem0: 512MB SDRAM non-parity PC133CL3
memc0 at mainbus0: uni-n
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Uni-N AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Rage Fury" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0xff
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple Uni-N" rev 0x00
ppb0 at pci1 dev 13 function 0 "DEC 21154 PCI-PCI" rev 0x05
pci2 at ppb0 bus 1
rl0 at pci2 dev 2 function 0 "Realtek 8139" rev 0x10: irq 52, address
00:50:ba:8
f:63:c4
rlphy0 at rl0 phy 0: RTL internal PHY
ral0 at pci2 dev 4 function 0 "Ralink RT2561S" rev 0x00: irq 54, address
00:0c:09:30:01:b3
ral0: MAC/BBP RT2561C, RF RT2527
macobio0 at pci2 dev 7 function 0 "Apple Keylargo" rev 0x03
openpic0 at macobio0 offset 0x40000: version 0x4614 little endian
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 irq 47
"programmer-switch" at macgpio0 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs0 at macobio0 offset 0x14000: irq 24,9,10 headphones
audio0 at awacs0
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
apm0 at adb0: battery flags 0x9, 0% charged
kiic1 at macobio0 offset 0x18000
iic1 at kiic1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: <TRANSCEND>
wd0: 1-sector PIO, LBA, 1943MB, 3980592 sectors
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wdc1 at macobio0 offset 0x20000 irq 20: DMA
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-104, 1.20> ATAPI
5/cdrom removable
cd0(wdc1:0:0): using BIOS timings, DMA mode 2
wdc2 at macobio0 offset 0x21000 irq 21: DMA
ohci0 at pci2 dev 8 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
ohci1 at pci2 dev 9 function 0 "Apple USB" rev 0x00: irq 28, version 1.0
"TI TSB12LV26 FireWire" rev 0x00 at pci2 dev 10 function 0 not configured
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x16
pci3 at mpcpcibr2 bus 0
pchb2 at pci3 dev 11 function 0 "Apple Uni-N Eth" rev 0x00
gem0 at pci3 dev 15 function 0 "Apple Uni-N GMAC" rev 0x01: irq 41,
address 00:30:65:e0:b9:98
brgphy0 at gem0 phy 0: BCM5400 1000baseT PHY, rev. 7
uhub2 at uhub1 port 1 "Alps Electric Hub in Apple USB Keyboard" rev
1.10/2.10 addr 2
uhidev0 at uhub2 port 1 configuration 1 interface 0 "Alps Electric Apple
USB Keyboard" rev 1.10/1.02 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
bootpath: /p...@f2000000/@d/mac...@7/at...@1f000/d...@0:/bsd
root on wd0a swap on wd0b dump on wd0b

Reply via email to